Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341085 (CVE-2010-3841) - www-apps/twiki: Cross Site Scripting Vulnerability (CVE-2010-3841)
Summary: www-apps/twiki: Cross Site Scripting Vulnerability (CVE-2010-3841)
Status: RESOLVED FIXED
Alias: CVE-2010-3841
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Security
URL: http://twiki.org/cgi-bin/view/Codev/S...
Whiteboard: ~4 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 06:10 UTC by Tim Sammut (RETIRED)
Modified: 2012-03-03 20:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Sammut (RETIRED) gentoo-dev 2010-10-15 06:10:31 UTC
From $URL:

A malicious person can use specially crafted URL parameters to TWiki view and login scripts that execute arbitrary Javascript code in the browser. Examples:

1. Specially crafted rev parameter to the view script of TWiki:

GET /twiki/bin/view?rev=%27%3E%3Cscript%3Ealert%28Hello%29%3C/script%3E

2. Specially crafted parameter to the login script of TWiki:

GET /twiki/bin/login?origurl=&ANYTHING%27%3E%3Cscript%3Ealert%28Hello%29%3C/script%3E

In both examples, TWiki decodes the URL parameter into the following Javascript code, popping up a Javascript alert box showing "Hello":

'><script>alert(Hello)</script>
Comment 1 GLSAMaker/CVETool Bot gentoo-dev 2011-06-24 19:51:43 UTC
CVE-2010-3841 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2010-3841):
  Multiple cross-site scripting (XSS) vulnerabilities in lib/TWiki.pm in TWiki
  before 5.0.1 allow remote attackers to inject arbitrary web script or HTML
  via (1) the rev parameter to the view script or (2) the query string to the
  login script.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-03-03 18:47:24 UTC
package has been removed from tree
Comment 3 Tim Sammut (RETIRED) gentoo-dev 2012-03-03 20:16:57 UTC
(In reply to comment #2)
> package has been removed from tree

Thanks. Closing noglsa since twiki was only ever ~arch.