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.
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:
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
- Create a user account and log in.
- Go to the address management section.
- Enter a script payload in the full name field.
- Save and reload the page.
- 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.