30
UA-Tester ... or why Web-Application Penetration Testers are only getting half the story Saturday, September 25, 2010

UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

UA-Tester... or why Web-Application Penetration Testers

are only getting half the story

Saturday, September 25, 2010

Page 2: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

UA-Tester... or why Web-Application Penetration Testers

are only getting half the story

... or time to PIMP your tool!

Saturday, September 25, 2010

Page 3: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

... and you are?

• Chris John Riley (@ChrisJohnRiley)

• Penetration Tester

• Blogger

• http://blog.c22.cc

• Podcaster

• Eurotrash Security podcast

Saturday, September 25, 2010

Page 4: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

UA-Tester... Fo’ Shizzle!

Saturday, September 25, 2010

Page 5: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

What the $%*& is a UA?... and why do we care!

UA == User-Agent

example:

Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10

Wget/1.8.1

Saturday, September 25, 2010

Page 6: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Web-Sites don’t always respond in the same way!

What the $%*& is a UA?... and why does that affect us!

Saturday, September 25, 2010

Page 7: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

So what are these penetration testers testing then?

What the $%*& is a UA?... right, so what!

Std. Desktop BrowserHTTP/1.0 200 OKServer: hiStatus: 200 OKContent-Type: text/html; charset=utf-8Pragma: no-cacheX-Revision: DEVCache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0X-XSS-Protection: 1; mode=blockX-Frame-Options: SAMEORIGINVary: Accept-EncodingConnection: closeContent-Length: 44534

Saturday, September 25, 2010

Page 8: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

So what are these penetration testers missing then?

What the $%*& is a UA?... right, so what!

Nokia SymbianHTTP/1.1 200 OKServer: hiStatus: 200 OKContent-Language: enContent-Type: text/html; charset=utf-8Pragma: no-cacheCache-Control: no-cache, no-store, max-age=0, must-revalidateVary: Accept-EncodingConnection: closeContent-Length: 7508

Saturday, September 25, 2010

Page 9: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Nokia Symbian UAHTTP/1.1 200 OKServer: hiStatus: 200 OKContent-Language: enContent-Type: text/html; charset=utf-8Pragma: no-cacheCache-Control: no-cache, no-store, max-age=0, must-revalidateVary: Accept-EncodingConnection: closeContent-Length: 7508

Std. Desktop BrowserHTTP/1.0 200 OKServer: hiStatus: 200 OKContent-Type: text/html; charset=utf-8Pragma: no-cacheX-Revision: DEVCache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0X-XSS-Protection: 1; mode=blockX-Frame-Options: SAMEORIGINVary: Accept-EncodingConnection: closeContent-Length: 44534

Saturday, September 25, 2010

Page 10: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Nokia Symbian UAHTTP/1.1 200 OKServer: hiStatus: 200 OKContent-Language: enContent-Type: text/html; charset=utf-8Pragma: no-cacheCache-Control: no-cache, no-store, max-age=0, must-revalidateVary: Accept-EncodingConnection: closeContent-Length: 7508

Std. Desktop BrowserHTTP/1.0 200 OKServer: hiStatus: 200 OKContent-Type: text/html; charset=utf-8Pragma: no-cacheX-Revision: DEVCache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0X-XSS-Protection: 1; mode=blockX-Frame-Options: SAMEORIGINVary: Accept-EncodingConnection: closeContent-Length: 44534

Saturday, September 25, 2010

Page 11: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

UA-Tester

• Python script to test common UA Strings• Firefox, IE, Opera, iPad/iPhone, Symbian, Googlebot• ...and some not so common ones• PS3• Apache traceback• HTTrack• .NASL

• Output differences in response• Lets penetration testers know where to focus

So what’s a UA-Tester?... and why are we still listening to this guy!

Saturday, September 25, 2010

Page 12: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Pimping your pentesters!

Saturday, September 25, 2010

Page 13: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

I want stats... some numbers I made up earlier

Saturday, September 25, 2010

Page 14: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

-25%

85%

50%

I want stats... some numbers I made up earlier

Saturday, September 25, 2010

Page 15: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

-25%

85%

50%

PenTester

I want stats... some numbers I made up earlier

Saturday, September 25, 2010

Page 16: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

-25%

85%

50%

PenTester

PenTesterPimped

I want stats... some numbers I made up earlier

Saturday, September 25, 2010

Page 17: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

-25%

85%

50%

PenTester

PenTesterPimped

Ligatt

I want stats... some numbers I made up earlier

Saturday, September 25, 2010

Page 18: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

UA-Tester

• Takes the challenge out of seeing the differences• Lets you test what you want and when you want#• It’s free... so stop complaining• Beer optional!

Ok, so what I’m tired!... and why is this guy wearing a purple pimp suit!

Saturday, September 25, 2010

Page 19: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Test String: python ./UAtester_0.98.py -u https://twitter.com -v -s "Nokia7650/1.0 Symbian-QP/6.1 Nokia/2.1"

Ok, so what I’m tired!... and why is this guy wearing a purple pimp suit!

Saturday, September 25, 2010

Page 20: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 21: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Ok, so what I’m tired!... and why is this guy wearing a purple pimp suit!

Checks URL/Site for stability - 3 checks, 2 second delay(i.e. the same response headers are returned)

Saturday, September 25, 2010

Page 22: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Ok, so what I’m tired!... and why is this guy wearing a purple pimp suit!

Checks URL/Site for stability - 3 checks, 2 second delay(i.e. the same response headers are returned)

Saturday, September 25, 2010

Page 23: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 24: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 25: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 26: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 27: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 28: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Saturday, September 25, 2010

Page 29: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Where to get it http://blog.c22.cc/toolsscripts/

Saturday, September 25, 2010

Page 30: UA-Tester - WordPress.com · UA-Tester • Takes the challenge out of seeing the differences • Lets you test what you want and when you want# • It’s free... so stop complaining

Where to get it http://blog.c22.cc/toolsscripts/

QUESTIONS?

COMMENTS?

DEATH THREATS?

Saturday, September 25, 2010