Skip to content
XSS Write-up Beginner

Bypassed Cloudflare: XSS Pop-Up

A reflected cross-site scripting vulnerability existed because user input was inserted into the page without proper sanitisation or encoding. An attacker could inject a script that executes in a victim's browser, potentially stealing cookies, despite Cloudflare protection.

cybersecuritywriteups.com

Published on cybersecuritywriteups.com

🔥Free Article Link: Click Here

Abhijeet kumawat, on cybersecuritywriteups.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 failed to sanitise or encode user-supplied input before reflecting it in the response, and the WAF was not configured to block the payload.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing cookies or performing actions on their behalf, although the text only demonstrates an alert box and cookie theft via document.cookie.

What the attacker needed

Victim clicks a crafted link or submits a form; input field reflects user input without sanitisation; Cloudflare WAF misconfigured or bypassed

How it was found

  1. Inject a malicious script into an input field that is not properly sanitised.
  2. The injected payload is reflected in the response without encoding or filtering.
  3. The script executes, displaying a JavaScript alert box, proving XSS.

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.

Cross-site scripting (XSS) is when a website shows user input without cleaning it, so an attacker can sneak in JavaScript code that runs in other people's browsers. Here, the site reflected a script tag back to the user, and the browser executed it, showing an alert box. This could let an attacker steal cookies or do other actions 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.