Battle Blog Version 1.50 / A Classic ASP Blogging Solution.


Battle Blog Logo

Home
Download
Contact
Listing of Battle Blogs
Office Battle Blog
Administration

RSS Icon

Top User Comments

Minion (0)
Dave (0)
David Pinero (0)
lida diadiahua (0)
hermes (0)

Latest User Comments

hermes (0)
Christian Shoes (0)
hermes (0)
Christian Shoes (0)
edhardy (0)

Top Comment Activity

What Doesn't Kill You..... (39)
Important Fixes to Address Battle Blog Vulnerabilities (26)
Battle Blog 1.30 Available for Download (15)
Battle Blog 1.50 Now Available (10)
Update on Battle Blog (9)

Top Focused Entries

What Doesn't Kill You..... (7495)
Battle Blog 1.30 Available for Download (3428)
A Quick Word from Your Battle Blog Developer (2049)
Important Fixes to Address Battle Blog Vulnerabilities (1428)
MS SQL Install Script Updated in Latest Build (1112)

Top Scored Entries

What Doesn't Kill You..... (0)
Battle Blog 1.30 Available for Download (0)
A Quick Word from Your Battle Blog Developer (0)
MS SQL Install Script Updated in Latest Build (0)
I Hear You Knockin' But You Can't Get In. (0)

Latest Entries

Battle Blog 1.50 Now Available
Rich Text Editor Removed
Update on Battle Blog
Important Fixes to Address Battle Blog Vulnerabilities
I Hear You Knockin' But You Can't Get In.


 


Wednesday 6/4/08 (786 days ago)

What Doesn't Kill You.....

Posted by tdave365 under Security Reflection Bugs at 4:41:12 AM
Score: 0 | Comments (39) | Make Comment | Demote (0) | Promote (0) | Focused: 7495 | Permalink | Digg It

Well, turns out there was a fairly simple SQL injection hack that enabled anyone from the public to manipulate the Battle Blog database. The folks who discovered this posted detailed information about the exploit. I wish they hadn't zapped all of Battle Blog's previous entries and comments to prove their point, but, I'm happier to have the information. So, uh, thanks?

The fix in the short-term is to simply test whether or not any value passed in the entry querystring is in fact numeric only. This should result in anything else, like an UPDATE command to your Battle Blog table, throwing an error or doing whatever else you decide should be done. In current Battle Blog code, you can add the following line for a quick fix at line 82 in comment.asp and article.asp:

82> if IsNumeric(CurrentEntry)=False then CurrentEntry=""

Then there is the more efficient fix (e-mailed to me by a Battle Blog user that has forked his own):

In comment.asp and article.asp, find the line that reads:

CurrentEntry = request.querystring("Entry")

and change it to:

CurrentEntry = cint(request.querystring("Entry"))

For either quick fix, these just throw an error whenever the hack is attempted.

I'll be reviewing the code base for more potential SQL vulnerabilities, but these seem to be the only ones manipulatable by the public. While I'm doing this I am suspending the availability of Battle Blog until I've posted the fixed version that does something more eloquent.

If the hackers in question have any other information about how to prevent this, I'm all ears. Just keep it in a comment - not practice. I know that's probably not as fun, but consider yourselves already scored here, eh?

Leave Comment (39)   




Home


Powered by Battle Blog