Skip to content
XSS Disclosed report Beginner

xss for admin of https://newsletter.nextcloud.com

The admin template view page of phpList 3.2.5 reflects an unsanitised URL parameter into the HTML, allowing an attacker to inject a script. An attacker who convinces a logged-in administrator to visit a crafted link could execute JavaScript in the administrator's browser.

sergeym Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 42 days
  • Disclosed after 7 months

a site https://newsletter.nextcloud.com to have phplist 3.2.5

steps to reproduce:

  1. to use firefox browser, latest version

  2. go to https://newsletter.nextcloud.com/admin/?page=viewtemplate&id=123%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E

  3. log in as admin

  4. alert box with name of domain

please, look at my poc video in attachment (has been installed phplist 3.2.5 on the localhost)

Attachments

The original report as published on HackerOne, by sergeym. 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 application reflects the 'id' parameter into the page without proper output encoding or input validation.

Impact

An attacker could run JavaScript in an administrator's browser, as shown by an alert box.

What the attacker needed

Victim is a logged-in admin; victim clicks a crafted link; target runs phpList 3.2.5

How it was found

  1. Use the latest version of Firefox.
  2. Visit the crafted URL containing the script in the 'id' parameter.
  3. Log in as an administrator.
  4. An alert box showing the domain name appears.

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.

A reflected cross-site scripting (XSS) flaw means a web page takes something from the address bar and puts it directly into the page without cleaning it. Here the 'id' value is placed into the HTML, so adding a script tag makes the browser run that script. If an administrator clicks a prepared link, the script runs with the administrator's permissions.

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 sergeym

View all

3 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.