Skip to content
Medium 5.7

SASL credentials are not redacted from `amqp10_client` crash dumps and `sys:get_status` output

GHSA-mhh3-4wv2-rrj7 First seen on SecPulse

Summary

[!NOTE]
This report was written by Claude (Anthropic's Claude Code) under the direction of @lukebakken, who reviewed it before filing. The analysis, the proposed fix and its tests were produced by Claude and verified against main before submission.

Affected product

amqp10_client, t...

Affected packages

PackageAffected → Fixed
erlangamqp10_client
>= 4.3.0, < 4.3.7→ 4.3.7
erlangamqp10_client
>= 4.2.0, < 4.2.12→ 4.2.12
erlangamqp10_client
>= 4.1.0, < 4.1.17→ 4.1.17
erlangamqp10_client
>= 3.13.0, < 3.13.21→ 3.13.21
Original description The description as published by the source.

[!NOTE]
This report was written by Claude (Anthropic's Claude Code) under the direction of @lukebakken, who reviewed it before filing. The analysis, the proposed fix and its tests were produced by Claude and verified against main before submission.

Affected product

amqp10_client, the Erlang AMQP 1.0 client library published on Hex.pm and vendored in rabbitmq-server as deps/amqp10_client.

Summary

amqp10_client_connection:format_status/1 is the gen_statem status redactor: OTP calls it before the process state is written to a crash dump, and it also runs on sys:get_status. It delegates to obfuscate_state_config_sasl/1, whose only redacting clause matches {plain, User, Pwd}.

The connection state never holds that shape. open/1 runs the config through maybe_encrypt_sasl/1, which converts {plain, User, Pwd} into credentials_obfuscation:encrypt(term_to_binary(Plain)), so #state.config holds an encrypted_sasl() — {plaintext, Bin} or {encrypted, Bin}. The decrypted tuple exists only in transient locals during the handshake. The redacting clause is therefore unreachable and the Other -> Other fallback returns the credential-bearing term unchanged.

credentials_obfuscation:encrypt/1 returns {plaintext, Bin} whenever no obfuscation secret is configured, and no secret is configured by default. In that mode the stored value is {plaintext, term_to_binary({plain, User, Pwd})}, and the password is recoverable from it by inspection.

R…

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