Agora.CGI Debug Mode Cross Site Scripting Vulnerability

Type

Cross Site Scripting

Release Date

December 18, 2001

Product / Vendor

Agora.cgi is an open source ecommerce solution. Steve Kneizys is the principle author of this project. The project grew from a couple of other open source projects.

http://www.agoracgi.com

Summary

Cross Site Scripting, most dynamic websites are still not filtering user input. This lets remote sites access towrite scripts on vulnerable sites & application, stealing cookies, performing actions on behalf of user or modifying look of content on site.

When debug mode is enabled, the Agora.cgi script does not adequately filter HTML tags when debug information is being output. Debug mode is not enabled by default and must be explicitly turned on by an administrator.

As a result, it is possible for an attacker to construct a link to the script that includes maliciously constructed script code. When the link is clicked by a web user, the script code will be executed by the client in the context of the site running Agora.cgi.

This issue may be exploited to by an attacker to steal cookie-based authentication credentials, permitting the attacker to hijack an Agora.cgi session and perform actions as a legitimate user. A number of other cross-site scripting attacks are also possible.

http://host/store/agora.cgi?cart_id=<IMG%20height=47%20src="http://www.securityoffice.net/images/
title.gif"%20width=406%20border=0>&xm=on&product=HTML

http://host/store/agora.cgi?cart_id=<script>alert(document.cookie)</script>&xm=on&product=HTML

Tested

Agoracgi v3.3e

Vulnerable

Agoracgi v3.3e (And may be other)

Disclaimer

http://www.securityoffice.net is not responsible for the misuse or illegal use of any of the information and/or the software listed on this security advisory.

Author

Tamer Sahin
ts(at)securityoffice.net
http://www.securityoffice.net