-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VolgaCTF 2021 Qualifier - Summary #32
Comments
VolgaCTF 2021 Qualifier, [Mar 28, 2021 at 10:42:45 PM]: JSON.parse('{"money":100000000000000000000000000000000000000000000000000000000000001E-60}') 100 select json_extract('{"money":100000000000000000000000000000000000000000000000000000000000001E-60}','$.money') 100.00000000000001 |
By the way, it was possible to get a negative value, which also gave the flag. |
Hi @PeGrina, could you elaborate on how to get negative value? I am curious! |
Yes, @aszx87410, I did it in a slightly strange way, I just quickly sent transfer requests, because of this, the server processed 2 parallel requests at once, which is why it took money from my account 2 times. Because of this, out of 100 coins, I have -98 coins left. |
@PeGrina It sounds like race condition? Actually I also solved this one by race condition but I still don't know why it works. There are transaction and |
Writeups
The text was updated successfully, but these errors were encountered: