Re: <BASE> tag used for hijacking external resources (XSS)



Makes sense as a trick to bypass some crappy XSS filters that look
forstrings like "javascript:", but I don't think it's a vulnerability
in itself.

On Fri, Dec 16, 2011 at 5:20 PM, Jann Horn <jannhorn@xxxxxxxxxxxxxx> wrote:

2011/12/15 Bouke van Laethem <vanlaethem@xxxxxxxxx>:
ISSUE:
The <base> tag is parsed outside of <head></head>. This can lead to
the base being reset, both before and after the <base> tag being
injected, depending on browser types and versions. As a result, images
and javascript can be loaded from an attackers domain, and forms and
hyperlinks point to the attackers domain.

Erm... so you're basically assumint that the attacker can inject stuff
into the page? If that's the case, you should have other issues than
your links getting altered or so, no? E.g. what about javascript
injection?




--
“There's a reason we separate military and the police: one fights the
enemy of the state, the other serves and protects the people. When the
military becomes both, then the enemies of the state tend to become
the people.”



Relevant Pages

  • Re: tag used for hijacking external resources (XSS)
    ... As a result, images ... hyperlinks point to the attackers domain. ... so you're basically assumint that the attacker can inject stuff ... E.g. what about javascript ...
    (Bugtraq)
  • Re: WebBrowser Control (VB5, VB6) & window.external. Possible?
    ... I know I can easily "inject" data into the webpage for use in Javascript like this: ... In Javascript, I can then simply read the contents of the ComputerName field. ... I would need to inject this data in intervals which uses up unnecessary resources. ... intranet, or it could be something as simple as a few pre-defined ...
    (microsoft.public.vb.general.discussion)
  • Re: WebBrowser Control (VB5, VB6) & window.external. Possible?
    ... I know I can easily "inject" data into the webpage for use in Javascript like this: ... Private Sub WebBrowser1_DocumentComplete ... In Javascript, I can then simply read the contents of the ComputerName field. ... I would need to inject this data in intervals which uses up unnecessary resources. ...
    (microsoft.public.vb.general.discussion)
  • [Full-disclosure] BASE - 3 Persistent Cross Site Scripting Vulnerabilities
    ... Cross-Site Scripting allows the attacker to inject ... Javascript to modify the functionality of the webpages. ... The vulnerabilities exist in pages that use the information from 3 different ...
    (Full-Disclosure)
  • Re: Did Yahoo worm (Yamanner) work on macs? (no I am not trolling)
    ... Groups and the injected JavaScript is still there. ... to inject their own JavaScript commands into Yahoo's web pages. ... That particular worm may not work on Macs but it proves that Yahoo has ... It's understandable that they could have such a security hole but what's ...
    (comp.sys.mac.misc)