by

XSS vulnerabilities and Webroot disclosure within BBC Betsie

Vulnerability found:
28 January 2008
Vendor informed:
21 July 2009
Severity level:
Medium/High
Credits:
Richard Brain of ProCheckUp Ltd (www.procheckup.com)
Description:
Betsie (www.bbc.co.uk/education/betsie) is vulnerable to Cross-Site Scripting, by injecting malicious characters into the requested path.
Additionally, Betsie discloses the webroot when the parser.pl program is called without any parameters.

Consequences

An attacker may be able to cause execution of malicious scripting code in the browser of a user who clicks on a link to a Betsie site. Such code would run within the context of the target domain. This type of attack can result in non-persistent defacement of the target site, or the redirection of confidential information (i.e.: session IDs) to unauthorised third parties.

Attackers can redirect victim users to third-party sites. Such behaviour can help attackers perform phishing attacks by redirecting the victim to a spoof login page.

Client environment

Microsoft Internet Explorer 7.0.5730.11
Proof of concept:
XSS

http://target/textonly/1066/</XSS/*-*/STYLE=xss:e/**/xpression(alert('XSS'))
http://target/cgi-bin/parser.pl/</XSS/*-*/STYLE=xss:e/**/xpression(alert('XSS'))

webroot disclosure:

http://target/cgi-bin/parser.pl/
http://www.google.co.uk/search?q=%22Use+of+uninitialized+value+in+substitution%22+betsie&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a
Legal:

Copyright 2013 ProCheckUp Ltd. All rights reserved.

Permission is granted for copying and circulating this Bulletin to the Internet community for the purpose of alerting them to problems, if and only if, the Bulletin is not edited or changed in any way, is attributed to Procheckup, and provided such reproduction and/or distribution is performed for non-commercial purposes.

Any other use of this information is prohibited. Procheckup is not liable for any misuse of this information by any third party.