id: bigip-icontrol-rest

info:
  name: F5 BIG-IP iControl REST Panel - Detect
  author: MrCl0wnLab
  severity: info
  description: |
    F5 BIG-IP iControl REST API discovered and may be vulnerable to an authentication bypass (not tested).
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1388
    - https://support.f5.com/csp/article/K23605346
    - https://clouddocs.f5.com/products/big-iq/mgmt-api/v5.4/ApiReferences/bigiq_api_ref/r_auth_login.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: f5
    product: big-ip_access_policy_manager
    shodan-query:
      - http.title:"BIG-IP&reg;-+Redirect" +"Server"
      - http.title:"big-ip&reg;-+redirect" +"server"
    fofa-query: title="big-ip&reg;-+redirect" +"server"
    google-query: intitle:"big-ip&reg;-+redirect" +"server"
  tags: panel,bigip,f5

http:
  - method: GET
    path:
      - "{{BaseURL}}/mgmt/shared/authn/login"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "resterrorresponse"

      - type: status
        status:
          - 401
# digest: 4a0a00473045022100db9f7afd856bb710bbd7259a36b5f40e9b2b05405f53d75b908b26f84677aaf7022067d37789ab7901447c1e35e9715094c10bf6836cdcf4cca6b7b7466cef6bf81d:922c64590222798bb761d5b6d8e72950