Skip to content

Commit d2f4e61

Browse files
Merge pull request #306642 from dlepow/patch-130888
[APIM] Enhance OWASP security guidance - path traversal
2 parents 4d13a99 + 043b608 commit d2f4e61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

articles/api-management/mitigate-owasp-api-threats.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ More information about this threat: [API8:2023 Security misconfiguration](https
193193
- Use Key Vault integration to manage all certificates. This centralizes certificate management and can help to ease operations management tasks such as certificate renewal or revocation. Use managed identity to authenticate to key vaults.
194194
- When using the [self-hosted-gateway](/azure/api-management/self-hosted-gateway-overview), ensure that there's a process in place to update the image to the latest version periodically.
195195
- Represent backend services as [backend entities](/azure/api-management/backends). Configure authorization credentials, certificate chain validation, and certificate name validation where applicable.
196+
- Ensure your backends are protected against path traversal (directory traversal) attacks. API Management may forward requests containing `..%2f` in the URL path to a backend. If the backend decodes it to `../`, it could be susceptible to a path traversal attack. You can also apply a policy in API Management to detect and block requests such as those containing `..%2f` in the path.
196197
- Where possible, use credential manager or managed identity to authenticate against backend services.
197198
- When using the [developer portal](/azure/api-management/api-management-howto-developer-portal):
198199
- If you choose to [self-host](/azure/api-management/developer-portal-self-host) the developer portal, ensure there's a process in place to periodically update the self-hosted portal to the latest version. Updates for the default managed version are automatic.

0 commit comments

Comments
 (0)