- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Desktop DRM is totally different.
Admin
I don't know PHP, but I suspect that the URL is a text string. This function call's data is the PHP code, which offers full XSS.
Admin
It's whatever you want it to mean: Linux Apache MUMPS PostgreSQL
Yes, there is an open-source MUMPS, and it can't be any worse than using PHP.
"ludus" - very close to the Latvian word for thank you. odd.
Admin
Admin
Interesting...
Admin
As the original submitter of this story, I can tell you that the actual line of code was more along the lines of:
Obviously, that is NOT the actual base64 string that I found, but I swear it started with "QCRlbmFibGVkID0gdHJpbShmaWxlX2dldF9jb250ZW50cygiaHR0cDov" ;)
Addendum (2011-10-10 14:21): Whoops... obviously, I meant:
Admin
Admin
Argh. file_get_contents returns a string. The string returned would be appended to "$enabled =". The resulting string would be evaluated as code (i.e., interpreted and run by the scripting engine). If the string returned from the URL by way of file_get_contents() was "1" then, yes, boring. If the string returned was "1;\n do_something_bad()" then no, not boring.
Not sure I'd call this XSS; feels more analogous to SQL injection.
Admin
Who should decide whether a programmer is qualified?
(a) The customer, based on the quality of the software produced
(b) A college or trade school, based on his performance in programming classes
(c) The government, based on criteria invented by lawyers and politicians and enforced by bureaucrats
The correct answer is, of course, (c).
This is the logical corollary of the question just recently definitively answered in the U.S.:
Who is best qualified to decide what medical treatment you should receive?
(a) You
(b) Your doctor
(c) Your insurance company
(d) A bureaucrat in Washington
Once it was settled that (c) is not the right answer, it inevitably followed that the correct answer must be (d).
Admin
Come on, "fhqwhgads". (everybody to the limit)
Admin
To be precise, this would be for a killswitch not a backdoor. If I insert code that looks for a user and does_something_bad() if it finds that user, then I can remotely trigger the switch when I create that user. Solves the firewall problem.
On the other hand, if a bot adds 30000 user accounts with names like "Viagra" and "DesignerBagDiscount" to your drupal instance, I would say that's a painful back door attack. True story from my company.
Admin
Did it base64 decode the string at least?
Admin
Louisianna has a law requiring a license to be a florist:
http://www.usatoday.com/news/nation/2010-03-10-florists_N.htm
I'm sure this law was passed after a massive uprising by consumers whose friends and relatives were injured or killed by unqualified florists.
Imagine, in 49 states consumers have NO PROTECTION from incompetent, fly-by-night florists who put the flowers in the vase upside down or don't know the difference between a rose and a carnation. It must be terrifying to just walk the streets of such places.
Admin
Admin
My mother was killed in a floristry accident when an unlicensed florist mistook a rose for a carnation. This is not a joking matter. Please be more sensitive in the future.
Admin
Admin
Admin
Your mother should have "rose" to the occasion.
This is the internet. Everything is a joking matter.
Admin
Admin
But http://initrode-global.com/rg_initrode.txt isn't a website...
Admin
Ultimately you are the one who cares most about you. Everyone else is just pretending. Including the people who collect $49.99 per sucker per year for meaningless licenses.
Admin
As the original submitter of this story, I can tell you that the actual line of code was more along the lines of:
Obviously, that is NOT the actual base64 string that I found, but I swear it started with "QCRlbmFibGVkID0gdHJpbShmaWxlX2dldF9jb250ZW50cygiaHR0cDov" ;)
Admin
Whoopsie. Thanks for spotting that. I edited my original post and then reposted so Alex can easily make it featured.
Admin
Bob: That actually is a backdoor. In PHP, the assignment operator (=) both performs the assignment AND returns the content of the assignment.
So eval($s = '123') both sets $s to '123' and eval's the string "123" as php code.
So while eval(1) wouldn't really do anything, if he changed the contents of the file to "bad_php_code()", then that would execute too.
This construct is generally used in if statements. You can do something like this:
if ( ( $var = function_call() ) !== false ) { // do something with $var }
That will both set the $var and check to see that it wasn't false before using it.
Admin
I understand that, but when I try to put two expressions inside of eval() I get a syntax error.
Admin
“Boobie-trapped code“?!
Admin
captcha: duis What you need to duis go down the block to the florist. or Lawfirm of Huis, Luis, and Duis
Admin
Admin
Admin
Exactly! Are we the only ones that got that? I thought it was brilliant naming.
Forget the code review guys. That's not the point of this post!
Admin
Everybody to the limit! The Cheat is to the limit! Come on fhqwhgads!
Admin
You addded addendum to comment nobody read anyway.
Admin
Your head asplode
Admin
FTFY
Admin
CAPTCHA: letatio - for some reason, I pronounce this LAY-TAH-TEE-OH.
Admin
I have the same captcha. I pronounce it "fuh-lay-shee-oh".
Admin
Admin
You obviously are not married to a nurse. They rag on incompetent doctors all the time.
Admin
Admin
I think Nagesh needs to be deported. Clearly an H1-B slumdog.
Admin
Admin
Admin
Admin
Puppets and Socks....
Admin
Admin
Admin
LVL0.02
Admin
+1: Google "Don't Worry Kyoko" and you will see that yes indeed, there is worse than feedback.
Admin
"... and here's Cocktothorpe, he's writing a for loop ... but look! he's used a magic number. Tell me Bill, what's the philosophy on Magic Numbers now?"
"Well, Richard, the rules haven't changed since... Wait! Nagesh has just used a goto! He's coming close to completing the method, but that goto is surely going to count against him in the "Style" stakes. But as I was saying ..."
I think that could be a hit.
Admin