> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-api-gateway-request-parameter-is-not-validated.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS API gateway request parameter is not validated

### Synopsis

| Field               | Value                                              |
| ------------------- | -------------------------------------------------- |
| Rule Type           | Detection                                          |
| Finding Type        | AWS API gateway request parameter is not validated |
| Finding ID          | 60000426                                           |
| Generates a Finding | This detection rule also generates a finding       |
| Severity            | Medium                                             |
| Category            | CONFIGURATION                                      |
| Cloud Providers     | AWS                                                |
| Platform Module     | CSPM                                               |
| Asset Types         | AMAZON\_API\_GATEWAY\_METHOD                       |

### Description

AWS API Gateway request parameters lacking validation pose a significant security risk. Unvalidated inputs can lead to various attacks, including injection flaws (SQL injection, cross-site scripting), denial-of-service conditions, and data breaches.

API Gateway's request validation feature allows defining constraints on request parameters, such as data types, length, and patterns. Failure to implement this crucial setting leaves the backend integration vulnerable to malicious or improperly formatted requests. Attackers could exploit this misconfiguration to manipulate data, bypass authorization mechanisms, or even execute arbitrary code.

The impact of this misconfiguration ranges from application errors and performance degradation to complete system compromise. Robust input validation is paramount for ensuring the integrity and security of the API Gateway and its connected backend services. It is essential to prevent unexpected behavior and protect against malicious actors.

To mitigate this risk, implement request validation on all API Gateway endpoints. Define appropriate constraints for each parameter, carefully considering allowed data types and lengths. Regularly review and update these validation rules to account for evolving threats and changing application requirements.

### Remediation

1. Login to AWS management console
2. Navigate to 'API Gateway' service
3. Select the region for which the API gateway is reported.
4. Find the alerted API by the API gateway ID which is the first part of reported resource and click on it
5. Navigate to the reported method
6. Click on the Edit button on the 'Method Request' section.
7. On the 'Edit method request' page, under 'Method request settings', select the required option from the 'Request Validator' dropdown.
8. Click on the 'save' button to save the changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-api-gateway-request-parameter-is-not-validated.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
