Skip to content
Path traversal Disclosed report Intermediate

Unauthenticated LFI revealing log information

A local file inclusion vulnerability allowed unauthenticated access to local files on certain servers, including PHP files and logs. This could expose sensitive information such as tokens that were inadvertently logged.

juji Follow

Originally disclosed on HackerOne

  • Triaged in 14 hours
  • Fixed in 15 days
  • Paid in 15 days
  • Disclosed after 4 months

Summary by the program

@juji found a bug which allowed the disclosure of local files on certain servers - this included PHP files and logs. We performed a thorough investigation to ensure that this issue was not exploited, and as a precaution revoked tokens which were inadvertently logged. Thanks @juji!

Summary by the researcher

Write-up incoming...

The original report as published on HackerOne, by juji. 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 passed user-controlled input to a file-reading function without proper validation or authorisation checks.

Impact

An unauthenticated attacker could read local files, including logs containing tokens; the organisation revoked the exposed tokens as a precaution.

What the attacker needed

No authentication required; target server vulnerable to LFI

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.

A local file inclusion bug lets an attacker make a server show files stored on the same machine, like PHP files and logs. Here, logs containing secret tokens were exposed, so the tokens were revoked.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Slack

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.