Skip to content

Whatsapp-Chat-Exporter has Cross-Site Scripting vulnerability in HTML output of chats.

Moderate severity GitHub Reviewed Published Jul 9, 2023 in KnugiHK/WhatsApp-Chat-Exporter

Package

pip Whatsapp-Chat-Exporter (pip)

Affected versions

< 0.9.5

Patched versions

0.9.5

Description

Impact

A Cross-Site Scripting (XSS) vulnerability was found in the HTML output of chats. XSS is intended to be mitigated by Jinja's escape function. However, autoescape=True was missing when setting the environment. Although the actual impact is low, considering the HTML file is being viewed offline, an adversary may still be able to inject malicious payloads into the chat through WhatsApp. All users are affected.

Patches

The vulnerability is patched in 0.9.5. All users are strongly advised to update the exporter to the latest version.

Workarounds

No workaround is available. Please update the exporter to the latest version.

References

KnugiHK/WhatsApp-Chat-Exporter@bfdc68c
https://owasp.org/www-community/attacks/xss/

References

@KnugiHK KnugiHK published to KnugiHK/WhatsApp-Chat-Exporter Jul 9, 2023
Published to the GitHub Advisory Database Jul 10, 2023
Reviewed Jul 10, 2023

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
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
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:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-8c6x-g4fw-8rf4

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.