Skip to content

Learning path · Advanced

Client-side in depth

Beyond basic XSS: script that runs entirely in the browser, messages between windows, policy bypasses and caches.

Before you start. You have found reflected and stored XSS and can read minified JavaScript.

0 of 8 done
Start at step 1
  1. Step 1: DOM XSS: sources and sinks

    DOM-based XSS·442 reports

    Data from the URL, storage or messages reaching innerHTML, eval or a link. Search the JavaScript for sinks, then trace them back to something you control.

    Start with these reports

  2. Step 2: Messages between windows

    postMessage abuse·121 reports

    Listeners that never check where a message came from. Find them in the code, then send your own message from another origin.

  3. Step 3: Getting past a content security policy

    CSP bypass·387 reports

    Allowed hosts that serve user content, old libraries and missing directives. The reports show which gaps turned an HTML injection back into script.

  4. Step 4: Sanitisers that the browser undoes

    Mutation XSS and sanitiser bypass·181 reports

    Markup that a sanitiser approves and the browser then reparses into something else. Read the payloads closely: the same few tricks recur.

  5. Step 5: Prototype pollution

    Prototype pollution·127 reports

    Setting properties on every object through __proto__ in a query string or JSON body, then finding code that trusts them.

    Start with these reports

  6. Step 6: Cross-origin rules that trust too much

    CORS misconfiguration·250 reports

    Servers that reflect any Origin with credentials allowed. Simple to test and quick to prove when the response holds private data.

  7. Step 7: Poisoning a shared cache

    Web cache poisoning·190 reports

    Unkeyed headers that change a response which is then served to everyone. Use a cache buster on every test so you never poison the real page.

  8. Step 8: Tricking a cache into storing private pages

    Web cache deception·62 reports

    A path that looks like a static file to the cache and like an account page to the application. The reports show the path tricks that worked.

Next trackCloud and infrastructureDNS, storage, build pipelines and leaked keys: the bugs that live around an application rather than in it.