Archive for June, 2008

June CapSec, DC Design Babes, and CharmSec

Sunday, June 22nd, 2008

This week is fairly well booked on the social calendar

Wednesday is the June CapSec — Come join us at Stetson’s for beer, wings, and blather.

You can RSVP here, on the CapSec blog, or on Upcoming

Thursday is CharmSec 4 if you are up Baltimore way — check out their web page for details.

If you are closer to DC, a new organization called DC Design Babes is having an inaugural happy hour in DC

Hope to see some of you at some of these events!

recent SQL injections — a closer look

Wednesday, June 18th, 2008

I got a first hand taste of some of the new “mass infection” SQL injectors that have been running around since April of this year, when I was asked to do an incident response for a friend of mine today. The funny thing is that the injector tool is seeding links to hostile code at a web site that has been taken down a long time ago — more of the automated zombies on the internet continuing to spew long after their venom has been removed.

The really interesting part about this beastie is the “trick” used to encode the SQL query here. There is a T-SQL function (at least in MS SQL, can’t speak to the others out there) called CAST — and it is specifically used to convert a wide variety of characters into long integers or hex. This is a good argument for never trying to black list, as the entirety of the query is hidden from anything that might be looking for “<script>” or the like.

The quick fix here is parameterized queries, or not letting the semicolon through — this exploit only works on sites that do dynamic SQL, and does the traditional trick of appending additional commands at the end of the legitimate SQL. However, if you do have dynamic SQL, and you are not blocking very tightly on your input validation, this puppy is going to slide right on through. I believe the site in question may have actually allowed for appended queries, though I am not sure, as the developers said they had an input validation filter appropriate to the application in place (I didn’t get to see enough of it to confirm it was working right though).

Johannes Ullrich of SANS explains it far better than I ever could in a recent ISC post here. But if you want to read on of my own bumblings:

(more…)

June Refresh DC

Wednesday, June 18th, 2008

This month’s Refresh is tomorrow evening! I’m not the biggest RFD fan, but I’m thinking it could be an awesome venue for this type of event, so I’m excited to see how things work with Refresh in their new digs.

This month’s talk is of interest to me (and possibly many others), it talks about trying to use flash while adhering to web standards (since flash flies in the face of many accessibility rules). Come by for the talk, or just to hang out!

Refresh DC June
Thursday, June 19th 7:00 PM – ?

RFD (Regional Food & Drink)
810 7th St. NW
Washington, DC 20001

OWASP DC Meeting 6/11/08 @ 1830

Sunday, June 8th, 2008

There will be an OWASP DC chapter meeting this wendsday 6/11/08 at Aspect Security’s office (9175 Guilford Rd, Ste 300, Columbia, MD 21046).  The meeting will start at 1830.  If you are late to the meeting and can not get in the door please call 301-604-4882, or hack the door. The meeting will focus on HTTP Verb Tampering and authentication bypass.

For those of you who do not know, Doug and I along with Rex Booth of Grant Thorton have taken on the OWASP DC chapter lead positions.  We have some new ideas about how to move the chapter forward and are looking forward to revitalizing the OWASP DC chapter.  If your interested please join the DC Chapter mailing list or visit the DC Chapter Wiki Page.

Mark is speaking at DEFCON 16

Monday, June 2nd, 2008

For anyone interested I will be speaking at the upcoming DEFCON 16 August 8-10, 2008 @ the Riviera Hotel in Vegas. My talk will be on a SCADA security tool that I wrote to scan MODBUS TCP based SCADA/ICS networks called ModScan. It’s written in Python and I will release it here once I have presented at DEFCON. Abstract after the jump.

(more…)