Stored/Reflected XSS in identities leads chained store XSS in logs in modoboa/modoboa

Valid

Reported on

Jan 24th 2023


Description

The XSS playload injected in the identities to create a new account leads to stored and reflected XSS in identities page and also in the logs page.

Steps to Reproduce

1. Go to admin/identities 

2.Enter the payload in the username, first name and last name as these fields are not sanatized 

3. This is the payload for triggering the XSS  "><img src/onerror=prompt(8)>  and you can see payload executed in both the accounts page 
 upon deletion action and the stored XSS will get triggered Logs page.

4. Please refer the POC for the same.

Proof of Concept

Drive link of POC

https://drive.google.com/file/d/1glc2cwyrmi_IwicJ5SD5n0Wuhi82AtEW/view?usp=sharing

Impact

Cross site scripting attacks can have devastating consequences. Code injected into a vulnerable application can exfiltrate data or install malware on the user’s machine. Attackers can masquerade as authorized users via session cookies, allowing them to perform any action allowed by the user account.

We are processing your report and will contact the modoboa team within 24 hours. 2 months ago
Sandeep Srinivasan modified the report
2 months ago
Sandeep Srinivasan modified the report
2 months ago
We have contacted a member of the modoboa team and are waiting to hear back 2 months ago
Antoine Nguyen validated this vulnerability 2 months ago
Sandeep Srinivasan has been awarded the disclosure bounty
The fix bounty is now up for grabs
The researcher's credibility has increased: +7
Antoine Nguyen
2 months ago

Here is a fix: https://github.com/modoboa/modoboa/pull/2763

Sandeep
2 months ago

Researcher


Looks fixed

commit ID eef9ab7

once it's merged please move this report to fixed and request for a CVE

commit eef9ab72b5305578a3ad7a7463bd284aa645e98b (HEAD -> master, origin/fix/xss_fixes, fix/xss_fixes)
Author: Antoine Nguyen <tonio@ngyn.org>
Date:   Thu Jan 26 10:41:15 2023 +0100

    Avoid XSS issues while deleting account and looking at logs.
Sandeep
2 months ago

Researcher


@maintainer

Antoine Nguyen marked this as fixed in 2.0.4 with commit eef9ab 2 months ago
The fix bounty has been dropped
This vulnerability has been assigned a CVE
Antoine Nguyen published this vulnerability 2 months ago
Sandeep
a month ago

Researcher


@maintainer bounty for this vulnerability ?

Sandeep
23 days ago

Researcher


any update about the bounty @maintainer

Antoine Nguyen
23 days ago

Modoboa is free software and we don't make money on it, so unfortunately, no bounty available.

Sandeep
23 days ago

Researcher


cool, thanks for the update.

to join this conversation