This may be limited to Germany:

Apparently you can get free vouchers (from 2 to 5 euros in value) on the website "pizza.de".

There is a lottery kind of game right now on this URL: https://pizza.de/casino/

If you just open the developer console and run "win()", you "win" the game and can enter your phone number to get your voucher 🤔

What idiot programmed this?
What idiot reviewed this?
What idiot put this live?

  • 28
    Wow just tried that for the sake of fun.I don't even live in Germany.
    That was fun.Maybe you should contact pizza.de and tell them what you found
  • 26
    Someone learning maybe... At least that's what I hope, if we're talking about a senior developer then the world is falling apart
  • 3
    LOL. 😄
  • 61
    I will eat free pizza for a week, then tell them
  • 2
  • 29
    I think a few years back you could add anything as a pizza topping (or product) by just invoking some js method like .add(“something bogus”, 1.99). And yes, 1.99 was the price. 😄
  • 38
    Hope they deliver to Bulgaria.
  • 30
    @Picard Did they check for negative prices? 😁
  • 9
    Dont tell them. Nooooooo i want pizza. (gave my 2 euros here)
  • 0
  • 4
    Wtf I hate JavaScript
  • 2
    @theannomc1 I think they cannot sue you unless you are accepting T&C where they forbid it. Not 100% sure though
  • 39
    Maybe the Developer Added it on purpose to leave it as backdoor for himself 🤔
  • 12
    It's a feature
  • 1
    Oh my freaking god, this is insane xD
  • 3
    what kind of sorcery is this!!!???
  • 34
    Senior developers do it. I have seen something similar where someone has a function loginSuccess where you can just pass the user ID and it would log you in.

    I contacted them and told them about it.

    His reply was, no body knows it. Don't tell it to others or we sue you.
  • 16
    Actually, this is no big deal. This is not a real lottery and even without your trick you have a high amount of tries, so nearly everyone 'wins' the 2€. Since you can only use one of those for each food delivery and there is a minimal amount of money you have to spend, you don't gain any advantage.

    But yeah, in a lot of cases, pure client-side validation is in fact a real problem.
  • 10
    Did you mean:

    What genius programmed this?
    What genius reviewed this?
    What genius put this live?
  • 8
    @intromatt they will if you find the maximum delivery range js property 😄

    "in Berlin: hey Erhan! there's a order from bulgaria, pizza.de says you have to deliver it. 😳 "
  • 2
    shites, you can't use the same phone number twice -_-'
  • 4
    It still works! Sending out vouchers to friends and family!
  • 8
    The console output suggests to me that this is not entirely unintentional.
  • 5
    @hrombach Or he's just forgetten to remove his console.log
  • 1
    Holy shit ur actually right
  • 1
    Dude it's kinda like pizza huts survey: you find out a store number, you get 10$ off 20+ order whenever
  • 1
    Thanks for sharing
  • 6
    Another error, if you open in a private tab you can play as many times as you want '-'
  • 1
    @henseiderv you can’t reuse the same phone number though
  • 2
    @zmzmuazzam98 100% do this, they'll probably give you a reward of some kind
  • 5
    This is just lead gen tool. They want to get you ordering and will upsell. I have built fake competitions like this before which are cheatable in console. No need for backend because they client just wanted people to order using the code.
  • 2
    The 404‘d the site.
  • 1
    This is fun because they just got free advertising to all our German friends on here
  • 0
    @AlexDeLarge oh, c'mon! I went through all those comments to look if someone made that joke already and of course you did! Damn!
  • 0
    It's seriously still exposed xD ?
  • 1
    I think they just fixed it 😟
  • 2
    I guess if you tell them you can convert from a black hat to a pizza hat.
  • 0
    I do not like Javascript, but it is still not bad. Codes on entertainment sites are always terrible. See what code is here : https://rocketpayz.com/uk-online-ca... . This is very funny)
  • 0
    I don't think you can make money this way
Add Comment