soapbarのverify_envelope_bspに認証回避の脆弱性、署名を偽装される
Summary
soapbarのverify_envelope_bsp()は、メッセージに埋め込まれた証明書を信頼の基準にしているため、攻撃者が自ら作った証明書で署名した偽のSOAPメッセージが検証を通過してしまいます。0.13.0より前のバージョンが対象で、0.13.0で修正されています。BSP検証を認証の根拠にしている場合は、速やかに0.13.0以降へ更新してください。
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.
soapbarのverify_envelope_bsp()は、メッセージに埋め込まれた証明書を信頼の基準にしているため、攻撃者が自ら作った証明書で署名した偽のSOAPメッセージが検証を通過してしまいます。0.13.0より前のバージョンが対象で、0.13.0で修正されています。BSP検証を認証の根拠にしている場合は、速やかに0.13.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| hitoshyamamotosoapbar | — | Not listed |
| pipsoapbar |
< 0.13.0→ 0.13.0 |
0.13.0 |
| PyPIsoapbar |
< 0.13.0→ 0.13.0 |
0.13.0 |
Original description The description as published by the source.
Impact
verify_envelope_bsp() derived its trust anchor from the message it was
verifying. It read the X.509 certificate out of the caller-untrusted
wsse:BinarySecurityToken, validated only that certificate's not-before /
not-after dates, and then verified the signature against that same certificate.
There was no CA-chain validation, no issuer/subject allowlist, and no pinning.
A successful verify_envelope_bsp() therefore proved only that the envelope was
signed by whoever supplied the embedded certificate — never that it was signed
by a trusted party. An attacker who mints their own certificate, signs a
forged envelope, and embeds that certificate in the token passes verification.
Any consumer that treats a successful BSP verification as authentication can be
impersonated (signature forgery / authentication bypass).
verify_envelope() (which pins a caller-supplied x509_cert) was not
affected — the flaw was specific to the BSP variant whose trust anchor came
from the message.
Affected versions
soapbar < 0.13.0 (all published versions exposing verify_envelope_bsp).
Patches
Fixed in 0.13.0. verify_envelope_bsp now fails closed unless the caller
anchors trust:
trusted_certs=[...]— pin the expected signer certificate(s); the embedded
certificate must equal one of them.ca_certs=[...]— accept certificates directly issued by trusted CA(s).
With neither supplied, verification raises instead of trusting the message's own
c…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com