HexBrain

Browse / CVEs / CVE-2024-0337

CVE-2024-0337

Travelpayouts <= 1.1.16 - Open Redirect

mediumseverity
0.9%likelihood of exploitation, next 30 days
60%of all CVEs are less likely
Readycheck to confirm it

The plugin is vulnerable to Open Redirect due to insufficient validation on the travelpayouts_redirect variable. This makes it possible for unauthenticated attackers to redirect users to potentially malicious sites if they can successfully trick them into performing an action.

Impact

Unauthenticated attackers can redirect users to malicious sites for phishing attacks, credential harvesting, or malware distribution by exploiting insufficient redirect validation.

Fix

Upgrade to the latest version of the Travelpayouts plugin that addresses this open redirect vulnerability.

How to confirm it

Send: GET {{BaseURL}}/?travelpayouts_redirect=https://oast.me
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.me.*$/

Run it with nuclei: nuclei -id CVE-2024-0337 -u <target>

The full check
id: CVE-2024-0337

info:
  name: Travelpayouts <= 1.1.16 - Open Redirect
  author: s4e-io
  severity: medium
  description: |
    The plugin is vulnerable to Open Redirect due to insufficient validation on the travelpayouts_redirect variable. This makes it possible for unauthenticated attackers to redirect users to potentially malicious sites if they can successfully trick them into performing an action.
  impact: |
    Unauthenticated attackers can redirect users to malicious sites for phishing attacks, credential harvesting, or malware distribution by exploiting insufficient redirect validation.
  remediation: |
    Upgrade to the latest version of the Travelpayouts plugin that addresses this open redirect vulnerability.
  reference:
    - https://wpscan.com/vulnerability/2f17a274-8676-4f4e-989f-436030527890/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-0337
  classification:
    cve-id: CVE-2024-0337
    epss-score: 0.00891
    epss-percentile: 0.59723
  metadata:
    verified: true
    max-request: 1
    publicwww-query: inurl:"/wp-content/plugins/travelpayouts"
  tags: wpscan,cve,cve2024,wp,wp-plugin,wordpress,redirect,travelpayouts,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?travelpayouts_redirect=https://oast.me"

    redirects: true
    max-redirects: 2
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.me.*$'

References

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