Skip to content
XSS Write-up Beginner

Detect and exploit basic Stored XSS vulnerability. And nothing sp

A stored cross-site scripting flaw existed in the address management form fields, allowing an attacker to inject a script that executed when the page was reloaded. The attacker could run arbitrary JavaScript in the victim's browser, though a WAF initially blocked the payload.

nguyenchinh Follow

Published on medium.com

Một ngày đẹp trời, tôi vào một trang web thương mại điện tử chỉ để nghịch ngợm một chút. Là một người làm bảo mật, tôi thường tìm kiếm và nhập các trường đáng ngờ mà tôi nghĩ có thể chứa lỗ hổng bảo mật, chẳng hạn như trường tìm kiếm, và tôi đã sử dụng một lệnh cơ bản để kiểm tra lỗ hổng:

nguyenchinh, 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

Root cause

Likely the application did not properly sanitise or encode user input in the address form fields before storing and displaying it.

Impact

An attacker could execute arbitrary JavaScript in the context of the victim's browser, potentially leading to session hijacking or other client-side attacks, though a WAF initially blocked the payload.

What the attacker needed

A user account; ability to bypass WAF

How it was found

  1. Create a user account and log in.
  2. Go to the address management section.
  3. Enter a script payload in the full name field.
  4. Save and reload the page.
  5. Bypass the WAF to execute the script.

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.

Stored XSS is when a website saves harmful code you type into a form and later shows it to other people without cleaning it. That code runs in their browser and can do things like steal their session or change what they see. Here, the address form saved a script that ran when the page was reloaded.

What is XSS?

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

More by nguyenchinh

View all

1 more disclosed report, best first.

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.