Mongooseで select: false の項目が取得される脆弱性、機微情報の流出の恐れ
Summary
Mongooseのsanitizeprojectionに回避される脆弱性が見つかり、select: falseが設定された項目が取得される可能性があります。パスワードハッシュやAPIキーなどの機微情報が流出するおそれがあり、影響を受けるのは8.5.0から8.24.10までと9.12.2のバージョンです。修正版は8.24.10と9.12.2で、これらへの更新が必要です。
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.
Mongooseのsanitizeprojectionに回避される脆弱性が見つかり、select: falseが設定された項目が取得される可能性があります。パスワードハッシュやAPIキーなどの機微情報が流出するおそれがあり、影響を受けるのは8.5.0から8.24.10までと9.12.2のバージョンです。修正版は8.24.10と9.12.2で、これらへの更新が必要です。
Original description The description as published by the source.
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, object or array aggregation expressions, nested and parent projections, positional projections, $meta, discriminator-specific exclusions, an own proto key, and projection-cast error paths. Applications that pass attacker-controlled data to select(), find(filter, projection), or the projection option while relying on sanitizeProjection can return fields marked select: false, including password hashes, reset tokens, API keys, and nested secrets. Nested exclusion objects, $elemMatch combined with an exclusion or a cast error, and discriminator filters can also cause ordinary queries that do not enable sanitizeProjection to omit the select: false exclusions that Mongoose normally adds. This issue is fixed in versions 8.24.10 and 9.12.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com