Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-31170— OpenZeppelin Contracts's ERC165Checker may revert instead of returning false

Quick assessment

Affected
OpenZeppelin openzeppelin-contracts
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

OpenZeppelin是一个应用软件。一个安全区块链应用的标准。 OpenZeppelin Contracts 4.0.0至4.7.1版本存在输入验证错误漏洞,该漏洞源于其容易被ERC165 Checker恢复而不是返回false。

CVSS 7.5 · High EPSS 0.79% · P55

Possible ATT&CK Techniques 1 AI

T1553 · Subvert Trust Controls
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-31170

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
OpenZeppelin Contracts's ERC165Checker may revert instead of returning false
Source: CVE Program / CVE List V5
Vulnerability Description
OpenZeppelin Contracts is a library for smart contract development. Versions 4.0.0 until 4.7.1 are vulnerable to ERC165Checker reverting instead of returning `false`. `ERC165Checker.supportsInterface` is designed to always successfully return a boolean, and under no circumstance revert. However, an incorrect assumption about Solidity 0.8's `abi.decode` allows some cases to revert, given a target contract that doesn't implement EIP-165 as expected, specifically if it returns a value other than 0 or 1. The contracts that may be affected are those that use `ERC165Checker` to check for support for an interface and then handle the lack of support in a way other than reverting. The issue was patched in version 4.7.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
OpenZeppelin 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
OpenZeppelin是一个应用软件。一个安全区块链应用的标准。 OpenZeppelin Contracts 4.0.0至4.7.1版本存在输入验证错误漏洞,该漏洞源于其容易被ERC165 Checker恢复而不是返回false。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
OpenZeppelin openzeppelin-contracts >= 4.0.0, < 4.7.1 -

II. Public POCs for CVE-2022-31170

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-31170

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-31170 (1)

Vendor Advisories for CVE-2022-31170 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-31170

No comments yet


Leave a comment