by withinboredom · 1y ago · 0 comments
1. get access to a lottery ticket terminal
2. get access to a router firmware in the lottery datacenter en route to the database
3. wait for the query to get the winning numbers from the database
4. hold that packet and submit an INSERT into the database with you as the winning number at a predetermined date/time in the past
5. release the packet to query the database
6. hack the terminal to print your winning ticket with the predetermined date/time in the past
7. profit?
It probably doesn't work, but it was fun thinking about when I was younger.
If you have to fake the issue time by five minutes, then 1) the described method is probably infeasible anyway because the connection to the database will time out while the packet is held for multiple minutes, 2) the ticket issue date and audit date on the database event will vary by at least five minutes which makes it obvious that the ticket was improperly issued.
Seems non-trivial given that the database server is likely to be in the same datacenter/rack/physical machine. If you have this much access you might as well plant a backdoor in the server and tamper with the database however you want.
>3. wait for the query to get the winning numbers from the database
Are lottery winners determined immediately after they close? I thought they did a number picking ceremony by picking out literal number balls from a tumbler?
I assume that hour is for all the "picks" to be transmitted up to them for record keeping.
No idea about the computer RNG games though.
If you have this capability then why not just insert all number combinations into the db well before draw time?
Makes me wonder how money flows from lottery terminals back to the lottery itself. I imagine there's some rigorous bookkeeping involved.
I don't know whether it still applies after the transition to proof-of-stake.
(Some people call it "maximal extractable value" now, to keep the initialism and help it make more sense.)
https://en.m.wikipedia.org/wiki/2002_Breeders%27_Cup_betting...
If the terminal is not a dumb gateway to the central service, that would be a massive risk. I'd be extremely surprised if that was possible.
I mean, you could probably still print something, but any validity check would fail.