Skip to content
File upload Disclosed report Beginner

Unauthenticated File Upload to CDN

An endpoint on NFT.io allowed files to be uploaded without any authentication. An attacker could store files on the CDN, though they were only kept temporarily before being purged.

ph0r3nsic Follow

Originally disclosed on HackerOne

Medium 5.8 View original
  • Triaged in 1 hour
  • Fixed in 3 days
  • Paid in 5 hours
  • Disclosed after 2 months

Summary by the program

@ph0r3nsic demonstrated that it was possible to upload files to NFT.io with an unauthenticated session.

Whilst the endpoint used in the report only stored the files ephemerally (and therefore they would be purged after a few hours having not being captured), the Enjin team concluded there were no legitimate reason for an unauthenticated session to be able to interact with that endpoint in the first place and therefore pushed a fix to prevent it going forward.

The fix was deferred from release until the Monday as the issue was reported on Friday and didn't warrant an immediate resolution due to the low-impact nature of the vulnerability.

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target was nft.io, an Enjin property, and the feature under test was file upload. The researcher, ph0r3nsic, showed that files could be uploaded to NFT.io using an unauthenticated session: files could be uploaded to NFT.io using an unauthenticated session.

The report itself is short. It does not include the endpoint path, the request, the parameter names, the file types accepted or the server responses, so there is nothing to reproduce here beyond the behaviour described. What the program's summary records is the sequence: the researcher demonstrated that files could be uploaded to NFT.io with an unauthenticated session.

The program classified the issue as medium severity with a CVSS score of 5.8, under the weakness category Improper Access Control - Generic. No bounty amount is recorded.

One detail matters for how the impact was judged. The endpoint stored files only ephemerally: the program states that uploaded files would be purged after a few hours if they were not captured. The Enjin team still concluded that there was no legitimate reason for an unauthenticated session to interact with that endpoint at all, and pushed a fix to prevent it. The fix was deferred from release until the Monday, because the issue was reported on Friday and, given the low-impact nature of the vulnerability, did not warrant an immediate resolution.

Root cause

The program concluded there was no legitimate reason for an unauthenticated session to interact with that endpoint. The endpoint accepted and stored a file from a session that had not authenticated,

Impact

In this case the impact was limited by storage behaviour: files were kept only ephemerally and purged after a few hours if not captured. The program's own framing is that the vulnerability was of low-impact nature. The Enjin team concluded there was no legitimate reason for an unauthenticated session to interact with that endpoint. Unauthenticated write access to storage can be abused for hosting content, consuming storage or bandwidth, or feeding files into whatever later reads from that location, but the report does not show any of that happening here.

How this kind of bug works

Upload endpoints usually sit behind an authenticated flow: the browser sends a request that includes a session cookie or bearer token, and the server resolves that credential to a user before accepting the file. The bug class appears when the server-side handler trusts the client to have done that step. Common variants are an endpoint that never checks the credential, a check that runs on one route but not on a sibling route (for example a direct-to-storage or presigned-URL route), and a check that validates the token's format without validating that it is live and belongs to a real session.

Because uploads are often handled by separate infrastructure from the main application, the authorisation logic can be duplicated or omitted in the upload service. The result is a write primitive that requires no account, which is attractive to attackers for storage abuse, content hosting and as a stepping stone if uploaded files are later served from a trusted origin.

Defences are straightforward in principle: enforce authentication and authorisation on the upload handler itself, not only in the UI or in a gateway rule that can be bypassed by reaching the backend directly; bind uploads to a specific user and scope; and apply rate limits and content-type restrictions so that even an authenticated account cannot use the endpoint as free storage.

How to test for it

  1. Find upload functionality: profile pictures, attachments, document uploads, import features, and any request that returns a storage URL or a presigned link.
  2. Capture a legitimate upload request in a proxy while signed in, and note the host, path, method, body format and any token or signature parameters.
  3. Replay the same request with all credentials removed: drop the session cookie, the Authorization header and any CSRF token, and see whether the server still accepts the file.
  4. If the request carries a signature or presigned URL, test whether the signature is actually validated, for example by altering the path or the content type, and whether the URL can be reused.
  5. Try reaching the upload host directly, bypassing any front-end gateway, in case authorisation is enforced only at the edge.
  6. Confirm the file was really stored: fetch the returned URL, or check whether the response contains an identifier that resolves to the uploaded content.

A positive result is a response that confirms acceptance where an unauthenticated caller should be rejected. Common false positives are endpoints that accept the request but silently discard the file, endpoints that store only ephemerally (as here), and cases where a token was still present in a header you did not remove. Check persistence before claiming impact.

How it is fixed

Require authentication on the upload handler and verify that the caller is authorised for the specific resource being written to. Enforce this in the service that stores the file, not only at the gateway. Where presigned URLs are used, issue them only to authenticated users, scope them to a single object and short expiry, and validate the signature server-side. Add rate limiting and content-type and size restrictions, and log unauthenticated attempts so that abuse is visible.

Hunting notes

Upload paths tend to hide in features added later: support ticket attachments, avatar and banner uploads, CSV imports, and anything that hands the client a direct storage URL. Recon signals worth following are separate storage hostnames in JavaScript bundles, endpoints that return presigned URLs, and API routes whose siblings all require a token. When you find one, demonstrate that the file persists and is retrievable, because an ephemeral store weakens the case. Show the request with credentials stripped and the response, and state clearly what an unauthenticated party could do with it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 8 min read.

What happened, in plain words

NFT.io is a website run by Enjin where people can create, buy and sell NFTs. An NFT is a digital item whose ownership is recorded on a blockchain, a shared ledger that many computers keep in sync. Like most sites, NFT.io lets users upload files, for example an image that goes with an NFT.

A security researcher named ph0r3nsic tested that upload feature and found that the site accepted files from someone who was not logged in at all. No account and no sign-in. The site accepted the file and stored it ephemerally.

To understand why that is odd, think of a members-only cloakroom. Normally the attendant checks your membership card before taking your coat. Here, the attendant took the coat from anyone who walked in off the street. Nothing was stolen and nothing was damaged, but the door that was supposed to be closed was open.

The report itself is very short. It does not give the address of the upload endpoint, the exact request that was sent, the names of any parameters, which file types were accepted, or what the server replied. So there is no request to copy here; what we know is the behaviour: an upload request sent without authentication was accepted and the file was stored.

The program's summary records the sequence plainly: the researcher demonstrated that it was possible to upload files to NFT.io with an unauthenticated session. An unauthenticated session simply means a visit to the site where you have not signed in; your browser is talking to the server, but the server has no idea who you are.

One detail shaped how serious this was judged to be. The endpoint stored files only ephemerally, meaning temporarily: the program states that uploaded files would be purged after a few hours if they were not captured. So an attacker could not park a file there permanently. The Enjin team still concluded that there was no legitimate reason for an unauthenticated session to be able to interact with that endpoint in the first place, and pushed a fix to prevent it.

The fix was deferred from release until the Monday, because the issue was reported on Friday and, given the low-impact nature of the vulnerability, did not warrant an immediate resolution. The issue was rated medium severity with a CVSS score of 5.8, under the weakness category Improper Access Control - Generic. CVSS is a standard scoring system for vulnerabilities, where a higher number means more risk. No bounty amount is recorded.

Why the missing login check matters

Every time your browser loads a page or sends a form, it makes a request to a server: a message asking for something or handing something over. When you are logged in, that request usually carries a cookie, a small piece of data your browser stores and sends back automatically, or a token, a string that proves who you are. The server reads it, works out which user is calling, and decides whether to allow the action.

Access control is that decision. When it is missing, the server does the work for anyone who asks.

What could have gone wrong

Because the files were temporary, the practical damage was limited, and the program describes the vulnerability as low impact. The Enjin team concluded there was no legitimate reason for an unauthenticated session to interact with that endpoint. In general, unauthenticated write access to storage can be abused to host content, to consume storage or bandwidth, or to feed files into whatever later reads from that location. The report does not show any of that happening here.

In general, how this kind of bug works

Upload endpoints usually sit behind a login flow. Your browser sends a request that includes a session cookie or a bearer token, and the server resolves that credential to a user before accepting the file. The bug class appears when the server-side handler trusts the browser to have done that step.

Common variants are:

  1. An endpoint that never checks the credential at all.
  2. A check that runs on one route but not on a sibling route, for example a direct-to-storage route or a presigned URL, which is a link that already contains permission to upload and is meant to expire quickly.
  3. A check that validates the token's format without validating that it is live and belongs to a real session.

