23
Hack Like a Pro with Burp Suite / pavanw3b

Hack like a pro with burp suite - nullhyd

Embed Size (px)

Citation preview

Page 1: Hack like a pro with burp suite - nullhyd

Hack Like a Pro with Burp Suite

/pavanw3

b

Page 2: Hack like a pro with burp suite - nullhyd

What do you learn?

I’m a boring geek Burp Suite is your best friend Some really cool tweaks

Page 3: Hack like a pro with burp suite - nullhyd

~$ whoamipavanw3b Yet another w3bAppSec guy break-fix-repeat Security Engineer @ ServiceNow

Page 4: Hack like a pro with burp suite - nullhyd

Who’s an expert here?

Page 5: Hack like a pro with burp suite - nullhyd

More than an interception proxy

Burp Suite

Page 6: Hack like a pro with burp suite - nullhyd

Start like a Pro$ java –jar –Xmx4G /path/burpsuite.jar

• Let burp use up to 4GB• Default can be as low as

128MB• But not more than 4GB

Page 7: Hack like a pro with burp suite - nullhyd

Better Proxy-ing

Global Just Firefox Moody?FoxyProxy

Page 8: Hack like a pro with burp suite - nullhyd

Focus on Target It’s your Desktop Set better Scope Compare Site maps Drop out-of-scope Options > Connections

Page 9: Hack like a pro with burp suite - nullhyd

Better Filter Target See In-scope items Hide not-found Demo

Page 10: Hack like a pro with burp suite - nullhyd

Playing around Proxy Play around Message Analytics

Can also contain XML, AMF & View State

Intercept Request Intercept Response HTTP history: Params & Filter Unhide hidden form fields

Page 11: Hack like a pro with burp suite - nullhyd

Exploiting with Intruder

Send lots of data & make sense of response Username Enumeration, Directory Fuzzing – XSS, SQLi, Path traversal Add payload: FuzzDB, WebAppURLs, OWASP DirBuster Demo: Save & Load attack Config

Page 12: Hack like a pro with burp suite - nullhyd

Stay calm & use Scanner

Passive Scanning Active Scanning Use wise! Crawl -> Scan Demo Don’t make too fast Be in-scope

Page 13: Hack like a pro with burp suite - nullhyd

Never miss anything - Repeater

Scratchpad Demo Change the way you want it Try OPTIONS

Page 14: Hack like a pro with burp suite - nullhyd

The good Spider Create lots of Pollution Form Submissions Do after manual Crawl Demo Some are only on Prod: robots.txt Careful - Delete all users Control threads

Page 15: Hack like a pro with burp suite - nullhyd

All about tokens - Sequencer

Test how random it is.. Session, CSRF, Password reset etc

Min 100 tokens required

Page 16: Hack like a pro with burp suite - nullhyd

Find the secret - Decode

No Key - No Security Encode != Security Demo Send to Decoder

Page 17: Hack like a pro with burp suite - nullhyd

Confused? Use Comparer

Compare responses Blind SQLi Compare by

Words Byte

Byte: Computationally costly Demo: Compare 2 responses

Page 18: Hack like a pro with burp suite - nullhyd

Engagement Tools

Search Find in Comments, Scripts, Ref Analyze Target Discover Content

Page 19: Hack like a pro with burp suite - nullhyd

Wanna add? Extender Jython, JRuby etc BApp Store

java.lang.OutOfMemoryError?

java -XX:MaxPermSize=1G -jar burpsuite.jar

Page 20: Hack like a pro with burp suite - nullhyd

Maintenance Save State

Save in-scope only Restore State

Don’t restore from untrusted sources Auto backup Schedule Task: Save State - Creates only 1file

Page 21: Hack like a pro with burp suite - nullhyd

Some more if you need

Right click & you got all Shortcuts: Options > Misc > Hotkeys

Page 23: Hack like a pro with burp suite - nullhyd

Am I really

boring?

Pavanhttp://pavanw3b.comfb/pavanw3b | @pavanw3b