Skip to content
XSS Write-up Beginner

Crate & Sleeve (SXSS) (WebVerse-pro.com)

The comments feature allowed users to submit HTML containing a script tag, which executed in the context of other users viewing the comment. An attacker could steal a victim's session cookie by making the comment load an external script that sends the cookie to an attacker-controlled server.

medium.com

Published on medium.com

Lab can be found at: https://webverselabs-pro.com/

7s26Simon, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could steal a victim's session cookie, potentially leading to account takeover.

What the attacker needed

Access to the comment feature; victim views the malicious comment

How it was found

  1. Load the lab page and browse to the comments section.
  2. Enter an XSS payload in the comment field and observe the pop-up.
  3. Go to the interact server, enter the payload in the edit payload area, save it, and copy the generated URL.
  4. Wrap the copied URL in a script tag inside an HTML document.
  5. Post the comment and check the interact server for hits to /exfil containing the stolen cookie.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A website let people post comments that could include hidden code. When other people viewed those comments, the code ran in their browser and could send their login cookie to the attacker. This is called cross-site scripting (XSS), and it lets an attacker act as the victim.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.