Skip to content
High 7.6

RabbitMQ Management APIにCSRFの脆弱性、悪意あるサイトから操作される恐れ

GHSA-c22p-g5xq-x5jm First seen on SecPulse

Summary

RabbitMQ Management APIには、認証済みの利用者になりすましてメッセージの発行や取り出しを行われる恐れのあるCSRFの脆弱性があります。影響を受けるのはrabbitmq-serverの4.4.0以前、4.3.8以前、4.2.13以前、4.1.18以前、3.13.22以前で、4.4.1、4.3.8、4.2.13、4.1.18、3.13.22以降の修正版で対処できます。利用中の版を確認し、該当する場合は修正版へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

RabbitMQ Management APIには、認証済みの利用者になりすましてメッセージの発行や取り出しを行われる恐れのあるCSRFの脆弱性があります。影響を受けるのはrabbitmq-serverの4.4.0以前、4.3.8以前、4.2.13以前、4.1.18以前、3.13.22以前で、4.4.1、4.3.8、4.2.13、4.1.18、3.13.22以降の修正版で対処できます。利用中の版を確認し、該当する場合は修正版へ更新してください。

Affected packages

PackageAffected → Fixed
otherrabbitmq-server
>= 4.4.0, < 4.4.1→ 4.4.1
otherrabbitmq-server
>= 4.3.0, < 4.3.8→ 4.3.8
otherrabbitmq-server
>= 4.2.0, < 4.2.13→ 4.2.13
otherrabbitmq-server
>= 4.1.0, < 4.1.18→ 4.1.18
otherrabbitmq-server
>= 3.13.0, < 3.13.22→ 3.13.22
Original description The description as published by the source.

Summary

The RabbitMQ Management API is vulnerable to Cross-Site Request Forgery (CSRF). Because the API authenticates requests using HTTP Basic authentication without enforcing anti-CSRF tokens, and because state-mutating endpoints accept requests with a text/plain Content-Type, an attacker can bypass CORS preflight protections. This allows a malicious third-party website to execute unauthorized state-changing actions (such as publishing or consuming messages) on behalf of an authenticated user.

Details

The Management API relies exclusively on HTTP Basic authentication and lacks any anti-CSRF token mechanisms. While CORS defenses are strictly configured to prevent unauthorized cross-origin reading and unauthorized preflight interactions, they do not block standard HTML submissions or fetch requests initiated with mode: "no-cors" and simple headers.
Furthermore, state-mutating routes, such as POST /api/exchanges/%2F/amq.default/publish, fail to strictly enforce an application/json Content-Type. Testing on rabbitmq:4-management (version 4.4.0) demonstrates that the API successfully parses and processes payloads sent with Content-Type: text/plain or missing content-type headers entirely. An attacker can craft a cross-site HTML form where the default = delimiter used by the browser is embedded harmlessly within a valid JSON string structure, forcing the broker to execute the request under the victim's cached credentials.

Proof of concept

Copy the code below insi…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details