漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
`chainId` may be outdated if user changes chains as part of connection in @web3-react
Vulnerability Description
@web3-react is a framework for building Ethereum Apps . In affected versions the `chainId` may be outdated if the user changes chains as part of the connection flow. This means that the value of `chainId` returned by `useWeb3React()` may be incorrect. In an application, this means that any data derived from `chainId` could be incorrect. For example, if a swapping application derives a wrapped token contract address from the `chainId` *and* a user has changed chains as part of their connection flow the application could cause the user to send funds to the incorrect address when wrapping. This issue has been addressed in PR #749 and is available in updated npm artifacts. There are no known workarounds for this issue. Users are advised to upgrade.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L
Vulnerability Type
使用共享资源的并发执行不恰当同步问题(竞争条件)
Vulnerability Title
web3-react 竞争条件问题漏洞
Vulnerability Description
web3-react是用于构建现代以太坊 dApp 的简单、最大可扩展、依赖最小化的框架。 web3-react存在竞争条件问题漏洞,该漏洞源于如果用户在连接流程中更改链,则从chainId派生的任何数据都可能不正确。
CVSS Information
N/A
Vulnerability Type
N/A