SlideShare a Scribd company logo
2
Most read
12
Most read
14
Most read
PENTESTING REST
API
null Bangalore Meet
Introduction
■ Nutan Kumar Panda
■ Aka @TheOsintGuy
■ Senior Information Security Engineer
■ Osint Enthusiast
■ Presenter at BH US/ BIU Israel/ GroundZero Summit/ CISO Summit etc
■ Co-Author of book “HackingWeb Intelligence ”
■ Contributor of DataSploit project
■ Active Contributor of null BangaloreChapter
What can you expect?
■ BasicTheory
■ My personal Experience
■ Approach
■ Tools to trade
■ Test beds
■ One Example to think out of the box
■ Some Common Findings
■ Hands on Demos
Web Services
■ SOAP
■ Components
– ServiceConsumer
– Service Provider
– XML (Extensible Markup Language)
– SOAP (SimpleObject Access Protocol)
– WSDL (Web Services Description Language)
– UDDI (Universal Description, Discovery and
Integration)
■ http://resources.infosecinstitute.com/web-services-
penetration-testing-part-1/
■ ReST
■ Components
– Resources (example.com/users/1)
– Verbs (CRUD/ POGPUD)
– MediaType (Application/Json)
– Status Codes (200,201,404 etc)
– Authentication (Oauth)
– http://www.slideshare.net/null0x00/o-auth-
tokens
■ http://www.slideshare.net/null0x00/pentesting-
restful-webservices-v10
http://www.slideshare.net/PraveenKumarKOSCP/introduction-to-web-services-penetration-
testing (page 3)
How I Started?
https://www.owasp.org/index.php/REST_Security_Cheat_Sheet
Approach
■ Do not jump to testing by getting an end point or set of end points
■ Ask for the documentation
■ Ask for the sample request response/ Postman collection
■ Ask for any particular header needed
■ Ask for token or any specific parameter or values for a parameter (to get in right flow)
■ Ask for the workflows (Sometime workflows are bound you can not direct jump to a
web services and test you need some data that u get from other end points)
■ Its not only about fuzzing parameters
Tools to trade
■ ReST Client (Plug in)
■ Postman (App and Plugin)
■ Burp (ZAP/ Charles/ IronWASP or any other interception proxy)
■ Hurl.it (Online rest client)
■ SoapUI (https://www.youtube.com/watch?v=XV7WW0bDy9c)
■ Fuzzapi (https://github.com/lalithr95/Fuzzapi) Just presented just day before at AppSec
USA by Abhijeet n Lalith
– http://www.slideshare.net/AbhijethDugginapeddi/automated-api-pentesting-using-
fuzzapi
– If you like this tool just spread the word with #fuzzapi
Test Beds
■ Hackazon
– Code: https://github.com/rapid7/hackazon
– WebVersion: http://hackazon.webscantest.com/
– There is an apk also: https://github.com/rapid7/hackazon/tree/master/web/app.apk
– YoutubeVideo: https://www.youtube.com/watch?v=Yekzm0Olc3Y (Demo starts 24:00)
■ Mutillidae
– Code: https://sourceforge.net/projects/mutillidae/
– Video: https://www.youtube.com/watch?v=e6HAQnvuaic
■ DVWS
– Code : https://github.com/snoopythesecuritydog/dvws
– Tutorial: https://kali.tools/?p=1729
Example
POST example.com/users/view/253
{
“user”:”adam”,
“role”:”tester”
}
Common Finding
■ Enumeration
■ Rate limiting not implemented
■ Information Disclosure
■ POST to GET conversion (Method Conversion)
■ IDOR
■ SQLI
■ Authorization Flaws
■ Token related issues (Expiry, reuse, predictable etc)
Demo
Questions
References
■ https://www.soapui.org/testing-dojo/world-of-api-testing/soap-vs--rest-
challenges.html
■ http://cybersecology.com/hackazon-review/
■ http://cybersecology.com/2014/11/googles-firing-range-test-site/
■ http://www.slideshare.net/SmartBear_Software/getting-started-with-api-security-
testing
■ http://www.slideshare.net/ask4answers/rest-api-testing-with-specflow
■ http://www.slideshare.net/stormpath/rest-api-security
■ http://www.slideshare.net/taiseerjoudeh/http-services-security
Thanks

More Related Content

PDF
Api security-testing
PPT
Introduction to Web Application Penetration Testing
PDF
Pentesting Rest API's by :- Gaurang Bhatnagar
PDF
OWASP API Security Top 10 - API World
PDF
Bug Bounty Hunter Methodology - Nullcon 2016
PPTX
Getting Started with API Security Testing
PPTX
PPTX
SSRF For Bug Bounties
Api security-testing
Introduction to Web Application Penetration Testing
Pentesting Rest API's by :- Gaurang Bhatnagar
OWASP API Security Top 10 - API World
Bug Bounty Hunter Methodology - Nullcon 2016
Getting Started with API Security Testing
SSRF For Bug Bounties

What's hot (20)

PPTX
Attacking thru HTTP Host header
PPTX
I hunt sys admins 2.0
PPTX
Rest API Security
PPS
Security testing
PPTX
Command injection
PDF
Red Team Methodology - A Naked Look
PPTX
Waf bypassing Techniques
PDF
Ekoparty 2017 - The Bug Hunter's Methodology
PPTX
SSRF exploit the trust relationship
PDF
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
PDF
SSRF workshop
PPTX
Directory Traversal & File Inclusion Attacks
PPTX
Bug Bounty 101
PDF
OWASP Top 10 Web Application Vulnerabilities
PDF
Building Advanced XSS Vectors
PDF
Web Application Penetration Testing
PDF
OWASP API Security Top 10 Examples
PDF
HTTP Request Smuggling via higher HTTP versions
PPTX
Sql injections - with example
Attacking thru HTTP Host header
I hunt sys admins 2.0
Rest API Security
Security testing
Command injection
Red Team Methodology - A Naked Look
Waf bypassing Techniques
Ekoparty 2017 - The Bug Hunter's Methodology
SSRF exploit the trust relationship
The Secret Life of a Bug Bounty Hunter – Frans Rosén @ Security Fest 2016
SSRF workshop
Directory Traversal & File Inclusion Attacks
Bug Bounty 101
OWASP Top 10 Web Application Vulnerabilities
Building Advanced XSS Vectors
Web Application Penetration Testing
OWASP API Security Top 10 Examples
HTTP Request Smuggling via higher HTTP versions
Sql injections - with example
Ad

Viewers also liked (20)

PPTX
Automated API pentesting using fuzzapi
PDF
Pentesting RESTful WebServices v1.0
PDF
Pentesting RESTful webservices
PDF
Securty Testing For RESTful Applications
PDF
API Testing
PPTX
REST API testing with SpecFlow
PPTX
HTTP Services & REST API Security
PPTX
PPTX
Api testing
PDF
Api testing
PDF
4 Major Advantages of API Testing
PPTX
JSON SQL Injection and the Lessons Learned
PPTX
Getting started with CFEngine - Webinar
PPT
WCF And ASMX Web Services
PDF
Attack chaining for web exploitation #c0c0n2015
PDF
API TEST
PDF
API TEST
PPTX
Automated API pentesting using fuzzapi
Pentesting RESTful WebServices v1.0
Pentesting RESTful webservices
Securty Testing For RESTful Applications
API Testing
REST API testing with SpecFlow
HTTP Services & REST API Security
Api testing
Api testing
4 Major Advantages of API Testing
JSON SQL Injection and the Lessons Learned
Getting started with CFEngine - Webinar
WCF And ASMX Web Services
Attack chaining for web exploitation #c0c0n2015
API TEST
API TEST
Ad

Similar to Pentesting ReST API (20)

PPTX
Scraping the web with Laravel, Dusk, Docker, and PHP
PPTX
Основы нагрузочного тестирования с инструментом Jmeter
PDF
Silent web app testing by example - BerlinSides 2011
PDF
Node.js Course 2 of 2 - Advanced techniques
ODP
Mobile+API
PDF
Using the new WordPress REST API
PDF
Public PaaS Throwdown!
PDF
Client-Side Performance Testing
PPTX
OWASP Zed Attack Proxy
PPTX
SOA Testing
PDF
Microsoft power point automation-opensourcetestingtools_matrix-1
PDF
Microsoft power point automation-opensourcetestingtools_matrix-1
PPTX
Introduction to Penetration Testing
ODP
Owasp owtf the offensive (web) testing framework + ptes penetration testing e...
PDF
Security in CI/CD Pipelines: Tips for DevOps Engineers
PPTX
10 Useful Testing Tools for Open Source Projects @ TuxCon 2015
PDF
Modern Tools for API Testing, Debugging and Monitoring
PDF
Expressive Microservice Framework Blastoff
PDF
Developing Brilliant and Powerful APIs in Ruby & Python
PDF
Great APIs - Future of Your Progress App
Scraping the web with Laravel, Dusk, Docker, and PHP
Основы нагрузочного тестирования с инструментом Jmeter
Silent web app testing by example - BerlinSides 2011
Node.js Course 2 of 2 - Advanced techniques
Mobile+API
Using the new WordPress REST API
Public PaaS Throwdown!
Client-Side Performance Testing
OWASP Zed Attack Proxy
SOA Testing
Microsoft power point automation-opensourcetestingtools_matrix-1
Microsoft power point automation-opensourcetestingtools_matrix-1
Introduction to Penetration Testing
Owasp owtf the offensive (web) testing framework + ptes penetration testing e...
Security in CI/CD Pipelines: Tips for DevOps Engineers
10 Useful Testing Tools for Open Source Projects @ TuxCon 2015
Modern Tools for API Testing, Debugging and Monitoring
Expressive Microservice Framework Blastoff
Developing Brilliant and Powerful APIs in Ruby & Python
Great APIs - Future of Your Progress App

More from Nutan Kumar Panda (15)

PPTX
Dark Arts Of Social Engineering
PPTX
OSINT Black Magic: Listen who whispers your name in the dark!!!
PPTX
Rapid Android Application Security Testing
PDF
Win 8 password cracking
DOCX
Backtrack Manual Part10
DOCX
Backtrack Manual Part9
DOCX
Backtrack Manual Part8
DOCX
Backtrack Manual Part7
DOCX
Backtrack Manual Part6
DOCX
Backtrack Manual Part5
DOCX
Backtrack Manual Part4
DOCX
Backtrack Manual Part3
DOCX
Backtrack Manual Part2
DOCX
Backtrack manual Part1
DOCX
Google Hack
Dark Arts Of Social Engineering
OSINT Black Magic: Listen who whispers your name in the dark!!!
Rapid Android Application Security Testing
Win 8 password cracking
Backtrack Manual Part10
Backtrack Manual Part9
Backtrack Manual Part8
Backtrack Manual Part7
Backtrack Manual Part6
Backtrack Manual Part5
Backtrack Manual Part4
Backtrack Manual Part3
Backtrack Manual Part2
Backtrack manual Part1
Google Hack

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Unlocking AI with Model Context Protocol (MCP)
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Modernizing your data center with Dell and AMD
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
Empathic Computing: Creating Shared Understanding
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The Rise and Fall of 3GPP – Time for a Sabbatical?

Pentesting ReST API

  • 2. Introduction ■ Nutan Kumar Panda ■ Aka @TheOsintGuy ■ Senior Information Security Engineer ■ Osint Enthusiast ■ Presenter at BH US/ BIU Israel/ GroundZero Summit/ CISO Summit etc ■ Co-Author of book “HackingWeb Intelligence ” ■ Contributor of DataSploit project ■ Active Contributor of null BangaloreChapter
  • 3. What can you expect? ■ BasicTheory ■ My personal Experience ■ Approach ■ Tools to trade ■ Test beds ■ One Example to think out of the box ■ Some Common Findings ■ Hands on Demos
  • 4. Web Services ■ SOAP ■ Components – ServiceConsumer – Service Provider – XML (Extensible Markup Language) – SOAP (SimpleObject Access Protocol) – WSDL (Web Services Description Language) – UDDI (Universal Description, Discovery and Integration) ■ http://resources.infosecinstitute.com/web-services- penetration-testing-part-1/ ■ ReST ■ Components – Resources (example.com/users/1) – Verbs (CRUD/ POGPUD) – MediaType (Application/Json) – Status Codes (200,201,404 etc) – Authentication (Oauth) – http://www.slideshare.net/null0x00/o-auth- tokens ■ http://www.slideshare.net/null0x00/pentesting- restful-webservices-v10 http://www.slideshare.net/PraveenKumarKOSCP/introduction-to-web-services-penetration- testing (page 3)
  • 6. Approach ■ Do not jump to testing by getting an end point or set of end points ■ Ask for the documentation ■ Ask for the sample request response/ Postman collection ■ Ask for any particular header needed ■ Ask for token or any specific parameter or values for a parameter (to get in right flow) ■ Ask for the workflows (Sometime workflows are bound you can not direct jump to a web services and test you need some data that u get from other end points) ■ Its not only about fuzzing parameters
  • 7. Tools to trade ■ ReST Client (Plug in) ■ Postman (App and Plugin) ■ Burp (ZAP/ Charles/ IronWASP or any other interception proxy) ■ Hurl.it (Online rest client) ■ SoapUI (https://www.youtube.com/watch?v=XV7WW0bDy9c) ■ Fuzzapi (https://github.com/lalithr95/Fuzzapi) Just presented just day before at AppSec USA by Abhijeet n Lalith – http://www.slideshare.net/AbhijethDugginapeddi/automated-api-pentesting-using- fuzzapi – If you like this tool just spread the word with #fuzzapi
  • 8. Test Beds ■ Hackazon – Code: https://github.com/rapid7/hackazon – WebVersion: http://hackazon.webscantest.com/ – There is an apk also: https://github.com/rapid7/hackazon/tree/master/web/app.apk – YoutubeVideo: https://www.youtube.com/watch?v=Yekzm0Olc3Y (Demo starts 24:00) ■ Mutillidae – Code: https://sourceforge.net/projects/mutillidae/ – Video: https://www.youtube.com/watch?v=e6HAQnvuaic ■ DVWS – Code : https://github.com/snoopythesecuritydog/dvws – Tutorial: https://kali.tools/?p=1729
  • 10. Common Finding ■ Enumeration ■ Rate limiting not implemented ■ Information Disclosure ■ POST to GET conversion (Method Conversion) ■ IDOR ■ SQLI ■ Authorization Flaws ■ Token related issues (Expiry, reuse, predictable etc)
  • 11. Demo
  • 13. References ■ https://www.soapui.org/testing-dojo/world-of-api-testing/soap-vs--rest- challenges.html ■ http://cybersecology.com/hackazon-review/ ■ http://cybersecology.com/2014/11/googles-firing-range-test-site/ ■ http://www.slideshare.net/SmartBear_Software/getting-started-with-api-security- testing ■ http://www.slideshare.net/ask4answers/rest-api-testing-with-specflow ■ http://www.slideshare.net/stormpath/rest-api-security ■ http://www.slideshare.net/taiseerjoudeh/http-services-security