Error 25113.Setup failed to generate the JRE SSL keys.

April 19th, 2012 | by | vmware

Apr
19

While working on an upgrade from vSphere 4.1u1 to vSphere5.0, I ran into the following error when I got to the upgrade manager portion of the upgrade.

Error 25113.Setup failed to generate the JRE SSL keys.

If you do any sort of googling for this, you’ll find people that suggest looking for openssl.exe and renaming it temporarily. I didn’t have openssl.exe so that wasn’t going to work. Another person gave the old windows “fix” of just reboot the box. Guess what, that didn’t work either.

In the end, the fix was pretty straight forward. Remove the old Update Manager install and do a fresh install of the update manager. Pretty painless and works like a champ.

 

Comments Closed

SQL exploits

April 11th, 2012 | by | security, sysadmin

Apr
11

You know its going to be a bad day when you get the following email:

Did someone hack our website? It looks like a Chinese news listing entry has been added with today’s date.

Ballsack!

Time to roll up the sleeves. How bad is the damage?

From the looks of it, other sites on the web server had not been damaged. Doing a search for modified files found nothing out of the ordinary had been changed. Log files sure but nothing out of the ordinary. A search through the web logs of the site showed that this appeared to be an attack on the Content Management System (CMS) for the site.

Whichever jackass wrote that code should be beaten! Get the torches and pitchforks, death to the programmer!! Oh wait, that was me. Death to the evil script kiddie that attacked my beautiful code!!!!!!!!!

Searching through the logs, I started seeing some interesting logs. A bunch of them that had variations such as this:

http://unigleeclub.com/news.phtml?id=-999.9%20UNION%20ALL%20SELECT%200x31303235343830303536,(SELECT%20concat(0x7e,0x27,Hex(cast(user.username%20as%20char)),0x27,0x7e)%20FROM%20`gleeclub`.user%20LIMIT%203,1)%20,0x31303235343830303536,0x31303235343830303536--

This one is actually after a lot of hits from the attacker of figuring out the tables and then getting down to the nitty gritty of pulling out a username and password.

The issue was that I had forgotten to sanitize my data. Like a jackass, I didn’t check that $id was an actual integer variable and when they ran thier script they were able to pull out a hex string that, with the use of such tools as this site, you can easily translate this into text.

The Quick Fix

I put in 2 fixes to ensure that we were dealing with an integer value here. First, I did some simple math to the variable that changes its type if it is not an integer.

$id = $id+0;

If you have a string, you’ll get back a zero. If you have an integer value, you’re good to go.

Also in the code, I expanded the if statement that was around the code to grab the specific news item. Instead of just checking to see if the $id variable was set, I now check to see if it is set and greater than zero, another layer in ensuring that we have a number instead of a string of text.

//Before:
if(isset($id) && $id != "")

//After:
if(isset($id) && $id != "" && $id > 0)

We’re all human and humans make mistakes. This code that was exploited was written 8 years ago at a time when I should have known better, but missed it. It lived in the wild up until last year when it was finally exploited. I’m lucky that it took that long for it to expose itself, but kind of embarrassed that it was there in the first place. While I tend to come down hard on people for not doing these sort of things, its only because I’ve learned my lesson the hard way and have seen people continually mess this stuff up. While this happened to me a while ago, I’ve had friends get bit by this very recently so I figured it was time to finish off this post and get it out the door. An ounce of prevention sort of thing.

To lear more about SQL Inject attacks, here is a good article by Bhanu Mahesh on Quality Software Connection on how to prevent them.

 

Comments Closed

Keeping Myself Honest…

April 1st, 2012 | by | in the news

Apr
01

In order to make sure I keep track on all my goals, I’m going to check in every quarter and see where I’m at. So seeing as it is the first day of April, time for the 1st quarter review.

Goal #1: Sleep More! With the help of mercuryapp.com, I’ve been able to track my sleep time and so far for 3 months I’m averaging 6.86 hours of sleep a night. I’m shooting for 7+ so I’m not too far off.

Goal #2: Time for family – Check and check. Work hasn’t gotten in the way too much so that’s all good there.

Goal #3: Ship Code. Have a small idea that I’m working on. Need to find the time. Hopefully this summer.

Goal #4: 5×5. One down, 3 more on my radar. Need one in the fallish timeframe which I think I have 1 or 2 that I’m looking at. I’ve been putting the miles on as I have logged over 70+ miles so far this year.

Goal #5: Top Secret. Still top secret.

 

Comments Closed

App Boom

March 11th, 2012 | by | in the news, iphone app reviews, rants

Mar
11

We’re doomed to repeat history. Wait…what? Isn’t that the point of history to study it so we DON’T make the same boneheaded mistakes. Yes, that’s exactly why you read history books.

Yet, we are in another round of the IT glory days. Read TechCrunch for 5 minutes and you’ll just be shaking your head. What was the .com boom of the late 90s has become the new app explosion of today. Money is flying at companies that have a cool new app with a bunch of users but NO REVENUE!!!

The latest example is an app that I really like. Its being reported that Instagram is raising 40 million dollars with a 500M company valuation. While its great that they can keep the lights on and servers running, but how are they going to make money? Maybe giving away the app wasn’t your best plan. I would have paid $0.99 for the full version with maybe a free version with only a few filters. 27 millions users you say, It would have been rough having 18.9 million (27M * 70% after Apple’s cut) coming in the door if you charged for the app.

I’ve bitched before about FlipBoard doing some of the same shit.

Ladies and Gentlemen…if you want to run a successful company, you need to have money coming in the door. And I’m not talking about VC money. It may help you out in the short term, but guess what, those VC guys and gals expect to get paid at some point. Stop bullshitting us with the “oh we’ll figure out a way to make money in the future, we have X million users now”. If you haven’t figured it out by now, you’re not going to asshole. And the VC that invest in you deserve every bit of loss that they get. Just don’t got public with it, screw up my 401K, and the rest of the stock market in the process.

Comments Closed