+ Antworten
Ergebnis 1 bis 5 von 5

Thema: Other notation for < in case of XSS

  1. #1
    Neuer Benutzer
    Registriert seit
    28.06.2007
    Beiträge
    16
    Hi all,

    while performing and web app audit, I found a part in this app, where probably only open tags are filtered. In case of injecting something like "><script>alert('XSS')</script>
    alert('XSS')</script> is displayed.
    The question for me is, is there another way to transport <script, especially the < (as it looks like [script is displayed correctly) anyhow else (except html encoded), so that is interpreted by the browser correctly?

    Thanks in advance.

  2. #2
    Moderator Avatar von .mario
    Registriert seit
    30.05.2007
    Beiträge
    924
    Two things to try:

    1st: HTML comments - fool the app - fool the browser.

    2nd: Attribute injections - changing <input type=text to <input type=image and applying an onerror/onload or just try to apply event handlers, style attributes or whatever is necessary to exec JS.

    It might be considered rather indiscreet to ask for an example URL but I am curios - so.. you have an example URL (here/PM/email)?

    Grx,
    .mario

  3. #3
    Neuer Benutzer
    Registriert seit
    28.06.2007
    Beiträge
    16
    Hi Mario,

    thanks for the hint with the eventhandler, I just wonder why I did not think about that myself ;)
    But there was no other possibility in thoughts of encoding the text so that the browser interprets it anyway?

    Greetz
    greg

  4. #4
    Neuer Benutzer
    Registriert seit
    28.06.2007
    Beiträge
    16
    hmm did not find the PM button, so regarding your last question, unfortunately I am not allowed to. But any special interests for you question, maybe I can help you with that then ;)

  5. #5
    Moderator Avatar von .mario
    Registriert seit
    30.05.2007
    Beiträge
    924
    Let's rename PM to IM - my bad :)

    It depends on server, application and maybe other things if you can generate a < with alternative encodings. Try to play around with several common encodings and check what the app does. Maybe you can foll the filter by just using <scr<script>ipt> or comparable.

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein