DOM Based Cross Site Scripting on enter_bug.cgi with the Guided Bug Entry format
Originally disclosed on Mozilla
- Fixed in 7 days
- Paid in 18 months
- Disclosed after 7 days
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1130.1 Safari/536.11
Steps to reproduce:
Hello,
Dom based XSS on bugzilla.mozilla.org can allow attacker to do phising attacks.
PoC: https://bugzilla.mozilla.org/enter_bug.cgi#h=alert('XSS')
Vulnerable code
============
Variable "state" contains value of the url fragment "#h=".
The function call "setStep" which call eval and the "#h=" is executed.
--- guided.js---
_onStateChange: function(state, noSetHistory) {
state = state.split("|");
product.setName(state[1] || '');
guided.setStep(state[0], noSetHistory);
},
----------------
Using eval and call function with the name of url fragment.
---guided.js-----
setStep: function(newStep, noSetHistory) {
// initialise new step
eval(newStep + '.onShow()');
// change visibility of _step div
if (this._currentStep)
Dom.addClass(this._currentStep + '_step', 'hidden');
this._currentStep = newStep;
Dom.removeClass(this._currentStep + '_step', 'hidden');
// scroll to top of page to mimic real navigation
scroll(0,0);
// update history
if (History && !noSetHistory) {
History.navigate('h', newStep + "|" + product.getName());
}
},
----------
Cheers,
Mario.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A XSS bug in Extensions. Mozilla made it public on 17 May 2012.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.