Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross Site Scripting Vulnerability on "Send a campaign" feature in PHPList 3.5.4 #676

Closed
Songohan22 opened this issue Jun 5, 2020 · 2 comments

Comments

@Songohan22
Copy link

Describe the bug
An authenticated malicious user can take advantage of a Stored XSS vulnerability in the "Send a campaign" feature.
To Reproduce
Steps to reproduce the behavior:

  1. Log into the panel.
  2. Go to "/admin/?page=send&id=3&tk=311902f27f63cc4f7466fc56ca0e916b&tab=Finish"
  3. Insert payload:
    image
    // # "><svg/onload=prompt(/SonGohan22/)>
    "><svg/onload=alert(document.domain)>
  4. Click "Save and continue editing"
  5. View the preview to trigger XSS.
  6. View the preview to get in request and such Stored XSS.

Expected behavior
The removal of script tags is not sufficient to prevent an XSS attack. You must HTML Entity encode any output that is stored back to the page.

Impact
Commonly include transmitting private data, like cookies or other session information, to the attacker, redirecting the victim to web content controlled by the attacker, or performing other malicious operations on the user’s machine under the guise of the vulnerable site.

Screenshots
phplist22
phplist23
Insert payload
phplist24
Trigger XSS
phplist25
phplist26
phplist27

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser: Firefox
  • Version: 76.0.1
@Songohan22
Copy link
Author

Hi @michield @suelaP
Please review it! Thanks

@michield
Copy link
Member

michield commented Jun 6, 2020

Resolved with 5388df4

@michield michield closed this as completed Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants