Skip to content
XSS Disclosed report Intermediate CVE-2021-22878

Reflected XSS when renaming a file with a vulnerable name which results in an error

yzy9951 Follow

Originally disclosed on HackerOne

Bounty$100 Medium 5.3 View original
  • Triaged in 2 hours
  • Fixed in 8 months
  • Paid in 7 months
  • Disclosed after 9 months

Hi,

It looks like Nextcloud team will accept the XSS protected by the CSP. (Report #896511) Here is another XSS.

  1. Rename an existing filename to <img src=x onerror=prompt(1)>.jpg.
  2. Anyone tries to rename this <img src=x onerror=prompt(1)>.jpg with an invalid filename, like add a "" in it, will trigger the XSS attack.
  3. Need bypass the CSP.

Thanks

Impact

Cross-Site Scripting

Attachments

XSS.png
XSS.png From the original on HackerOne
Add_PoC.png
Add_PoC.png

The original report as published on HackerOne, by yzy9951. 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.

What is known

A medium-severity XSS bug in Nextcloud, rated CVSS 5.3. HackerOne made it public on 1 March 2021 as CVE-2021-22878. It paid $100.

About XSS

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

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

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 yzy9951

View all

4 more disclosed reports, 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.