目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-915 类漏洞列表 107

CWE-915 类弱点 107 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-915属于对象属性控制不当漏洞,指程序接收上游输入以初始化或更新对象属性时,未严格限制可修改的字段。攻击者常利用此缺陷篡改内部敏感属性,如权限标志或状态位,从而绕过安全校验或提升权限。开发者应实施严格的白名单机制,仅允许修改预期的公开属性,并对所有动态输入进行严格的类型和范围校验,确保内部属性不可被外部直接操控。

MITRE CWE 官方描述
CWE:CWE-915 对动态确定的对象属性的控制不当 英文:产品从上游组件接收输入,该输入指定了要在对象中初始化或更新的多个属性、特性或字段,但产品未能正确控制哪些属性可以被修改。 如果对象包含仅打算用于内部使用的属性,那么对这些属性的意外修改可能导致漏洞。这种弱点有时也被称为使其成为可能的特定于语言的机制,例如批量赋值(mass assignment)、自动绑定(autobinding)或对象注入(object injection)。
常见影响 (3)
Integrity Modify Application Data
An attacker could modify sensitive data or program variables.
Integrity Execute Unauthorized Code or Commands
Other, Integrity Varies by Context, Alter Execution Logic
缓解措施 (4)
Implementation If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists. For applications written with Ruby on Rails, use the attr_accessible (allowlist) or attr_protected (denylist) macros in each class that may be used in mass assignment.
Architecture and Design, Implementation If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
Implementation For any externally-influenced input, check the input against an allowlist of internal object attributes or fields that are allowed to be modified.
Implementation, Architecture and Design Refactor the code so that object attributes or fields do not need to be dynamically identified, and only expose getter/setter functionality for the intended attributes.
代码示例 (1)
This function sets object attributes based on a dot-separated path.
function setValueByPath (object, path, value) { const pathArray = path.split("."); const attributeToSet = pathArray.pop(); let objectToModify = object; for (const attr of pathArray) { if (typeof objectToModify[attr] !== 'object') { objectToModify[attr] = {}; } objectToModify = objectToModify[attr]; } objectToModify[attributeToSet] = value; return object; }
Bad · JavaScript
setValueByPath({}, "__proto__.isAdmin", true) setValueByPath({}, "constructor.prototype.isAdmin", true)
Bad · JavaScript
CVE ID 标题 CVSS 风险等级 Published
CVE-2024-55637 Drupal core 安全漏洞 — Drupal Core 9.8 - 2024-12-09
CVE-2024-55636 Drupal core 安全漏洞 — Drupal Core 9.8 - 2024-12-09
CVE-2024-5452 Pytorch-Lightning 安全漏洞 — lightning-ai/pytorch-lightning 8.8AI High AI 2024-06-06
CVE-2024-0404 AnythingLLM 安全漏洞 — mintplex-labs/anything-llm 9.8 - 2024-04-16
CVE-2024-3283 AnythingLLM 安全漏洞 — mintplex-labs/anything-llm 7.2AI High AI 2024-04-10
CVE-2023-39983 MOXA MXsecurity 安全漏洞 — MXsecurity Series 5.3 Medium 2023-09-02
CVE-2023-32079 Gravitl Netmaker 安全漏洞 — netmaker 8.8 High 2023-08-24
CVE-2022-43441 node-sqlite3 安全漏洞 — node-sqlite3 8.1 High 2023-03-16
CVE-2022-4068 LibreNMS 跨站脚本漏洞 — librenms/librenms 8.2 - 2022-11-20
CVE-2022-2625 PostgreSQL 安全漏洞 — postgresql 7.1 - 2022-08-18
CVE-2022-31106 Underscore.deep 安全漏洞 — underscore.deep 8.3 High 2022-06-28
CVE-2022-24802 deepmerge-ts 安全漏洞 — deepmerge-ts 8.1 High 2022-03-31
CVE-2021-32811 Zope 安全漏洞 — Zope 7.5 High 2021-08-02
CVE-2021-32807 Zope 注入漏洞 — AccessControl 4.4 Medium 2021-07-30
CVE-2021-21368 Matteo Collina msgpack5 安全漏洞 — msgpack5 6.7 Medium 2021-03-12
CVE-2021-21304 Fishcharlie Amazon Dynamoose 安全漏洞 — dynamoose 7.2 High 2021-02-08
CVE-2020-11066 TYPO3 Core组件代码问题漏洞 — TYPO3 CMS 8.7 High 2020-05-13

CWE-915 是常见的弱点类别,本平台收录该类弱点关联的 107 条 CVE 漏洞。