CWE-697 不充分的比较 类弱点 48 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-697 属于逻辑错误类漏洞,指产品在安全相关上下文中执行了错误的实体比较。攻击者通常利用此缺陷,通过构造特定输入绕过身份验证或权限检查,从而获取未授权访问。开发者应避免此类问题,需确保比较逻辑涵盖所有必要因素,验证比较对象类型一致,并采用经过安全审计的标准库函数进行严谨的安全决策判断。
public class Truck { private String make; private String model; private int year; public boolean equals(Object o) { if (o == null) return false; if (o == this) return true; if (!(o instanceof Truck)) return false; Truck t = (Truck) o; return (this.make.equals(t.getMake()) && this.model.equals(t.getModel())); } }/* Ignore CWE-259 (hard-coded password) and CWE-309 (use of password system for authentication) for this example. */ char *username = "admin"; char *pass = "password"; int AuthenticateUser(char *inUser, char *inPass) { if (strncmp(username, inUser, strlen(inUser))) { logEvent("Auth failure of username using strlen of inUser"); return(AUTH_FAIL); } if (! strncmp(pass, inPass, strlen(inPass))) { logEvent("Auth success of password using strlen of inUser"); return(AUTH_SUCCESS); } else { logEvent("Auth fail of password using sizeof"); return(AUTH_FAIL); } } int main (int argc, char **argv) { int ap pa pas pass| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2023-25675 | Google TensorFlow 安全漏洞 — tensorflow | 7.5 | High | 2023-03-24 |
| CVE-2023-27579 | Google TensorFlow 安全漏洞 — tensorflow | 7.5 | High | 2023-03-24 |
| CVE-2014-125057 | robitailletheknot 安全漏洞 — robitailletheknot | 3.1 | Low | 2023-01-07 |
| CVE-2022-22203 | Juniper Networks Junos OS 安全漏洞 — Junos OS | 6.5 | Medium | 2022-07-20 |
| CVE-2022-24787 | Vyper 安全漏洞 — vyper | 7.5 | High | 2022-04-04 |
| CVE-2022-23027 | F5 BIG-IP 安全漏洞 — BIG-IP | 5.3 | - | 2022-01-25 |
| CVE-2021-3833 | Artica Integria IMS 安全漏洞 — Integria IMS | 9.8 | Critical | 2021-10-07 |
| CVE-2021-0295 | Juniper Networks Junos OS 安全漏洞 — Junos OS | 6.1 | Medium | 2021-07-15 |
| CVE-2021-20219 | Linux kernel 安全漏洞 — kernel | 5.5 | - | 2021-03-23 |
| CVE-2020-15130 | slpjs 安全漏洞 — slpjs | 7.5 | High | 2020-07-30 |
| CVE-2020-15131 | slp-validate 安全漏洞 — slp-validate.js | 7.5 | High | 2020-07-30 |
| CVE-2020-11072 | SLP Validate 安全漏洞 — slp-validate | 8.6 | High | 2020-05-12 |
| CVE-2020-11071 | slpjs 安全漏洞 — slpjs | 8.6 | High | 2020-05-12 |
| CVE-2020-10027 | Zephyr 安全漏洞 — zephyr | 7.8 | High | 2020-05-11 |
| CVE-2020-10024 | Zephyr 安全漏洞 — zephyr | 7.8 | High | 2020-05-11 |
| CVE-2020-8864 | D-Link DIR-867、DIR-878和DIR-882 HNAP 安全漏洞 — Multiple Routers | 8.8 | - | 2020-03-23 |
| CVE-2020-8862 | D-Link DAP-2610 安全漏洞 — DAP-2610 | 8.8 | - | 2020-02-22 |
| CVE-2015-9238 | secure-compare 安全漏洞 — secure-compare node module | 5.3 | - | 2018-05-31 |
CWE-697(不充分的比较) 是常见的弱点类别,本平台收录该类弱点关联的 48 条 CVE 漏洞。