Live data from Hacker News

Hacking a parking ticket system

ronreiter.com

11–20 of 65 posts

Re: Hacking a parking ticket system

#11
I'm surprised the scheme is so weak.

Wherever money is involved, even the small amounts for carparking[1], you're going to have people attacking the system to get free stuff.

And car park machines[2] have extensive audit trails.

[1] an individual stay is quite cheap. Over a year it's a lot of cash.

[2] At least, the Almex Control Systems machines did. As did the TIMTronic and System B and System C and Delta bus ticket machines.

Re: Hacking a parking ticket system

#12
The checksum algorithm they used will only produce 73 different checksums (00000000-99999999: 0-72) - and all of them even. There is space for 9999 different values.

Tips to improve: f(x) = ( x * secret) mod 1000

- mod 10000 instead of mod 1000 (as mentioned in the article)

- make sure the 'x' varies between 0-9999 (e.g. by splitting the number in half and adding the parts 03001909 > 0300+1909 = 2209)

- make sure the 'secret' is larger than 10000 and non-divisible by factors of 10000 (2 and 5) (e.g.: 54321)

Pretty sure it wouldn't be so easy to hack then.

Re: Hacking a parking ticket system

#13
post #12

The checksum algorithm they used will only produce 73 different checksums (00000000-99999999: 0-72) - and all of them even. There is space for 9999 different values. Tips to improve: f(x) = ( x * secret) mod 1000 - mod 10000 instead of mod 1000 (as mentioned in the article) - make sure the 'x' varies between 0-9999 (e.g. by splitting the number in half and adding the parts 03001909 > 0300+1909 = 2209) - make sure the…

It is probably just a barcode checksum/error code, otherwise they wouldn't have to rely on the values of the first 8 digits. Instead they should generate 4 random digits and store them in the database along with other information, then it basically works like a pin number (and xor it with a proper checksum).

Edit: If it is really a checksum, it is a crappy one.

Re: Hacking a parking ticket system

#16
post #9

Earlier quoted context omitted.

> So just get a new ticket from the entrance Getting a new ticket from the printer before the barrier will be hard if your car is inside the car park. Often the ticket printer will only work if it notices a large metal object (such as a car) in front of the barrier.

Many automated garages ban motorcycles because they're unable to trigger the sensor.

Or they make the barriers slightly shorter so that motorcycles can park for free.

Re: Hacking a parking ticket system

#17
post #11

I'm surprised the scheme is so weak. Wherever money is involved, even the small amounts for carparking[1], you're going to have people attacking the system to get free stuff. And car park machines[2] have extensive audit trails. [1] an individual stay is quite cheap. Over a year it's a lot of cash. [2] At least, the Almex Control Systems machines did. As did the TIMTronic and System B and System C and Delta bus ticke…

Car parking is unique because you can always (well ok with certain exceptions in some countries) connect it to a licence plate and thus to the car owner. Where I live the car owner is (again with some exceptions) held responsible, even if he did not drive - or he gives up the driver.

Re: Hacking a parking ticket system

#19
A friend of mine in college did this, but it was even simpler- there was no barcode, just a number that increased by one for each ticket sold. He went the entire year just making his own to avoid paying $3 per day. Just take the last three days tickets, increment by the average difference, print and display.

When they caught him (he parked in the wrong lot or something) he admitted everything, paid $80, and offered to help them catch others doing the same thing.

He told them to change the end-of-day expiry time to 1 minute earlier than normal, tow everyone with a ticket that expires at the usual time.

Re: Hacking a parking ticket system

#20
post #11

I'm surprised the scheme is so weak. Wherever money is involved, even the small amounts for carparking[1], you're going to have people attacking the system to get free stuff. And car park machines[2] have extensive audit trails. [1] an individual stay is quite cheap. Over a year it's a lot of cash. [2] At least, the Almex Control Systems machines did. As did the TIMTronic and System B and System C and Delta bus ticke…

They don't need it to be strong, you are leaving your car and license plate as collateral.
Post reply on HN