LightSAMLに認証を回避される脆弱性、署名されていない主張を通される
概要
LightSAMLには、署名の検証範囲がずれることで、署名されていないSAMLアサーションの内容を正規のものとして扱ってしまう脆弱性があります。認証回避や権限昇格につながるおそれがあり、深刻度はCVSS 8.1のHighです。修正版は4.7.1および5.0.1で、利用中のバージョンが該当する場合はこの版に更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
LightSAMLには、署名の検証範囲がずれることで、署名されていないSAMLアサーションの内容を正規のものとして扱ってしまう脆弱性があります。認証回避や権限昇格につながるおそれがあり、深刻度はCVSS 8.1のHighです。修正版は4.7.1および5.0.1で、利用中のバージョンが該当する場合はこの版に更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| litesamllightsaml | — | 記載なし |
| composerlitesaml/lightsaml |
4.7.1 未満→ 4.7.1 |
4.7.1 |
| Packagistlitesaml/lightsaml |
4.0.0 以上 4.7.1 未満→ 4.7.1 |
4.7.1 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
LightSaml 5.0.0 (latest release; also confirmed on 4.6.1) validates an inbound samlp:Response by collecting its direct-child saml:Assertion elements and validating each one's ds:Signature via robrichards/xmlseclibs. The two layers disagree on which element a signature actually covers: LightSaml reads claims from the assertion node it collected, while xmlseclibs resolves the signed Reference URI="#id" with a document-wide //*[@Id] XPath that returns the first ID-bearing element anywhere in the document.
An attacker who has captured one genuine signed assertion can exploit this to surface attacker-authored, unsigned claims.
Details
Response::deserialize collects assertions with manyElementsFromXml, whose relative XPath saml:Assertion matches only direct children of the Response. Each collected assertion is validated independently by AssertionSignatureValidatorAction against the out-of-band trusted IdP credential (resolved by Issuer entityId, never from the document):
https://github.com/litesaml/lightsaml/blob/5.0.0/src/Model/Protocol/Response.php#L122
https://github.com/litesaml/lightsaml/blob/5.0.0/src/Model/AbstractSamlModel.php#L93
https://github.com/litesaml/lightsaml/blob/5.0.0/src/Action/Assertion/Inbound/AssertionSignatureValidatorAction.php#L28
The check delegates to xmlseclibs XMLSecurityDSig::validateReference(), which first removes the signature node being validated from the shared document (enveloped-signature removal):
`…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- 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
- web github.com
- web github.com
- web github.com