SB2023071026 - Multiple vulnerabilities in Mastodon
Published: July 10, 2023
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 secuirty vulnerabilities.
1) Cross-site scripting (CVE-ID: CVE-2023-36459)
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data within the oEmbed preview cards. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
2) Path traversal (CVE-ID: CVE-2023-36460)
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when processing directory traversal sequences. A remote user can send a specially crafted HTTP request and create and overwrite arbitrary files on the system.
3) Input validation error (CVE-ID: CVE-2023-36461)
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to slow HTTP responses. A remote attacker can pass specially crafted input to the application and perform a denial of service (DoS) attack.
4) Input validation error (CVE-ID: CVE-2023-36462)
The vulnerability allows a remote attacker to compromise the target system.
The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can craft a verified profile link using specific formatting to conceal arbitrary parts of the link, enabling it to appear to link to a different URL altogether.
Remediation
Install update from vendor's website.
References
- https://github.com/mastodon/mastodon/releases/tag/v3.5.9
- https://github.com/mastodon/mastodon/security/advisories/GHSA-ccm4-vgcc-73hp
- https://github.com/mastodon/mastodon/commit/6d8e0fae3e96f3cf4febe03fa7fcf5b95ff761b2
- https://github.com/mastodon/mastodon/releases/tag/v4.0.5
- https://github.com/mastodon/mastodon/releases/tag/v4.1.3
- http://www.openwall.com/lists/oss-security/2023/07/06/5
- https://github.com/mastodon/mastodon/security/advisories/GHSA-9928-3cp5-93fm
- https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440
- http://www.openwall.com/lists/oss-security/2023/07/06/4
- https://github.com/mastodon/mastodon/security/advisories/GHSA-9pxv-6qvf-pjwc
- https://github.com/mastodon/mastodon/commit/c5929798bf7e56cc2c79b15bed0c4692ded3dcb6
- http://www.openwall.com/lists/oss-security/2023/07/06/7
- https://github.com/mastodon/mastodon/commit/610731b03dfcadd887078cb0399f4e514aa1931c
- https://github.com/mastodon/mastodon/security/advisories/GHSA-55j9-c3mp-6fcq