XSS. Vulnerability in JpGraph 3.0.6

Description of Vulnerability:
JpGraph is an object oriented library for PHP that can be used to create
various types of graphs which also contains support for client side
image maps.

The GetURLArguments function for the JpGraph's Graph class does not
properly sanitize the names of get and post variables, leading to a
cross site scripting vulnerability.

Systems affected:
This has been confirmed in version 3.0.6 of JpGraph's free release.
Previous versions and the professional versions may be affected as well.

When a user is tricked into clicking on a malicious link or submitting a
specially crafted form, the injected code travels to the vulnerable web
server, which reflects the attack back to the userĂ¢??s browser. The
browser then executes the code because it came from a "trusted" server.
(From OWASP:http://www.owasp.org/index.php/Cross-site_Scripting_%28X/S/S%29)
Mitigating factors:
The vulnerability seems to be exploitable only in cases where client
side image maps are used.

Proof of concept:
This can be demonstrated in the csim_in_html_ex1.php example provided
with jpgraph (as well various other csim examples) as shown below.

for Solution:archive securityfocus

One Response to “c0decstuff”

What's on Your Mind...

Thank f' u C0mment