2022-01-16 12:25:28 +00:00
|
|
|
id: open-proxy-portscan
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Open Proxy to Ports on the Proxy's localhost Interface
|
|
|
|
author: sullo
|
2022-01-21 19:06:29 +00:00
|
|
|
severity: high
|
2022-01-16 12:25:28 +00:00
|
|
|
description: The host is configured as a proxy which allows access to its internal interface
|
2023-10-14 11:27:55 +00:00
|
|
|
remediation: Disable the proxy or restrict configuration to only allow access to approved hosts/ports.
|
2022-01-16 12:25:28 +00:00
|
|
|
reference:
|
|
|
|
- https://blog.projectdiscovery.io/abusing-reverse-proxies-internal-access/
|
|
|
|
- https://en.wikipedia.org/wiki/Open_proxy
|
|
|
|
- https://www.acunetix.com/vulnerabilities/web/apache-configured-to-run-as-proxy/
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
|
|
|
|
cvss-score: 8.6
|
|
|
|
cwe-id: CWE-441
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 8
|
2024-02-12 17:32:40 +00:00
|
|
|
tags: exposure,config,proxy,misconfig,brute-force
|
2022-01-16 12:25:28 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-01-16 12:25:28 +00:00
|
|
|
- raw:
|
|
|
|
- |+
|
|
|
|
GET / HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET http://somethingelsethatdoesnotexist/ HTTP/1.1
|
|
|
|
Host: somethingelsethatdoesnotexist
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET http://127.0.0.1:21 HTTP/1.1
|
|
|
|
Host: 127.0.0.1
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET http://127.0.0.1:22 HTTP/1.1
|
|
|
|
Host: 127.0.0.1
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET http://127.0.0.1:25 HTTP/1.1
|
|
|
|
Host: 127.0.0.1
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET http://127.0.0.1:110 HTTP/1.1
|
|
|
|
Host: 127.0.0.1
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET http://127.0.0.1:587 HTTP/1.1
|
|
|
|
Host: 127.0.0.1
|
|
|
|
|
|
|
|
- |+
|
|
|
|
GET https://127.0.0.1:587 HTTP/1.1
|
|
|
|
Host: 127.0.0.1
|
|
|
|
|
|
|
|
unsafe: true
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
condition: or
|
|
|
|
dsl:
|
2022-01-22 09:04:50 +00:00
|
|
|
- (!regex("(?i)FTP",body_1)) && (!regex("(?i)FTP",body_2)) && (regex("(?i)FTP",body_3))
|
2022-01-21 19:06:29 +00:00
|
|
|
- (!regex("(?i)SSH-[.]+-+",body_1)) && (!regex("(?i)SSH-[.]+-+",body_2)) && (regex("(?i)SSH-[.]+-+",body_4))
|
2022-01-22 09:04:50 +00:00
|
|
|
- (!regex("(?i)POP3",body_1)) && (!regex("(?i)POP3",body_2)) && (regex("(?i)POP3",body_6))
|
2022-01-16 12:25:28 +00:00
|
|
|
- (!regex("(?i)SMTP",body_1)) && (!regex("(?i)SMTP",body_2)) && ((regex("(?i)SMTP",body_5)) || (regex("(?i)SMTP",body_7)) || (regex("(?i)SMTP",body_8)))
|
2024-02-12 18:33:19 +00:00
|
|
|
# digest: 4b0a0048304602210092700f1e62b3b3e93ec9e132f784ac50cb28d9424fe3d70b59afde059111279c022100f3d97c03a5b360eb37146b44b0dd5bfb94278302ed3ccf1a248b7719cf385f0d:922c64590222798bb761d5b6d8e72950
|