#01

API Security

  • Misc

    • Google Dorks

    site:target.tld inurl:api
    site:target.tld intitle:"index of" "api.yaml"
    site:target.tld inurl:/application.wadl
    site:target.tld ext:wsdl inurl:/%24metadata
    site:target.tld ext:wadl
    site:target.tld ext:wsdl
    user filetype:wadl
    user filetype:wsdl
    • Check different Content-Types

    x-www-form-urlencoded --> user=test
    application/json --> {"user": "test"}
    application/xml --> <user>test</user>
    • If it's regular POST data try sending arrays, dictionaries

    username[]=John
    username[$neq]=lalala
    • If JSON is supported try to send unexpected data types

    {"username": "John"}
    {"username": true}
    {"username": null}
    {"username": 1}
    {"username": [true]}
    {"username": ["John", true]}
    {"username": {"$neq": "lalala"}}
    • If XML is supported, check for XXE

Last updated