How I Found a Reflected XSS on AppyPie’s Template Search Page
The template search page reflected the search term into the page without proper encoding, so a crafted URL containing an SVG element with an onload handler executed script in the visitor's browser. An attacker could use such a link to run script in a victim's session, for example to read cookies or show a fake login form.
Published on anupamas02.medium.com
While testing AppyPie’s site casually, I came across a reflected XSS vulnerability in their template search functionality. It wasn’t anything too complex, but it reminded me how small oversights can still lead to impactful bugs.
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 term from the URL was inserted into the page's HTML without output encoding or sanitisation.
Impact
A crafted link could run script in a victim's browser, which the author says could lead to session theft, fake login forms, abuse of admin interfaces, or chaining with CSRF.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open the template search endpoint and notice the search term is reflected on the page.
- Craft a URL whose search path contains an SVG element with an onload handler.
- Load the crafted URL and observe the script run in the browser.
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.
When you type something into a search box, the site often shows it back to you on the results page. If the site puts that text into the page without neutralising special characters, a link can carry hidden code that the browser runs as if the site itself wrote it. That is called reflected cross-site scripting, and it lets an attacker act inside a victim's logged-in session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.