Skip to content
XSS Disclosed report Beginner CVE-2024-22213

Self XSS when sending HTML as a comment in the Deck app

The Deck app in Nextcloud allowed HTML injection in card comments, enabling a self-XSS that executed a script once when the comment was clicked. The reporter claims an attacker could make it persistent, potentially leading to cookie theft and account takeover.

hackit_bharat Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 6 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-mg7w-x9fm-9wwc

The report

Hi Team,

I hope you are doing well.

I found an XSS/HTML Injection Via Comments in Deck Cards.

Vulnerability Name :- XSS/HTML Injection Via Comments in Deck Cards

Vulnerability Description :- Hi Team , I found an XSS/HTML Injection Via Comments in Deck Cards, which leads to One time Malicious Script execution . I performed my Testing on Localhost Latest version of Nextcloud 27.0.0.8.

image.png
image.png From the original on HackerOne

Steps to Reproduce :- 1. Setup the Nextcloud Instance Locally. 2. After setting up locally --> login. 3. After that Go to Deck --> Create Cards --> Click on that card --> Go to comments. 4. Enter this payload in comments :- <a href=http://██████/dangling_markup/name.html><font size=100 color=red>You must click me</font></a><base target=" 5. You can also use this --> <a href=http://███████/dangling_markup/name.html><font size=100 color=blue>You Hacked by BhaRat</font></a><base target=" 6. Put this script in comments and click and send and Boom! you see the one time execution. 7. Attacker can easily found a way to make it persistent or execute their malicious script once.

Impact

  1. Malicious Script Execution.
  2. If attacker can able to make it persistent --> it leads to cookie stealing and account takeover.

POC Attached

If you need further info I am here to help you.

Thanks and Regards, BhaRat

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

Root cause

Likely the Deck comment field did not properly sanitise or escape HTML input, allowing injected markup and script to run.

Impact

The report claims one-time malicious script execution, and if the attacker can make it persistent it could lead to cookie stealing and account takeover, though persistence is not demonstrated.

What the attacker needed

Local Nextcloud instance; user pastes and clicks the payload

How it was found

  1. Set up a local Nextcloud instance and log in.
  2. Go to Deck, create a card, open it, and go to comments.
  3. Enter the provided HTML payload in the comment field.
  4. Send the comment and click it to trigger one-time script 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 report has not been written yet. The Original tab links to the source.

This is a self-XSS: the user pastes malicious HTML into a comment and clicks it themselves, rather than a victim simply visiting a page.

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 hackit_bharat

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.