Skip to content
Access control Disclosed report Advanced

User Data from the Asana S3 Bucket can be leaked via Presigned URL and OSINT

The attachment-creation websocket endpoint accepted a client-supplied S3 path and signed it server-side, so an attacker could obtain presigned URLs for arbitrary objects in the bucket. Combined with S3 keys gathered from public sources, this put Asana attachments at risk of disclosure.

jakubjn Follow

Originally disclosed on Bugcrowd

Bounty$2,500 High View original
  • Accepted in 49 days
  • Fixed in 49 days
  • Disclosed after 3 months

Summary by jakubjn

An S3 Bucket Misconfiguration allowed an attacker to set an arbitrary S3 Path and have it signed by the server. S3 Keys could be mined from online sources, putting a number of Asana Attachments at risk.

The vulnerability was found in the following websocket request:

{
  "msg": "mutation",
  "method": "/s3_attachment_create",
  "params": {
    "http_method": "post",
    "endpoint_data": {
      "global_id": "...",
      "domain": "...",
      "filesize": 1000,
      "s3_path": "S3_PATH",
      "__app_name": "Asana",
      "__session_id": "..."
    }
  },
  "id": "..."
}

Where "s3_path" was a parameter discovered in the JavaScript code. The original parameter: "key_suffix" was not vulnerable.

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

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. 5 min read.

What the report shows

Asana's web application exposes a websocket API, and one of its mutations, /s3_attachment_create, is used to create attachments backed by an S3 bucket. The researcher, jakubjn, found that this mutation accepted a parameter called s3_path which allowed an attacker to set an arbitrary S3 path and have the server sign it. The report describes this as an S3 bucket misconfiguration.

The vulnerable request looked like this:

JSON
{
  "msg": "mutation",
  "method": "/s3_attachment_create",
  "params": {
    "http_method": "post",
    "endpoint_data": {
      "global_id": "...",
      "domain": "...",
      "filesize": 1000,
      "s3_path": "S3_PATH",
      "__app_name": "Asana",
      "__session_id": "..."
    }
  },
  "id": "..."
}

The researcher discovered the s3_path parameter by reading the JavaScript code. The parameter that was originally present, key_suffix, was not vulnerable.

Because the server signed whatever path was supplied, an attacker could point the signature at a path of their choosing. The report states that S3 keys could be mined from online sources, which put a number of Asana attachments at risk. In other words, the presigned URL mechanism combined with keys gathered through OSINT (open source intelligence) could be used to reach user data stored in the bucket.

Root cause

