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,discovery

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

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

      - type: status
        status:
          - 401
# digest: 490a0046304402201a60d64c7c28e9c76d1c5765cc9aa18506dc5b9061bad62507da09767119f5cc0220283399d7c7d7a3b8f93541eac2928002f22d121a93fefb78c9ac8c5bd61761c7:922c64590222798bb761d5b6d8e72950