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
thread 'poc::tests::it_works' panicked at .cargo/registry/src/index.crates.io-6f17d22bba15001f/ink_engine-5.1.1/src/ext.rs:118:37:
attempt to subtract with overflow
I haven't been further on the exploitation phase, but I suspect that might be abused by an attacker if the contract is built in release mode, where it will overflow. In debug mode, it just panics like shown above.
Is that known from the team ? Any feedback or help to see if this is actually an issue is appreciated
The text was updated successfully, but these errors were encountered:
While performing a
transfer
, I encountered unsafe arithmetic in ext.rs, which can be triggered using the following PoCPoC:
Output:
thread 'poc::tests::it_works' panicked at .cargo/registry/src/index.crates.io-6f17d22bba15001f/ink_engine-5.1.1/src/ext.rs:118:37: attempt to subtract with overflow
I haven't been further on the exploitation phase, but I suspect that might be abused by an attacker if the contract is built in release mode, where it will overflow. In debug mode, it just panics like shown above.
Is that known from the team ? Any feedback or help to see if this is actually an issue is appreciated
The text was updated successfully, but these errors were encountered: