2022-07-03 14:26:34 +00:00
|
|
|
id: cloudfoundry-detect
|
|
|
|
|
|
|
|
info:
|
2022-07-04 11:33:53 +00:00
|
|
|
name: Cloudfoundry Detect
|
2022-07-03 14:26:34 +00:00
|
|
|
author: uomogrande
|
|
|
|
severity: info
|
2022-07-04 11:33:53 +00:00
|
|
|
description: Detects cloudfoundry based on response headers
|
2022-07-03 14:26:34 +00:00
|
|
|
reference: https://docs.cloudfoundry.org/concepts/cf-routing-architecture.html
|
2022-07-04 11:33:53 +00:00
|
|
|
tags: cloudfoundry,tech
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2022-07-03 14:26:34 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-07-03 14:26:34 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET / HTTP/1.1
|
2022-07-04 11:33:53 +00:00
|
|
|
Host: {{Hostname}}
|
2022-07-03 14:26:34 +00:00
|
|
|
|
|
|
|
# request unknown (random) route
|
|
|
|
- |
|
|
|
|
GET / HTTP/1.1
|
|
|
|
Host: {{randstr}}.com
|
2022-07-04 11:35:54 +00:00
|
|
|
|
2022-07-03 14:26:34 +00:00
|
|
|
stop-at-first-match: true
|
|
|
|
req-condition: true
|
|
|
|
matchers:
|
2022-07-04 11:33:53 +00:00
|
|
|
|
2022-07-03 14:26:34 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(all_headers, "X-Vcap-Request-Id:") || contains(all_headers, "X-Cf-Routererror:")'
|