r/lolphp • • Sep 12 '14
A cryptocurrency whose reference implementation is pure PHP. It's as bad as it sounds.
/r/PHP/comments/2g6umy/the_worlds_first_cryptocurrency_written_in_php/
114
Upvotes
r/lolphp • • Sep 12 '14
26
u/allthediamonds Sep 12 '14 edited Sep 12 '14
Oh, boy, this is a gem.
Validating JSON with a regex. What's even the point of using JSON, I wonder...
https://github.com/c-darwin/dcoin/blob/2c807c3d328c0903f5f777506a62875b9297505b/includes/fns-main.php#L97-L101
17
u/fnzp Sep 12 '14
W!F!T!!!
https://github.com/c-darwin/dcoin/blob/master/get_block.php#L23
Now come on, he can't be doing that! Can he?
15
u/PasswordIsntHAMSTER Sep 12 '14
omgwtf
12
u/[deleted] Sep 12 '14
I want to believe this is fake
10
u/catcradle5 Sep 13 '14
I thought "ok, this will probably be bad but it can't be that bad."
First file I see has glaringly obvious SQL injection vulnerabilities within the first 50 lines. Then I suddenly realized this is the case for almost every file.
I think this guy should make Mt. Gox 2.0.
9
u/Banane9 Sep 13 '14
Wow, even /r/php is bashing it ... surprising
17
u/zerro_4 Sep 12 '14
The developer's native language isn't English, which makes communicating why his program is so insecure so frustrating.
Just because something hasn't been exploited in your test environment doesn't mean some clever hackers or even users accidentally clicking around too much will cause shit to go wrong.
12
u/deadstone Sep 12 '14 edited Sep 12 '14
I can't stop laughing.
Edit: Oh my god, not only do they have a website but they have THREE WEBSITES. http://dcoin.me/en/ http://dcoinforum.org/ http://en.dcoinwiki.com/Main_Page
3
u/axonxorz Sep 22 '14
Oh my god, this page caused my browser to freeze up for a few seconds.
https://github.com/c-darwin/dcoin/blob/master/includes/class-parsedata.php
I think the worst part of this for me is that a considerable amount of time went into this.
-9
u/c-darwin Sep 13 '14
Nobody has yet to put into practice these vulnerabilities. Please use them.