aws-samples / aws-samples/aws-trip-aggregation-sample
API Gateway endpoint
Open
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
No authorizer (IAM, Cognito, API key, or Lambda authorizer) is configured on the API. Anyone who discovers the API Gateway URL can query any trip by ID. Combined with the SQL injection above, an attacker could extract all trip data.
Possible Fix: Add at minimum an IAM authorizer or API key:
byTripIdResource.addMethod(HttpMethod.GET, integration, {
authorizationType: AuthorizationType.IAM,
// ... rest of config
});
Contributor guide
Assessment
This issue has not been assessed yet.