AWS - API Gateway Persistence
Last updated
Last updated
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)
For more information go to:
AWS - API Gateway EnumModify the resource policy of the API gateway(s) to grant yourself access to them
Modify the code of lambda authorizers to grant yourself access to all the endpoints. Or just remove the use of the authorizer.
If a resource is using IAM authorizer you could give yourself access to it modifying IAM permissions. Or just remove the use of the authorizer.
If API keys are used, you could leak them to maintain persistence or even create new ones. Or just remove the use of API keys.
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)