API Test
API Security Tip
(1) How to find high impact vulnerabilities in the API?
Search for hidden endpoints which are implemented on the API but are not used anywhere.
Such endpoints can be found in JS files, reversing mobile apps, etc.
(2) API endpoints are mostly not secure against cross site stealing bugs which includes CSRF and CORS. So, test it when you start.
(3)
Testing third party APIs, focus on studying and testing scope permissions instead of performing traditional privilege escalation testing.
(4)
JSON API endpoints are vulnerable to CSRF, just set content-type to `text/plain` and see if it works.
(5) How to test for XXE in the API?
Change content-type in the request to `application/xml` and verify if the application is processing it. If it is processed then you can go on and test for XXE.
(6)
Found an API endpoint used for uploading, change the upload file param to URL and test for SSRF. Many times it can lead you to full blown SSRF.
(7)
For any json/xml API endpoint, try to change extension to jsonp which may give you data in jsonp format. It can be easily stolen cross site.
Got a big scope?
Take screenshots with EyeWitness and sort them by file size to get the juicy stuff!
Comments
Post a Comment