KEMBAR78
Automated API pentesting using fuzzapi | PPTX
Automating API Pen Testing
using Fuzzapi
just another tool?
About us
Abhijeth Dugginapeddi
@abhijeth
Application Security
Likes training, spreading awareness
Got some bugs in Google/FB/Yahoo/Microsoft etc
Among top 5 bug hunters on Synack
Srinivas Rao Kotipalli
@srini0x00
Security Engineer
Author, Speaker, Trainer
Blogs at androidpentesting.com
Author of “Hacking Android”
Lalith Rallabhandi
@lalithr95
Developer Intern
Blogger, Coder, Security Enthusiast
Does bounties when free and found bugs
With Microsoft/Google/FB/Badoo etc
Only @abhijeth @srini0x00 and @lalithr95 are
responsible for whatever is on the slides
Nobody else is responsible for anything else we
say
Next 45 minutes
-Why
-What
-How
Source giphy
Source
http://vignette2.wikia.nocookie.net/garfield/images/4/43/Garfield_the_Cat.png/revision/latest?cb=2015050
8141623
Source reddit
On a serious note
• What is fuzzAPI
• How to use fuzzAPI
• Need for automating Pen Testing APIs
• Developer vs Pen tester use cases
• Continuous Integration
• Spread the smile ☺
#fuzzAPI
• Open Source REST API Fuzzer
• Test for vulnerabilities while writing your code
• Helps Pen testers to fasten their testing
• Covers most top attacks on APIs
• Built in Ruby on Rails
Rest API Penetration Testing
Authorization Authentication
Input validations Others ☺
Common
checks
#welovebugs
This is Twitter
Source: @wesecureapp
Source: @wesecureappSource: @wesecureapp
Facebook ☺
Credits: www.pranavhivarekar.in
Interesting?
Can you automate such attacks?
May be!!
But why do you want to automate?
People don’t have time
Source: giphy
• There are companies/teams who deploy code
to production >10 times every day
• Developers can do basic testing
• Penetration testers can save a lot of time
• Penetration testers can work on logical stuff
• Easier to fix vulnerabilities sooner than later
Continuous Integration
Source memegenerator
No
But a part of it can be automated.
Cool stuff about Fuzzapi
Access Control Violation
XXE
Other regular vulns like
XSS/SQLi.. etc
Privilege Escalation
Rate limiting
Not so cool stuff!!
Demo
Source memegenerator
#if demo doesn’t work
#if demo doesn’t work
#if demo doesn’t work
How stuff works
API_Fuzzer – Ruby gem Fuzzapi -- Rails application
#fuzzapi API_fuzzer gem
Code walk through
Fuzzapi approach for XXE
• XxeCheck performs a call with
payload to internal server
• If status: OK – fuzzapi
confirms XXE
Fuzzapi sample approach for Privilege Escalation
Fuzzapi sample approach for Rate limiting
• Fuzzapi sends multiple sample requests and waits for timeout/error
• Failure in limiting requests allows to perform this check
Docker :D :D m/
Continuous integration --Rails !!!
• Identify test requests
• Use API_Fuzzer module with
test request
• Run scans
Developer’s eye Security Engineer’s eye
Work with developers to
help them configure stuff
Add more checks ☺
Use it while doing security
testing
Train developers to
understand/fix vulns
Having scrum meetings about
findings/fixes
Customizing fuzzapi according
to organization’s requirement
Add more checks ☺
Testing APIs while writing
code
Roadmap for fuzzapi/us
Add more checks
Write more blogs
Make more tutorial videos
Write more tools
Repeat
Oh yea btw :D Don’t you want links to download?
API_Fuzzer gem: https://github.com/lalithr95/API-fuzzer
fuzzapi: https://github.com/lalithr95/Fuzzapi
For queries/concerns/feedback/rant:
Twitter:
@abhijeth
@lalithr95
@srini0x00
It’s 2016 and if you still don’t know about bug
bounties/responsible disclosures, you should say hi to these guys
@Bugcrowd @synack @Hacker0x01
Thanks ☺
and all the security folks for contributing to the open source community 

Automated API pentesting using fuzzapi

Editor's Notes

  • #24 https://intland.com/wp-content/uploads/2014/09/blog-140923-dependencies-336x336.png