Re: [Full-disclosure] Self-contained XSS Attacks (the new generation of XSS)




Hello pdp,

http://www.gnucitizen.org/blog/self-contained-xss-attacks

XSS attacks can be persistent and non-persistent. Persistent XSS is
more dangerous since it allow attackers to control exploited clients
for longer. On the other hand non-persistent XSS is considered less
dangerous although it has been widely used in many phishing attempts.

In this article I will expose some of my findings around a new attack
vector which is of type non-persistent XSS but a lot more dangerous
than the persistent one.

Some of you might be familiar with this attack vector; this subject
has been covered very vaguely in the past and none of its full
potentials has been explored. The impact of this attack is much bigger
today and could affect many web applications.

This is a very interesting vector. However, I would argue that it is
not a new class of XSS. Generally, the classes have been defined based
on where the injected data flows from, not how it is injected in the
page.

For instance, stored or persistent XSS comes from an attacker via one
communication, gets saved on the server, and is later reproduced to
another user. Reflected is generally embedded in a link, sent to a
victim, which a victim then sends to the webserver and is reflected back
to achieve injection. DOM-based is similar, but does not need to flow
to the webserver before coming back to get injected. I personally label
these three classes Type 2, Type 1 and Type 0 respectively, in order to
reduce confusion about terminology [1].

All three of these scenarios could be used with your injection vector.
A server side script could store the URL supplied by an attacker, and
later present it to a victim, thus making it persistent. Similarly, a
document.write() call could be exploited to inject a data: link, even if
the typical dangerous characters (', ", <, >, etc) were handled.

Don't get me wrong... I really like the vector, and what you've brought
to the list. I just don't think it should be considered another class.

cheers,
tim


1. http://en.wikipedia.org/wiki/XSS



Relevant Pages

  • Re: [Full-disclosure] Self-contained XSS Attacks (the new generation of XSS)
    ... XSS attacks can be persistent and non-persistent. ... In this article I will expose some of my findings around a new attack ... victim, which a victim then sends to the webserver and is reflected back ... All three of these scenarios could be used with your injection vector. ...
    (Full-Disclosure)
  • Re: [Full-disclosure] Self-contained XSS Attacks (the new generation of XSS)
    ... > XSS attacks can be persistent and non-persistent. ... > In this article I will expose some of my findings around a new attack ... victim, which a victim then sends to the webserver and is reflected back ... All three of these scenarios could be used with your injection vector. ...
    (Bugtraq)
  • XSS vulnerabilities in Google.com
    ... XSS vulnerabilities in Google.com ... Two XSS vulnerabilities were identified in the Google.com website, ... Although Google uses common XSS countermeasures, a successful attack ... The server response lacks charset encoding enforcement, ...
    (Pen-Test)
  • Re: [Full-disclosure] Self-contained XSS Attacks (the new generation of XSS)
    ... XSS attacks can be persistent and non-persistent. ... In this article I will expose some of my findings around a new attack ... All three of these scenarios could be used with your injection vector. ...
    (Full-Disclosure)
  • Re: [Full-disclosure] Attacking the local LAN via XSS
    ... this is a url that carries an XSS attack http://192.168.0.1/ bla ... border router vulnerable to XSS ... For that purpose the malicious JavaScript fires several ...
    (Full-Disclosure)