Skip to content
File upload Write-up Beginner

The Organization, Vendor & Application Security

An unprotected elFinder file manager was publicly accessible on an organisation's website, allowing file upload, edit and delete. The same vulnerable component was reused by a vendor across more than 17 client sites, and a malicious PHP file upload could lead to remote code execution.

Smaran Chand Follow

Published on smaranchand.com.np

During the Vulnerability Assessment Penetration Testing(VAPT) assessment of an organization’s assets, I encountered an interesting issue that led to flaws observed in all the projects accomplished by the Vendor/Development agency. While security assessment engagement, I discovered an unprotected Opensource file…

Smaran Chand, on smaranchand.com.np

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

Impact

A malicious user could upload, edit and delete files, and could escalate to remote code execution on all vulnerable websites built by the same vendor.

What the attacker needed

Exposed elFinder endpoint; no authentication on file manager

The fix

The vendor patched the issue in all affected scopes after receiving the report.

How it was found

  1. Find the exposed elFinder endpoint on the target website.
  2. Access the endpoint and confirm unrestricted file manager access.
  3. Upload a malicious PHP file through the file manager.
  4. Execute the uploaded file to achieve remote code execution.

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.

A file manager is a web tool for browsing and changing files on a server. Here it had no login protection, so anyone could reach it. Because it also allowed uploading a script file, an attacker could run their own code on the server.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Smaran Chand

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.