id: bigip-detect

info:
  name: BIGIP - Detection
  author: PR3R00T,0x240x23elu
  severity: info
  reference:
    - https://www.intelisecure.com/how-to-decode-big-ip-f5-persistence-cookie-values
    - https://support.f5.com/csp/article/K23254150
  metadata:
    max-request: 2
  tags: bigip,tech,f5

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/my.policy"

    stop-at-first-match: true
    host-redirects: true
    matchers:
      - type: word
        part: header
        words:
          - 'BIGipServer~'

      - type: word
        part: header
        words:
          - 'BigIP'

      - type: word
        part: body
        words:
          - 'F5 Networks.'

    extractors:
      - type: regex
        part: header
        group: 1
        regex:
          - '(BIGipServer[a-z\_\.\-\~0-9A-Z]*)=([!a-z0-9A-Z/.=]+)'

# digest: 490a004630440220272c2ea860d37bcb37cfc922c67467c44bcf95fbe4a2c3e014095c2ffcf9879f02206912d48d438af3522215b36b32bf2515077ca466eb6780c13216f2c646aa781d:922c64590222798bb761d5b6d8e72950
