From d83ab634efd982427d4ef7ecdeda103c47cd34f4 Mon Sep 17 00:00:00 2001 From: uomogrande Date: Sun, 3 Jul 2022 16:26:34 +0200 Subject: [PATCH] Added cloudfoundry-detect Template --- technologies/cloudfoundry-detect.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 technologies/cloudfoundry-detect.yaml diff --git a/technologies/cloudfoundry-detect.yaml b/technologies/cloudfoundry-detect.yaml new file mode 100644 index 0000000000..880dd65693 --- /dev/null +++ b/technologies/cloudfoundry-detect.yaml @@ -0,0 +1,27 @@ +id: cloudfoundry-detect + +info: + name: cloudfoundry detection + author: uomogrande + severity: info + description: detect cloudfoundry based on response headers + tags: cloudfoundry,tech + reference: https://docs.cloudfoundry.org/concepts/cf-routing-architecture.html + +requests: + - raw: + - | + GET / HTTP/1.1 + + # request unknown (random) route + - | + GET / HTTP/1.1 + Host: {{randstr}}.com + stop-at-first-match: true + + req-condition: true + matchers: + - type: dsl + name: header detection + dsl: + - 'contains(all_headers, "X-Vcap-Request-Id:") || contains(all_headers, "X-Cf-Routererror:")'