Skip to content

Prevent XSS from Confidant API call

Moderate
whu-lyft published GHSA-rxq8-q85f-m866 Sep 20, 2024

Package

pip confidant (pip)

Affected versions

< 6.6.2

Patched versions

6.6.2

Description

Impact

What kind of vulnerability is it? Who is impacted?
Potential XSS from API calls below:
GET /v1/credentials
GET /v1/credentials/
GET /v1/archive/credentials/
GET /v1/archive/credentials
POST /v1/credentials
PUT /v1/credentials/
PUT /v1/credentials//<to_revision>

GET /v1/services
GET /v1/services/
GET /v1/archive/services/
GET /v1/archive/services
PUT /v1/services/
PUT /v1/services//<to_revision>

Stored XSS that can only be used as a stored HTML injection. The attacker needs to be authenticated and have privileges to create new credentials, but could use this to show information and run scripts to other users into the same Confidant instance.

Patches

Has the problem been patched? What versions should users upgrade to?
yes, version 6.6.2

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?
NO

References

Are there any links users can visit to find out more?
https://hackerone.com/reports/2332004
https://hackerone.com/reports/2456673
https://hackerone.com/reports/2476542
Acknowledgement:
Thank you Rein Daelman (trein) for reporting and proposing the fix.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Adjacent
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

CVE ID

CVE-2024-45793

Weaknesses

Credits