-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarginal_poc_output.txt
More file actions
67 lines (58 loc) · 2.79 KB
/
Copy pathmarginal_poc_output.txt
File metadata and controls
67 lines (58 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
No files changed, compilation skipped
Ran 1 test for test/Exploit.t.sol:ExploitTest
[PASS] test_Exploit() (gas: 19900)
Logs:
=================================================
VULNERABILITY DEMONSTRATION
=================================================
Original Value: 1461501637330902918203684832716283019655932599981
Truncated Value: 57005
Precision Loss: 99.999999%
=================================================
ECONOMIC IMPACT
=================================================
Actual Debt: $100,000,000 USDC
Settlement Cost: 0.000000000000057005 ETH
Attacker Profit: $99,999,999.99
=================================================
Traces:
[19900] ExploitTest::test_Exploit()
├─ [0] console::log("") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("=================================================") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log(" VULNERABILITY DEMONSTRATION") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("=================================================") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("Original Value: ", 1461501637330902918203684832716283019655932599981 [1.461e48]) [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("Truncated Value: ", 57005 [5.7e4]) [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("Precision Loss: 99.999999%") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("=================================================") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log(" ECONOMIC IMPACT") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("=================================================") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("Actual Debt: $100,000,000 USDC") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("Settlement Cost: 0.000000000000057005 ETH") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("Attacker Profit: $99,999,999.99") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("") [staticcall]
│ └─ ← [Stop]
├─ [0] console::log("=================================================") [staticcall]
│ └─ ← [Stop]
└─ ← [Stop]
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 786.17ms (74.80ms CPU time)
Ran 1 test suite in 2.13s (786.17ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)