Steam key distributor test site is up (without real Steam keys)

Started by Tynan, June 17, 2015, 11:42:35 PM

Previous topic - Next topic

milon

Worked for me, found the email in the junk folder eventually.

Also, just for giggles I searched the forum for people publicly posting email addresses.  Ran a few through the distributor until I hit one that was also used to purchase RW.  So someone else got an unsolicited email with their fake Steam keys (don't remember who it was, sorry).  Doesn't seem to be a very hackable approach, so I didn't do anything else with it.

macrosblackd


puddlejumper448

#17
I got my email but actual key was not in it. It just said "Your Steam key(s):  "

I know they aren't real keys but someone else in the thread said they still tried it in steam so I assume there's suppose to be an actual fake key there. It' possible that you're out now, but 100 keys and 16 responses lol, just checking

EDIT: It's also worth nothing that I bought the game after the guaranteed key date, idk if that is implemented in the test or not

Tynan

Quote from: puddlejumper448 on June 22, 2015, 07:53:56 PM
I got my email but actual key was not in it. It just said "Your Steam key(s):  "

I know they aren't real keys but someone else in the thread said they still tried it in steam so I assume there's suppose to be an actual fake key there. It' possible that you're out now, but 100 keys and 16 responses lol, just checking

EDIT: It's also worth nothing that I bought the game after the guaranteed key date, idk if that is implemented in the test or not

Maybe it's out of Steam keys! Let me look. I was waiting for this.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

RayvenQ

I got the same result as puddlejumper (I bought the game before the key date thing ended). Got the right sendowl link though. Tried a non purchase email and (correctly I imagine) got : No orders for RimWorld were found under the email [email]. Please check that this is your exact purchase email as described below.

I got the email right away, but it appeared in my junk folder (I had a feeling it might have)Also, I'm on a hotmail email account.

Tynan

Yep, sounds like it's out of keys. Working on it, thanks.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Praeses

Tynan, my brother bought two copies of RW, of which he gave one to me, but it's still linked to his e-mail account. Will you be incorporating multi-key e-mail addresses into this tool? There might be others in the same situation :)

Tynan

Quote from: Praeses on June 23, 2015, 07:38:29 AM
Tynan, my brother bought two copies of RW, of which he gave one to me, but it's still linked to his e-mail account. Will you be incorporating multi-key e-mail addresses into this tool? There might be others in the same situation :)

Yes, it'll give you all your keys.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

andyprogrammer

One security idea (that I can't test) is purchasing RW with an email address that contains special characters that could also be used as an exploit. For example, single-quote can be involved in SQL injection and is in a valid email address (https://en.wikipedia.org/wiki/Email_address#Local_part). Something like '%20or%[email protected] is a valid email and, in the right circumstances, might be an exploit.

Here are some security questions I have for you, Tynan:
- Do you, at any point, use the validated email data in an OS command, PHP eval(), or some other place that would have a special meaning (e.g. # is a common comment character, ; can be used in OS command injection)? I'm mostly concerned about the email sending part and OS command injection (use an API, not a shell command)
- Do you use prepared statements with binding variables (no string concatenation with variables) when hitting the database?
- Do you have character sets specified in both your php script and the database? That's one way attackers tend to bypass input validation. UTF-8 tends to be the standard these days.
- Is this on a separate server? Suppose I get in to this web server, what else could I mess with? Same goes for the database: if I get into that, is there anything else valuable that I could get into?

(obviously you don't need to post your answers, just food for thought)

Tynan

Quote from: andyprogrammer on June 23, 2015, 04:25:24 PM
One security idea (that I can't test) is purchasing RW with an email address that contains special characters that could also be used as an exploit. For example, single-quote can be involved in SQL injection and is in a valid email address (https://en.wikipedia.org/wiki/Email_address#Local_part). Something like '%20or%[email protected] is a valid email and, in the right circumstances, might be an exploit.

Here are some security questions I have for you, Tynan:
- Do you, at any point, use the validated email data in an OS command, PHP eval(), or some other place that would have a special meaning (e.g. # is a common comment character, ; can be used in OS command injection)? I'm mostly concerned about the email sending part and OS command injection (use an API, not a shell command)
- Do you use prepared statements with binding variables (no string concatenation with variables) when hitting the database?
- Do you have character sets specified in both your php script and the database? That's one way attackers tend to bypass input validation. UTF-8 tends to be the standard these days.
- Is this on a separate server? Suppose I get in to this web server, what else could I mess with? Same goes for the database: if I get into that, is there anything else valuable that I could get into?

(obviously you don't need to post your answers, just food for thought)

Thanks for the info - I never would have thought of making an email like '%20or%[email protected] :p

Anyway, answers are:

-No, only SQL commands.
-No, it's just string concat for now.
-No, I'll fix this now thanks!
-It is on the rimworldgame.com sub-account, which is connected to the creative reward database (nothing too scary there) and the steam key database (very scary!). But theoretically nobody could penetrate to ludeon.com as they're isolated accounts on the server.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

seanp

I tried it yesterday but never got any email.  I did check the spam folder.

Tynan

Quote from: seanp on June 23, 2015, 04:45:51 PM
I tried it yesterday but never got any email.  I did check the spam folder.

Thanks for the info. I've made a couple changes, could you try again now?
Tynan Sylvester - @TynanSylvester - Tynan's Blog

gibbsman

I tried just now and got the email but the "Keys" area was blank, as mentioned before. Likely out of keys again. Otherwise looks good!

Tynan

Ok! I've heavily reworked the system. You can take the email, or you can enter your personal download link and the game will give you your Steam key right on the website.

andy I've switched it to prepared statements for greater safety, thanks!

All test data has been cleared, there are now 100 fake test keys in there. Please test it, I'd appreciate it!
Tynan Sylvester - @TynanSylvester - Tynan's Blog

starryknight64

Tried it and right away got a Steam Key in my gmail, no wait necessary!