id: ruijie-phpinfo

info:
  name: Ruijie Phpinfo Configuration - Detect
  author: pikpikcu
  severity: low
  description: Ruijie phpinfo configuration was detected.
  reference:
    - https://github.com/PeiQi0/PeiQi-WIKI-POC/blob/PeiQi/PeiQi_Wiki/%E7%BD%91%E7%BB%9C%E8%AE%BE%E5%A4%87%E6%BC%8F%E6%B4%9E/%E9%94%90%E6%8D%B7/%E9%94%90%E6%8D%B7EG%E6%98%93%E7%BD%91%E5%85%B3%20phpinfo.view.php%20%E4%BF%A1%E6%81%AF%E6%B3%84%E9%9C%B2%E6%BC%8F%E6%B4%9E.md
  classification:
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: phpinfo,rujjie,config,exposure,ruijie

http:
  - method: GET
    path:
      - "{{BaseURL}}/tool/view/phpinfo.view.php"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "PHP Version"
          - "PHP Extension"
        condition: and

      - type: status
        status:
          - 200

# digest: 4a0a0047304502200b9dc8e84ad8b980cf463dde44cdf1c88c97bbe0db495a4c293ca8e20a0c8170022100c00ff52ca488bdb6a1b3449459fd3d44482ef8ebe8f5174236d5a8461518c907:922c64590222798bb761d5b6d8e72950
