Skip to content
XSS Write-up Beginner

From Discovery to Patch: Critical DOM XSS & Open Redirect in Toyota’s Parts Portal

The Toyota autoparts portal had a DOM XSS flaw in its search functionality and an open redirect flaw. An attacker could use these to hijack sessions or send users to phishing sites.

N0aziXss Follow

Published on medium.com

On February 16, 2025, I discovered dangerous DOM XSS and Open Redirect vulnerabilities affecting Toyota’s autoparts portal. Through responsible disclosure via HackerOne, these were successfully patched by February 20, 2025 — a swift 5-day remediation demonstrating effective researcher-enterprise collaboration.

N0aziXss, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the search feature inserted user input into the page without sanitising it, and the redirect feature accepted any destination without validating the domain.

Impact

An attacker could hijack user sessions and redirect users to phishing or malware sites, though the text does not show a working exploit chain.

What the attacker needed

Victim visits the portal; victim uses the search feature; victim clicks a crafted link

The fix

The portal was fixed by adding input sanitisation with DOMPurify, a strict Content-Security-Policy, and domain whitelisting for redirects.

How it was found

  1. Enter an HTML injection payload into the search field.
  2. Observe that the input is stored in search history.
  3. Revisit the page and see the payload execute.
  4. Use a crafted link to trigger the open redirect.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

DOM XSS is when a script hidden in a web page runs in a visitor's browser because the page inserts untrusted input into the page without cleaning it. An open redirect is a link on a trusted site that sends people to any other site the attacker chooses. Together they can trick users and steal their logged-in sessions.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by N0aziXss

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.