Secunia Logo  
 
AWStats Cross-Site Scripting and Full Path Disclosure
Secunia Advisory: SA19725
Release Date: 2006-04-19
Last Update: 2006-07-20
Popularity: 11,645 views

Critical:
Less critical
Impact: Cross Site Scripting
Exposure of system information
Where: From remote
Solution Status: Unpatched

Software:AWStats 6.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-1945
CVE-2006-3681
CVE-2006-3682


Description:
r0t has discovered some vulnerabilities in AWStats, which can be exploited by malicious people to disclose system information and conduct cross-site scripting attacks.

1) Some input isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

Examples:
http://[host]/awstats.pl?config=[code]
http://[host]/awstats.pl?refererpagesfilter=[code]&refererpagesfilterex=&output=refererpages&config=[config]&year=2006&month=all
http://[host]/awstats.pl?refererpagesfilter=&refererpagesfilterex=[code]&output=refererpages&config=[config]&year=2006&month=all
http://[host]/awstats.pl?urlfilter=&urlfilterex=[code]&output=urlentry&config=[config]&year=2006&month=all
http://[host]//awstats.pl?urlfilter=[code]&urlfilterex=&output=urlentry&config=[config]&year=2006&month=all
http://[host]/awstats.pl?hostfilter=[code]&hostfilterex=&output=allhosts&config=[config]&year=2006&month=all
http://[host]/awstats.pl?hostfilter=&hostfilterex=[code]&output=allhosts&config=[config]&year=2006&month=all

The "diricons" parameter is reportedly also affected.

2) The problem is that it is possible to disclose the full path to the installation by supplying an invalid "config" parameter to "awstats.pl".

The vulnerabilities have been confirmed in version 6.5. Other versions may also be affected.

Solution:
Edit the source code to ensure that input is properly sanitised and verified.

Provided and/or discovered by:
r0t

1) Additional information provided by OS Reviews.

Changelog:
2006-04-20: Added additional vulnerabilities provided by r0t.
2006-04-27: Added CVE reference.
2006-05-05: Added additional information provided by OS Reviews.
2006-07-20: Added CVE reference.
2006-07-20: Added CVE reference.

Original Advisory:
http://pridels.blogspot.com/2006/04/awstats-65-vuln.html
http://pridels.blogspot.com/2006/04/awstats-65x-multiple-vuln.html
http://www.osreviews.net/reviews/comm/awstats


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 53 views
2. Zeroboard Multiple Vulnerabilities // 47 views
3. Symantec Mail Security for SMTP Response Handling Denial of Service // 30 views
4. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 29 views
5. Red Hat update for openssl // 26 views
6. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 25 views
7. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 22 views
8. Red Hat update for xterm // 22 views
9. Red Hat update for dbus // 21 views
10. TSC2 Help Desk CTab ActiveX Control Caption List Buffer Overflow // 20 views