Skip to content
XSS Disclosed report Intermediate

Stored XSS Via Filename On https://partners.line.me/

The server did not escape filenames when files were uploaded to partners.line.me, so a filename containing an XSS payload was embedded unescaped into HTML. An attacker could trigger script execution when the uploaded file's path was accessed, though cookie theft was not possible.

rioncool22 Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Fixed in 17 days
  • Paid in 31 days
  • Disclosed after 8 months

Summary by the program

When uploading a file to “partners.line.me” with a filename containing an XSS payload, the server did not escape the filename. This caused DOM-based XSS to be embedded in HTML. Uploaded files were stored for a certain period of time only. However, as long as they were available on the server, accessing the path triggered XSS and the saved payload was displayed without escaping. Yet, it turned out that cookie theft was not possible.

The original report as published on HackerOne, by rioncool22. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the application inserted the user-supplied filename into HTML without escaping or sanitising it.

Impact

An attacker could execute script in the context of the site when a victim accessed the uploaded file's path, but cookie theft was not possible.

What the attacker needed

Ability to upload a file; victim accesses the uploaded file path

How it was found

  1. Upload a file to partners.line.me with a filename containing an XSS payload.
  2. Access the path of the uploaded file while it is still stored on the server.
  3. The saved payload is displayed without escaping, triggering XSS.

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 report has not been written yet. The Original tab links to the source.

When you upload a file, the site usually shows the file's name somewhere on a page. If the site puts that name into the page without cleaning it first, someone can name a file with special characters that make the browser run code. Here, the site failed to clean the filename, so opening the uploaded file's link could run that code, but the report says stealing cookies this way did not work.

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 rioncool22

View all

10 more disclosed reports, best first.

More from LY Corporation

View all

The newest disclosed reports for this program.

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.