Skip to content
XSS Write-up Beginner

The Attack Surface You Didn’t Know Existed (OnlyOffice)

An unlinked endpoint on the same domain reflected unsanitised user input, allowing an attacker to execute script in the context of an authenticated user's session. This could let the attacker perform actions as the user or display fake prompts within the trusted domain.

gjethva10 Follow

Published on medium.com

Instead of stopping at the login interface, I expanded the scope and began mapping the domain structure. But security assessments shouldn’t stop at what’s visible.

Gaurang Jethva, 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 execute script in the context of an authenticated user's session, potentially performing authenticated actions, showing fake prompts, and accessing session cookies if not properly protected.

What the attacker needed

Victim is authenticated on the main domain; victim clicks a crafted link

How it was found

  1. Discover the unlinked endpoint /doc/index.php on the target domain.
  2. Notice the 'user' parameter in the URL.
  3. Test the parameter with a script payload and observe execution.

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 had a hidden page that took a value from the web address and put it directly into the page without cleaning it. An attacker could craft a link that, when clicked by a logged-in user, would run malicious code in that user's browser as if it came from the trusted site.

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 gjethva10

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.