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

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: 4a0a00473045022100c3dc50026ef9dab79e62b27c1b5f72095cf4a32806f6aa1c39389f51571bd4f9022052e162bebcc276556b2e5f3b863d0b3cec8accff5382b58f5a39c7917531a97f:922c64590222798bb761d5b6d8e72950