Skip to content
XSS Disclosed report Intermediate CVE-2017-0890

DOM XSS vulnerability in search dialogue (NC-SA-2017-007)

The search dialogue in Nextcloud Server did not properly escape user-supplied content, allowing a cross-site scripting attack. An attacker could get a victim to write or paste malicious content into the search box to run script in the victim's browser session.

hunterahsan Follow

Originally disclosed on HackerOne

Bounty$250 Low 2.6 View original
  • Triaged in 35 hours
  • Fixed in 56 days
  • Paid in 39 days
  • Disclosed after 3 months

Summary by the program

#DOM XSS vulnerability in search dialogue (NC-SA-2017-007) Risk level: Low CVSS v3 Base Score: 2.6 (AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N) CWE: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79)

#Description Inadequate escaping lead to XSS vulnerability in the search module. To be exploitable an user has to write or paste malicious content into the search dialogue.

#Affected Software

  • Nextcloud Server < 11.0.3 (CVE-2017-0890)

#Action Taken The content is now properly escaped, furthermore for Nextcloud 12 we have hardened jQuery to prevent such CSP bypasses.

#Acknowledgements The Nextcloud team thanks the following people for their research and responsible disclosure of the above advisory:

  • Ahsan Khan - Vulnerability discovery and disclosure.

The original report as published on HackerOne, by hunterahsan. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Impact

An attacker could run script in a victim's browser session, but only if the victim writes or pastes the malicious content into the search dialogue themselves, which limits the attack.

What the attacker needed

Victim pastes content into search dialogue

The fix

The content is now properly escaped, and jQuery was hardened in Nextcloud 12 to prevent such CSP bypasses.

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 report has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is when a website shows text from a user without cleaning it first, so the browser treats that text as code and runs it. Here the search box did not clean what was typed or pasted into it, so harmful content could run as script inside the page. The advisory rates the risk as low because the victim has to put the content in themselves.

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 hunterahsan

View all

1 more disclosed report, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

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.