SB2023050402 - LDAP injection in Mastodon
Published: May 4, 2023
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) LDAP injection (CVE-ID: CVE-2023-28853)
The vulnerability allows a remote attacker to bypass authentication process.
The vulnerability exists due to improper input validation when processing DLAP queries. A remoteuser can send a specially crafted LDAP query to the application, bypass authentication process and gain unauthorized access to sensitive information.
Remediation
Install update from vendor's website.
References
- https://github.com/mastodon/mastodon/security/advisories/GHSA-38g9-pfm9-gfqv
- https://github.com/mastodon/mastodon/pull/24379
- https://github.com/mastodon/mastodon/releases/tag/v3.5.8
- https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/app/models/concerns/ldap_authenticable.rb#L7-L14
- https://github.com/mastodon/mastodon/blob/94cbd808b5b3e7999c7e77dc724b7e8c9dd2bdec/config/initializers/devise.rb#L398-L414
- https://github.com/mastodon/mastodon/releases/tag/v4.1.2
- https://github.com/mastodon/mastodon/releases/tag/v4.0.4