2023-05-21 14:25:38 +00:00
|
|
|
id: aws-credentials
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: AWS Credentials - Detect
|
|
|
|
author: m4lwhere
|
|
|
|
severity: high
|
|
|
|
description: AWS credentials found via /.aws/credentials endpoint.
|
2023-06-14 17:21:10 +00:00
|
|
|
reference:
|
|
|
|
- https://aws.amazon.com/blogs/security/what-to-do-if-you-inadvertently-expose-an-aws-access-key/
|
2023-05-21 14:25:38 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
|
|
|
|
cvss-score: 9.4
|
|
|
|
cwe-id: CWE-200
|
2023-06-14 17:21:10 +00:00
|
|
|
metadata:
|
2023-06-22 04:57:55 +00:00
|
|
|
max-request: 1
|
2023-06-14 17:21:10 +00:00
|
|
|
verified: true
|
2023-06-14 17:02:10 +00:00
|
|
|
tags: config,exposure,aws,credential
|
2023-05-21 14:25:38 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.aws/credentials"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2023-06-14 17:02:10 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- 'aws_access_key_id\s*=\s*'
|
2023-05-21 14:25:38 +00:00
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "!contains(tolower(body), '<html')"
|
|
|
|
- "!contains(tolower(body), '<body')"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-06-14 17:02:10 +00:00
|
|
|
|
2023-05-21 14:25:38 +00:00
|
|
|
extractors:
|
2023-05-21 20:19:27 +00:00
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- "(A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}"
|
|
|
|
- "([a-zA-Z0-9+/]{40})"
|