Uploads are often handled by separate infrastructure from the main application, so the authorisation logic can be duplicated or left out in the upload service. The result is a write primitive, a way to make the server store something, that needs no account. That is attractive for storage abuse and content hosting, and as a stepping stone if uploaded files are later served from a trusted origin.

Defences are straightforward in principle: enforce authentication and authorisation on the upload handler itself, not only in the interface or in a gateway rule that can be bypassed by reaching the backend directly; bind uploads to a specific user and scope; and apply rate limits and content-type restrictions so that even a signed-in account cannot use the endpoint as free storage.

How to test for it

  1. Find upload functionality: profile pictures, attachments, document uploads, import features, and any request that returns a storage URL or a presigned link.
  2. Capture a legitimate upload request in a proxy while signed in, and note the host, path, method, body format and any token or signature parameters. A proxy is a tool that sits between your browser and the server so you can read and edit the traffic.
  3. Replay the same request with all credentials removed: drop the session cookie, the Authorization header and any CSRF token, and see whether the server still accepts the file. CSRF is a protection that stops other sites from submitting forms on your behalf.
  4. If the request carries a signature or presigned URL, test whether the signature is actually validated, for example by altering the path or the content type, and whether the URL can be reused.
  5. Try reaching the upload host directly, bypassing any front-end gateway, in case authorisation is enforced only at the edge.
  6. Confirm the file was really stored: fetch the returned URL, or check whether the response contains an identifier that resolves to the uploaded content.

A positive result is a response that confirms acceptance where an anonymous caller should be rejected. Common false positives are endpoints that accept the request but silently discard the file, endpoints that store only ephemerally, as in this case, and cases where a token was still present in a header you did not remove. Check persistence before claiming impact.

How it is fixed

Require authentication on the upload handler and verify that the caller is authorised for the specific resource being written to. Enforce this in the service that stores the file, not only at the gateway. Where presigned URLs are used, issue them only to authenticated users, scope them to a single object and short expiry, and validate the signature server-side. Add rate limiting and content-type and size restrictions, and log unauthenticated attempts so that abuse is visible.

Where to look

Upload paths tend to hide in features added later: support ticket attachments, avatar and banner uploads, CSV imports, and anything that hands the browser a direct storage URL. Signals worth following are separate storage hostnames in JavaScript bundles, endpoints that return presigned URLs, and API routes whose siblings all require a token. When you find one, demonstrate that the file persists and is retrievable, because an ephemeral store weakens the case. Show the request with credentials stripped and the response, and state clearly what an anonymous party could do with it.

Glossary

  • NFT: a digital item whose ownership is recorded on a blockchain.
  • Blockchain: a shared ledger kept in sync by many computers.
  • Endpoint: a specific address on a server that accepts a particular kind of request.
  • Request: a message your browser sends to a server asking for something or handing something over.
  • Session: a period of interaction between your browser and a site; an unauthenticated session is one where you have not signed in.
  • Cookie: a small piece of data stored by your browser and sent back to the site automatically.
  • Token: a string that proves who you are or grants permission.
  • Bearer token: a token sent in a request header that the server accepts as proof of identity.
  • Header: an extra line of information attached to a request, such as a credential or a content type.
  • Authentication: proving who you are, usually by signing in.
  • Authorisation: deciding whether an identified user is allowed to do a particular action.
  • Access control: the rules that make that decision.
  • Improper Access Control: a weakness where those rules are missing or wrong.
  • File upload: a feature that lets you send a file to a server so it is stored.
  • Ephemeral storage: storage that keeps data only temporarily and deletes it later.
  • Presigned URL: a link that already contains permission to upload or download, usually with a short expiry.
  • Signature: a value that proves a request or link was issued by the server and has not been altered.
  • CSRF token: a value that stops other websites from submitting forms on your behalf.
  • Proxy: a tool placed between your browser and a server so you can read and edit the traffic.
  • Rate limiting: restricting how many requests can be made in a period of time.
  • Content-type restriction: only allowing certain kinds of files to be uploaded.
  • Write primitive: a way to make a server store or change something.
  • False positive: a finding that looks like a bug but is not one in practice.
  • CVSS: a standard scoring system for the severity of vulnerabilities.
  • Severity: how serious a vulnerability is judged to be.
  • Bounty: a payment some programs make to researchers who report valid bugs.

More by ph0r3nsic

View all

1 more disclosed report, best first.

More from Enjin

View all

The newest disclosed reports for this program.

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.