31 lines
866 B
YAML
31 lines
866 B
YAML
id: cloudfoundry-detect
|
|
|
|
info:
|
|
name: Cloudfoundry Detect
|
|
author: uomogrande
|
|
severity: info
|
|
description: Detects cloudfoundry based on response headers
|
|
reference: https://docs.cloudfoundry.org/concepts/cf-routing-architecture.html
|
|
metadata:
|
|
max-request: 2
|
|
tags: cloudfoundry,tech
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
# request unknown (random) route
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{randstr}}.com
|
|
|
|
stop-at-first-match: true
|
|
req-condition: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'contains(header, "X-Vcap-Request-Id:") || contains(header, "X-Cf-Routererror:")'
|
|
|
|
# digest: 4b0a00483046022100b909300b61bb40789b99e330501095fafe77aadf1cd48f579a772fbd3dbb8f85022100ed885a3ebe495f31fc741a5eaa2d6dcdd633d6ae8f149dbf48aaff82723ac415:922c64590222798bb761d5b6d8e72950
|