605
VMScore

CVE-2022-25757

Published: 28/03/2022 Updated: 04/04/2022
CVSS v2 Base Score: 6.8 | Impact Score: 6.4 | Exploitability Score: 8.6
CVSS v3 Base Score: 9.8 | Impact Score: 5.9 | Exploitability Score: 3.9
VMScore: 605
Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Summary

In Apache APISIX prior to 2.13.0, when decoding JSON with duplicate keys, lua-cjson will choose the last occurred value as the result. By passing a JSON with a duplicate key, the attacker can bypass the body_schema validation in the request-validation plugin. For example, `{"string_payload":"bad","string_payload":"good"}` can be used to hide the "bad" input. Systems satisfy three conditions below are affected by this attack: 1. use body_schema validation in the request-validation plugin 2. upstream application uses a special JSON library that chooses the first occurred value, like jsoniter or gojay 3. upstream application does not validate the input anymore. The fix in APISIX is to re-encode the validated JSON input back into the request body at the side of APISIX. Improper Input Validation vulnerability in __COMPONENT__ of Apache APISIX allows an malicious user to __IMPACT__. This issue affects Apache APISIX Apache APISIX version 2.12.1 and prior versions.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

apache apisix

Github Repositories

Go相关的安全研究

Go漏洞靶场 "漏洞类型"包括: 任意文件读取 任意文件写入 SSRF 命令执行注入 SQL注入 模板注入 并发攻击 目录说明 research: 比较少见的漏洞和研究性质的安全问题 unsafe: 常见的安全问题 safe: 对比"unsafe"安全的编码方式 资源 腾讯的Go安全编码指南 审计规则和工具 怎么做go