The report describes an S3 bucket misconfiguration that let an attacker set an arbitrary S3 path and have it signed by the server. Instead of deriving the object key from server-side state (for example, the attachment record or the authenticated user's namespace), it took the s3_path value from the request and signed it. A presigned URL is only as safe as the key it is bound to, so signing an arbitrary key effectively hands the attacker a valid, time-limited credential for any object the signing identity can read or write.

The distinction matters: the signing service did what it was asked, but the application let the caller choose the target.

Impact

The report says S3 keys could be mined from online sources, putting a number of Asana attachments at risk. The report does not state whether the researcher actually retrieved any user data. It describes the risk rather than a confirmed mass exfiltration.

How this kind of bug works

Object storage services such as S3 authorise access either through credentials or through presigned URLs. A presigned URL embeds the signing identity, the object key, the HTTP method and an expiry, all covered by a signature. Anyone holding the URL can perform exactly that operation on exactly that key until it expires.

When an application generates presigned URLs on behalf of users, the security boundary is the key. If the key is taken from user input without validation, the user can request a signature for any object the application's identity is allowed to touch. Two things make this exploitable in practice:

  1. Key predictability. Object keys are often derived from user IDs, timestamps, filenames or UUIDs. If keys leak through search engines, public buckets, error messages, logs or third-party integrations, an attacker can enumerate them.
  2. Over-broad signing identity. If the role that signs URLs can read the whole bucket rather than a single prefix, one arbitrary-path signature exposes everything.

Defences work at both layers: constrain the key server-side, and constrain the signing identity with bucket policies and IAM conditions so that even a bad key cannot reach data outside the caller's scope.

How to test for it

  1. Map the upload and download flows. Use the application normally and watch for requests that return presigned URLs or accept storage paths. Websocket APIs, GraphQL mutations and JSON endpoints are common carriers.
  2. Read the client code. Search bundled JavaScript for parameter names related to keys and paths, such as key, path, prefix, suffix and filename. Compare older and newer parameter names; a replaced parameter may have been the vulnerable one.
  3. Send a modified path. Replace the path value with a key belonging to another object you control or can identify, and observe whether the server returns a signature for it. A positive result is a presigned URL whose signature validates against the path you supplied rather than the one the server should have chosen.
  4. Confirm the boundary. Fetch the signed URL and check whether it returns the target object. Test paths outside your own namespace, including traversal sequences and absolute keys.
  5. Check for false positives. A URL that is returned but fails signature validation is not exploitable. A path that is accepted but silently rewritten server-side is also not exploitable. Errors that merely echo your input back prove nothing; you need a working signature and a successful fetch.

How it is fixed

The standard fixes are:

  • Derive the object key entirely on the server from the authenticated user and the attachment record, and ignore any client-supplied path.
  • If a client-supplied suffix is genuinely needed, validate it strictly against an allowlist of characters and reject path separators and traversal sequences.
  • Scope the signing identity with IAM policies and bucket policies so it can only act on the prefix belonging to the requesting user.
  • Set short expiries on presigned URLs and bind them to the intended HTTP method.
  • Avoid predictable keys; use random identifiers so that leaked or guessed keys are harder to abuse.

Hunting notes

This class of bug tends to hide wherever an application brokers access to object storage: attachment uploads, avatar and document handling, export and report generation, backup features and any endpoint that returns a signed URL. Websocket and GraphQL APIs are good places to look because parameter names are less visible in normal traffic and developers may add fields without reviewing the signing path.

Recon signals include JavaScript bundles that reference storage SDKs, parameter names containing s3, bucket, key or path, and responses that contain signed query strings. Comparing parameter names across application versions can reveal a recently introduced field that bypasses older validation.

To make a report land, demonstrate the boundary crossing rather than the mere presence of a parameter: show a signed URL for an object you should not be able to reach, and show that fetching it succeeds. Keep the proof minimal and avoid touching other users' data beyond what is needed to confirm the issue.

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. 6 min read.

What happened, in plain words

Asana is a work management tool where teams create tasks, projects and files. When you attach a file to a task, Asana stores that file in Amazon S3, a cloud storage service. To let your browser upload or download the file, Asana's server creates a special link called a presigned URL. That link contains a signature, which is like a temporary pass: anyone holding it can perform one specific action on one specific file until the link expires.

The researcher, jakubjn, found that an S3 bucket misconfiguration let an attacker set an arbitrary S3 path and have it signed by the server. In other words, the server would sign whatever S3 path was supplied. The report calls this an S3 bucket misconfiguration.

The vulnerable request was sent over a websocket, a two-way connection between the browser and the server that stays open. The request looked like this:

JSON
{
  "msg": "mutation",
  "method": "/s3_attachment_create",
  "params": {
    "http_method": "post",
    "endpoint_data": {
      "global_id": "...",
      "domain": "...",
      "filesize": 1000,
      "s3_path": "S3_PATH",
      "__app_name": "Asana",
      "__session_id": "..."
    }
  },
  "id": "..."
}

Line by line:

  • "msg": "mutation" tells the server this is a change request, not a read.
  • "method": "/s3_attachment_create" names the operation: create an S3 attachment.
  • "http_method": "post" says the eventual upload will use the HTTP POST method.
  • "global_id", "domain" and "filesize" describe the attachment and where it belongs.
  • "s3_path": "S3_PATH" is the field the researcher could control. This is the path in the S3 bucket that the server would sign.
  • "__app_name" and "__session_id" identify the application and the user's session.
  • "id" is a request identifier.

The researcher found the s3_path parameter by reading Asana's JavaScript code, which is the code your browser downloads and runs. A parameter called key_suffix was also present but was not vulnerable.

Because the server signed whatever path was supplied, an attacker could point the signature at a path of their choosing. The report states that S3 keys could be mined from online sources. An S3 key is the name of a file inside the bucket. If those names appear in public places, such as search engines or third-party integrations, an attacker can collect them. The report says S3 keys could be mined from online sources, putting a number of Asana attachments at risk.

It does not say whether the researcher actually retrieved any user data.

In general, how this kind of bug works

Object storage services such as S3 authorise access either through credentials or through presigned URLs. A presigned URL embeds the signing identity, the object key, the HTTP method and an expiry, all covered by a signature. Anyone holding the URL can perform exactly that operation on exactly that key until it expires.

When an application generates presigned URLs on behalf of users, the security boundary is the key. If the key is taken from user input without validation, the user can request a signature for any object the application's identity is allowed to touch. Two things make this exploitable in practice:

  1. Key predictability. Object keys are often derived from user IDs, timestamps, filenames or UUIDs. If keys leak through search engines, public buckets, error messages, logs or third-party integrations, an attacker can enumerate them.
  2. Over-broad signing identity. If the role that signs URLs can read the whole bucket rather than a single prefix, one arbitrary-path signature exposes everything.

Defences work at both layers: constrain the key server-side, and constrain the signing identity with bucket policies and IAM conditions so that even a bad key cannot reach data outside the caller's scope.

How to test for it

  1. Map the upload and download flows. Use the application normally and watch for requests that return presigned URLs or accept storage paths. Websocket APIs, GraphQL mutations and JSON endpoints are common carriers.
  2. Read the client code. Search bundled JavaScript for parameter names related to keys and paths, such as key, path, prefix, suffix and filename. Compare older and newer parameter names; a replaced parameter may have been the vulnerable one.
  3. Send a modified path. Replace the path value with a key belonging to another object you control or can identify, and observe whether the server returns a signature for it. A positive result is a presigned URL whose signature validates against the path you supplied rather than the one the server should have chosen.
  4. Confirm the boundary. Fetch the signed URL and check whether it returns the target object. Test paths outside your own namespace, including traversal sequences and absolute keys.
  5. Check for false positives. A URL that is returned but fails signature validation is not exploitable. A path that is accepted but silently rewritten server-side is also not exploitable. Errors that merely echo your input back prove nothing; you need a working signature and a successful fetch.

How it is fixed

The standard fixes are:

  • Derive the object key entirely on the server from the authenticated user and the attachment record, and ignore any client-supplied path.
  • If a client-supplied suffix is genuinely needed, validate it strictly against an allowlist of characters and reject path separators and traversal sequences.
  • Scope the signing identity with IAM policies and bucket policies so it can only act on the prefix belonging to the requesting user.
  • Set short expiries on presigned URLs and bind them to the intended HTTP method.
  • Avoid predictable keys; use random identifiers so that leaked or guessed keys are harder to abuse.

Hunting notes

This class of bug tends to hide wherever an application brokers access to object storage: attachment uploads, avatar and document handling, export and report generation, backup features and any endpoint that returns a signed URL. Websocket and GraphQL APIs are good places to look because parameter names are less visible in normal traffic and developers may add fields without reviewing the signing path.

Recon signals include JavaScript bundles that reference storage SDKs, parameter names containing s3, bucket, key or path, and responses that contain signed query strings. Comparing parameter names across application versions can reveal a recently introduced field that bypasses older validation.

To make a report land, demonstrate the boundary crossing rather than the mere presence of a parameter: show a signed URL for an object you should not be able to reach, and show that fetching it succeeds. Keep the proof minimal and avoid touching other users' data beyond what is needed to confirm the issue.

Glossary

  • S3: Amazon Simple Storage Service, a cloud service for storing files as objects inside containers called buckets.
  • Bucket: a container in S3 that holds objects.
  • Object key: the name that identifies a file inside an S3 bucket.
  • Presigned URL: a link containing a signature that grants temporary permission to perform one action on one object.
  • Signature: a cryptographic value that proves the link was issued by the service and has not been altered.
  • Websocket: a persistent two-way connection between a browser and a server, used for real-time or API-style messages.
  • Mutation: an API operation that changes data, as opposed to one that only reads it.
  • Parameter: a named value sent in a request, such as s3_path.
  • JavaScript: the programming language that browsers run; applications ship it to the browser as code files.
  • OSINT: open source intelligence, information gathered from publicly available sources.
  • IAM: Identity and Access Management, the system that defines what a cloud identity is allowed to do.
  • Bucket policy: rules attached to an S3 bucket that control who can access which objects.
  • Prefix: the leading part of an object key, used to group objects, similar to a folder path.
  • Traversal sequence: characters such as ../ that try to move outside the intended location.
  • Expiry: the time after which a presigned URL stops working.
  • False positive: a result that looks like a vulnerability but is not actually exploitable.

More from Asana

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.