You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,10 @@ A collection of vulnerable code snippets taken from [Solidity by Example](https:
63
63
* Copying ``bytes`` arrays from memory or calldata to storage may result in dirty storage values.
64
64
*[Invariants](src/test/Invariant.sol) :
65
65
* Assert is used to check invariants. Those are states our contract or variables should never reach, ever. For example, if we decrease a value then it should never get bigger, only smaller.
66
-
66
+
*[NFT Mint via Exposed Metadata](src/test/NFTMint_exposedMetadata.sol) :
67
+
* The contract is vulnerable to CVE-2022-38217, this could lead to the early disclosure of metadata of all NFTs in the project. As a result, attacker can find out valuable NFTs and then target mint of specific NFTs by monitoring mempool and sell the NFTs for a profit in secondary market
68
+
* The issue is the metadata should be visible after the minting is completed
69
+
67
70
## Bug Reproduce
68
71
### 20220714 Sherlock Yield Strategy Bug - Cross-protocol Reentrancy
//Since the contract is vulnerable to CVE-2022-38217
22
+
//it could lead to the early disclosure of metadata of all NFTs in the project
23
+
//As a result, attacker can find out valuable NFTs and then target mint specified NFTs by monitoring Mempool and sell the NFTs for a profit in secondary market
24
+
25
+
//For example, Lets assume the attacker finds out that NFT#142 is a rare NFT, now he just has to moniter the mempool till NFT#141 is minted and then mint NFT#142
26
+
//View Metadata of the NFTs via cURL -> curl -k https://bafybeic23x4v75z7isyqhy5p6ylzqutm6lnpobwngaouovdu6qjjvt4wpu.ipfs.dweb.link/142.json
27
+
//The issue is the metadata should be visible after the minting is completed
0 commit comments