In-depth lesson · bug class
Unrestricted file upload
What every disclosed File upload report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 123
- median public bounty
- $1,337
- highest public bounty
- $5,600
Learning File upload reading list
Overview
What it is and why programs pay for it.
Unrestricted file upload is a flaw where an application accepts a file of a type or content it should reject, then stores it somewhere it can be retrieved or executed. The reports behind this lesson show it across open source web applications, Department of Defense sites, enterprise file transfer appliances, marketing SaaS tools, partner portals, issue trackers and cloud storage backed uploads. Programs care because the same missing check can turn a harmless looking form into stored script execution in another user's browser, server side code execution, or overwriting of files that belong to other people.
What it usually leads to depends on where the file lands. When uploads are served from the same origin with a content type that allows active content, the result is stored cross site scripting, as seen in issue trackers, helpdesk forms and signature settings. When the upload directory executes server side scripts, the result is code execution, as seen in backup, workflow and document server products. When files are stored in shared cloud buckets under predictable keys, the result can be replacement of another user's attachment. Some reports stop at acceptance of a dangerous type, which is weaker but still worth understanding.
It turns up most often wherever users are invited to attach something: profile pictures, avatars, logos, signatures, chat windows, bug report forms, CV and resume uploads, theme assets and snippet features. It also appears in less obvious places such as remote avatar URL options, direct upload routes for cloud storage, web server PUT handling and appliance admin interfaces. The common thread is a feature that takes a file from a user and does not fully decide what that file is allowed to be or where it is allowed to be served from.
Seen in these reports19
-
$1,500 High -
Medium -
Show 5 moreShow fewer
-
Medium -
Medium -
High -
High -
How it works
The mechanics, as the reports show them.
Conceptually the flow is simple. A user picks a file, the browser sends it to an endpoint, the server decides whether to keep it, and later the file is served back or processed. The vulnerability appears when one of those steps is missing or too trusting. Many reports show the server checking only the declared content type and not the real content or extension, so an executable class file was stored and served. Others show the check looking only at the filename extension while the file was still served as active content.
A second common pattern is a check that exists but can be sidestepped. The evidence includes a client side only check that falls away when the request is sent directly, a trailing space after a script extension that defeats the extension check, and a null byte between two extensions so the validator sees a safe extension while the server saves and executes the dangerous one. Prepending an image magic string to a script file defeated content validation in another case. These are variations on the same root cause: the validation and the thing that later uses the file disagree about what the file is.
A third pattern is the storage location. Attachments stored in a shared bucket under a key based only on the original filename, with no per user prefix, let a later upload replace an earlier object. Rails Active Storage direct upload routes left publicly accessible let any authenticated user create blobs and obtain signed upload URLs. A web server misconfigured to allow unauthenticated PUT requests enabled arbitrary file writes. In each case the upload itself may look normal, but the destination is not locked down.
A fourth pattern is a path or filename that is trusted too far. An unauthenticated endpoint took the filename and extension from the request without validation, allowing traversal and arbitrary writes. A save layer stripped percent patterns and then re-attached the pre sanitisation extension, producing a double extension. A file move method failed to re-check the user's original save choice against the new filename and directory. These show that even when the file type is constrained, the name and location can still be attacker controlled.
Finally, some cases are about a privileged service writing where a user can influence the path. A privileged service wrote its log into a user writable directory without checking for reparse points, so a symlink redirected the write. A cache file was opened in write mode before validating the path, so the open followed the symlink and truncated the target. These are upload adjacent: the attacker does not upload a file so much as cause a write to a chosen location. The lesson is to look at every feature that writes attacker influenced data to disk, not only the obvious file picker.
Seen in these reports14
-
$4,800
-
$3,000 Medium -
$2,000 Low
Show 5 moreShow fewer
-
$1,250 High -
$200 -
$100 Low -
Medium -
Medium
Year by year
3 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2001 | 28 |
|---|---|
| 2008 | 2 |
| 2009 | 2 |
| 2011 | 1 |
| 2014 | 3 |
| 2015 | 2 |
| 2016 | 5 |
| 2017 | 13 |
| 2018 | 7 |
| 2019 | 22 |
| 2020 | 48 |
| 2021 | 24 |
| 2022 | 36 |
| 2023 | 47 |
| 2024 | 47 |
| 2025 | 78 |
| 2026 | 79 |
-
2026
New this year2
- Reports in 2025 and 2026 shift toward client-side and library issues such as browser save dialogs, curl cache handling and Active Storage transformers rather than plain web forms, as shown in the disclosed reports.
- Pointing curl's cache option at a symlink to a file and running a failing request truncated the target file, as shown in the disclosed reports.
Kept working5
- Department of Defense web applications and enterprise appliance interfaces still exposed unrestricted upload in the disclosed reports.
- Unauthenticated upload endpoints with publicly reachable files were found again in the disclosed reports.
Turned up less3
- The 2022 and 2023 cluster of open source project upload reports is not reflected in the 2026 evidence.
- The 2023 pattern of null byte extension tricks and signed direct-upload URLs does not appear in the 2026 reports.
-
2025
New this year1
- Reports in 2025 and 2026 shift toward client-side and library issues such as browser save dialogs, curl cache handling and Active Storage transformers rather than plain web forms, as shown in the disclosed reports.
Kept working4
- Hunters pointed curl's libcurl output option at an existing writable file and found its contents replaced, as shown in the disclosed reports.
- A browser save file picker could be called with an image type, written to, then moved to a well-known directory with an executable name in the disclosed reports.
Turned up less3
- Department of Defense web application upload reports, frequent from 2020 to 2024, do not appear in the 2025 evidence.
- The 2022 and 2023 cluster of open source project upload reports is much smaller in the 2025 evidence.
-
2024
Kept working4
- Hunters found unauthenticated upload endpoints whose files were then publicly reachable in the disclosed reports.
- Department of Defense web applications again showed unrestricted upload of dangerous file types in the disclosed reports.
Turned up less3
- The large cluster of open source project upload reports seen in 2022 and 2023 is absent from the 2024 evidence.
- Issue tracker and project tool upload paths leading to stored cross-site scripting, common in 2021 and 2023, do not appear in the 2024 reports.
Where it is found
15The features and places the reports found it in, most-reported first.
-
Open source web applications repeatedly show unrestricted upload of dangerous types.
Seen in 20 reports
-
Department of Defense web applications repeatedly expose unrestricted upload of dangerous file types.
Seen in 11 reports
-
Enterprise file transfer and security products expose unrestricted upload in appliance interfaces.
Seen in 9 reports
-
Marketing and SEO SaaS tools expose upload endpoints for reports, signatures and chat windows.
Seen in 5 reports
-
Partner and seller portals expose upload endpoints that accept dangerous types.
Seen in 5 reports
Technologies in these reports16
Root causes
24The mistakes in the code or configuration behind the reports.
-
A privileged service wrote its log into a user-writable directory without checking for reparse points, so a symlink redirected the write.
Seen in 2 reports
-
The upload checked only the declared content type and not the real content or extension, so executable class files were stored and served.
Seen in 1 report
-
An unauthenticated endpoint took the filename and extension from the request without validation, allowing traversal and arbitrary writes.
Seen in 1 report
-
Attachments were stored in a shared bucket under a key based only on the original filename, with no per-user prefix, so a later upload replaced the earlier object.
Seen in 1 report
-
The profile picture upload did not validate file type, so a script file disguised as an image was saved and executed.
Seen in 1 report
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Upload endpoints and authentication
of 3 ticked-
Seen in 4 reports
-
Seen in 1 report
-
$5,600
-
-
Seen in 1 report
Client-side download and file handling
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Profile, avatar and media features
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Filename and extension manipulation
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Bypasses and variations
5How reports got past filters, encoders and other defences.
-
Bypass a client-side-only file type check by sending the upload request directly rather than through the page's script.
Seen in 2 reports
-
Insert a null byte between two extensions so the validator sees a safe extension while the server saves and executes the dangerous one.
Seen in 2 reports
-
Add a trailing space after a script extension in the uploaded filename to defeat the extension check.
Seen in 1 report
-
Bypass a drag-and-drop file type check by using the browse button to select a disallowed document type.
Seen in 1 report
-
Prepend an image magic string to a script file to defeat content validation, then combine it with a filename trick.
Seen in 1 report
-
$4,800
-
Payouts
25 paidPublic bounties in US dollars, from the data. 25 of 504 reports show an amount.
- a quarter paid up to
- $200
- median
- $1,337
- three quarters paid up to
- $2,000
- highest
- $5,600
One in ten paid reports was paid $4,080 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 46 | 0 | None paid | None |
| High | 88 | 2 | $1,375 | $1,500 |
| Medium | 66 | 4 | $1,375 | $3,000 |
| Low | 15 | 3 | $100 | $2,000 |
| Informational | 3 | 0 | None paid | None |
| Unrated | 286 | 16 | $1,337 | $5,600 |
Highest-paid reports5
-
$5,600 -
$5,600
-
$4,800
-
$3,000
-
$3,000
Tips for beginners
12Advice for a first hunt, drawn from the reports.
-
Start with the features that already take files: profile pictures, avatars, logos, signatures, chat attachments, bug report forms, CV and resume uploads, theme assets and snippet features. These are the places the evidence shows repeatedly. Read the page's JavaScript to find the real submit endpoint and the uploads directory rather than guessing.
Seen in 6 reports
-
Try the known bypass variations in order: trailing space after a script extension, a null byte between two extensions, an image magic string prepended to a script file, and a declared image content type on an executable file. Each of these defeated a real check in the evidence.
Seen in 4 reports
-
On appliance and enterprise admin interfaces, test whether an upload endpoint accepts a server side script type and then executes it. Backup, workflow and document server products have long been a source of arbitrary upload and execution.
Seen in 3 reports
-
Check whether the type check is only in the browser. If the page filters by extension or drag and drop, send the request directly and see whether the server still accepts it. A client side only check is one of the most common findings in this set.
Seen in 2 reports
-
Check unauthenticated endpoints and public reachability. Find an upload endpoint that needs no authentication and check whether uploaded files are publicly reachable. Enumerate directories to find an upload folder that returns success without authentication.
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on File upload, from around the web.
-
The minefield between syntaxes: exploiting syntax confusions in the wildShows how differing parser and syntax interpretations across languages can be abused to bypass filters and craft working payloads.
Technique yeswehack.com
-
20 Real-World File Upload Bypass Tricks Beyond php.jpg: Step-by-Step Guide for PentestersCollects twenty practical file upload bypass tricks with step by step instructions for testers.
Cheat sheet medium.com
-
Uploading web.config for Fun and Profit 2Shows how uploading a web.config on IIS can yield command execution and stored XSS in root or subfolders.
Technique soroush.me
-
SVG, Double Extensions, and Magic Bytes: Beating Upload FiltersCovers bypassing upload validation using SVG files, double extensions and magic byte manipulation.
Technique kd-200.medium.com
-
Insecure file uploads: A complete guide to finding advanced file upload vulnerabilitiesDetails how to find and exploit file upload flaws, including bypassing extension blacklists and whitelists, content type checks and magic bytes.
Methodology intigriti.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
Lessons to read next
How this is made: our model read every listed File upload report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 139 reports. All File upload reports.