Skip to content
Leaked secrets Disclosed report Beginner

Asana Desktop Application Includes Personal Access Token

lauritz Follow

Originally disclosed on Bugcrowd

Bounty$6,100 Critical View original
  • Accepted in 9 hours
  • Fixed in 28 hours
  • Disclosed after 9 hours

Summary by Asana

@lauritz discovered sensitive credentials bundled in our Asana Desktop for Mac application. Within hours of @lauritz's report, we revoked and rotated the credentials on our end. Following that we determined the root cause and in the subsequent days deployed mitigations and improved our build process to prevent similar issues in the future. Thanks @lauritz!

Summary by lauritz

Please find a detailed write-up on my blog: https://security.lauritz-holtmann.de/advisories/asana-desktop-credential-disclosure/.

The original report as published on Bugcrowd, by Asana. 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

The target is the Asana Desktop application for Mac. The researcher, lauritz, found sensitive credentials bundled inside the shipped application. The report itself is short: the detailed technical write-up lives on the researcher's blog, and the platform entry only records the summary from both sides.

Asana's summary describes the sequence as follows:

  1. lauritz discovered sensitive credentials bundled in the Asana Desktop for Mac application.
  2. Within hours of the report, Asana revoked and rotated the credentials on their end.
  3. Asana then determined the root cause.
  4. In the subsequent days they deployed mitigations and improved their build process to prevent similar issues in the future.

The platform records the severity as critical and the bounty as 6100.00 USD. The report was disclosed on 2022-06-17. No CVSS vector or weakness classification is given, and the report does not name the specific credential type, the endpoints it unlocked, or the exact build artefact in which it was found.

The researcher's own summary is limited to a pointer to the external advisory and a contact note, so the discovery method, the tooling used and the exact strings recovered are not part of this text.

Root cause

Asana determined the root cause but the report does not describe it. Desktop applications ship as archives of files, and anything committed into that archive, whether a configuration file, a resource, a plist entry or a compiled-in string, is readable by anyone who downloads the app. Signing and notarisation protect integrity, not confidentiality: they prove who built the bundle, not that its contents are safe to publish.

Asana's summary says they improved their build process to prevent similar issues in the future.

Impact

The platform records the severity as critical, and the bounty reflects that. A credential shipped to every user of a desktop client is effectively public: any person who installs the app can extract it. The realistic range for a leaked service credential is reading or modifying data the credential's owner can reach, or interacting with internal services that trust it. Asana revoked and rotated the credentials within hours of the report, so the leaked value stopped working quickly.

How this kind of bug works

Secrets leak into client artefacts because the boundary between build-time and run-time material is easy to blur. A developer needs a token to fetch a private dependency, upload symbols, talk to a crash-reporting service or call an internal API during development, and the simplest place to put it is a config file that is already part of the project. Once that file is inside the bundle, the secret travels with every copy of the software.

Desktop and mobile applications are especially exposed because the whole package is downloadable without authentication. Unlike a server, where a leaked key sits behind a network boundary, a client bundle can be fetched, unpacked and searched offline by anyone. Minification, compilation and obfuscation raise the effort but do not remove the secret: strings remain strings, and tooling exists to pull them out of binaries and resource files.

The defences are process-based rather than cryptographic. Keep secrets out of the repository and out of build inputs that get packaged; inject them at build time from a secret store and only into the build steps that need them; scope any credential that must ship to the minimum privilege and rotate it regularly; and add automated scanning of release artefacts for credential patterns before publication.

How to test for it

This class of bug is found by inspecting the distributed artefact, not by sending requests to a web endpoint.

  1. Obtain the client package for each platform the vendor ships, from the official download location, so you are testing exactly what users receive.
  2. Unpack it. On macOS, application bundles are directories; on Windows and Linux, installers and archives can be extracted with standard tools.
  3. Enumerate the contents: configuration files, plists, JSON and YAML resources, JavaScript bundles, and the main executable and its libraries.
  4. Search for credential-shaped strings: long random-looking tokens, base64 blobs, keys with recognisable prefixes, connection strings, and hostnames of internal or third-party services.
  5. For each candidate, determine what it is and whether it is live, using the least intrusive check that confirms validity. Do not use the credential to access data that is not yours.
  6. Record where in the bundle the value sits and how a user could reach it, so the report is reproducible.

A positive result is a value that is clearly a credential, is present in the shipped package, and is accepted by the service it belongs to. Common false positives are public API keys that are designed to be embedded (map tile keys, analytics write keys with strict origin restrictions), placeholder or example values, expired tokens, and strings that merely look random, such as build hashes or UUIDs. Verify before reporting.

How it is fixed

The standard response has three parts. First, revoke and rotate the exposed credential immediately, so the leaked copy stops working. Second, remove the secret from the source and from the build inputs, and inject it at build time from a secret manager only into the steps that require it. Third, add a check to the release pipeline that scans the packaged artefact for credential patterns and fails the build when one is found, so the same mistake cannot ship again. Scoping the credential tightly limits the damage if a future leak occurs.

Hunting notes

Client-side secret exposure hides wherever build and runtime concerns meet: desktop and mobile bundles, container images published to public registries, browser extensions, firmware, and single-page application bundles. Recon signals include a vendor that ships many platform-specific builds, release artefacts hosted on public CDNs, and applications that integrate third-party services during development. When you find a candidate, show impact concretely: identify the credential type, demonstrate that it is live with a minimal, non-destructive check, and describe what access it grants. Programs accept these reports when the credential is clearly sensitive and clearly shipped; they reject them when the value turns out to be a public key or an expired token.

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

What happened, in plain words

Asana makes a popular work management tool, and it offers a desktop application for Mac computers. When you install a desktop app, you download a package of files that runs on your own machine. Everything inside that package can be opened and read by anyone who has the app, because the files sit on their computer.

The researcher, lauritz, looked inside the Asana Desktop for Mac application and found sensitive credentials bundled in it. A credential here means a secret string, like a password or a key, that a program uses to prove to another service that it is allowed to do something. Think of it as a key left inside a parcel: whoever receives the parcel can use the key.

Asana's own summary describes what happened next:

  1. lauritz discovered sensitive credentials bundled in the Asana Desktop for Mac application.
  2. Within hours of the report, Asana revoked and rotated the credentials on their end.
  3. Asana then determined the root cause.
  4. In the subsequent days they deployed mitigations and improved their build process to prevent similar issues in the future.

Revoking and rotating means the old secret is switched off and replaced with a new one, so the copy that leaked stops working. The platform records the severity as critical and the bounty as 6100.00 USD, and the report was disclosed on 2022-06-17. The report does not name the specific credential type, the services it unlocked, or the exact file in which it was found. The researcher's own summary only points to a detailed write-up on his blog, so the discovery method and the exact strings recovered are not part of this text.

Why this matters

A secret that ships to every user of a desktop client is effectively public. Anyone who installs the app can extract it. What an attacker could do with it depends entirely on what the credential authorises, which the report does not state. In general, a leaked service credential can allow reading or changing data the credential's owner can reach, or talking to internal services that trust it. Asana revoked and rotated the credentials within hours, so the leaked value stopped working quickly.

In general, how this kind of bug works

Secrets leak into client software because the line between what is needed to build the software and what is needed to run it is easy to blur. A developer needs a token to download a private library, upload debugging information, talk to a crash-reporting service or call an internal API during development, and the simplest place to put it is a configuration file that is already part of the project. Once that file is inside the package, the secret travels with every copy of the software.

Desktop and mobile applications are especially exposed because the whole package is downloadable without logging in. Unlike a server, where a leaked key sits behind a network boundary, a client package can be fetched, unpacked and searched offline by anyone. Minification, compilation and obfuscation raise the effort but do not remove the secret: strings remain strings, and tools exist to pull them out of binaries and resource files.

Signing and notarisation, the checks that prove who built an app, protect integrity, not confidentiality. They prove who built the package, not that its contents are safe to publish.

The defences are process-based rather than cryptographic:

  • Keep secrets out of the repository and out of build inputs that get packaged.
  • Inject them at build time from a secret store, and only into the build steps that need them.
  • Give any credential that must ship the minimum privilege it needs, and rotate it regularly.
  • Add automated scanning of release artefacts for credential patterns before publication.

Asana's summary says they improved their build process to prevent similar issues in the future.

In general, how to test for it

This class of bug is found by inspecting the distributed package, not by sending requests to a web endpoint. A request, in this context, is a message a program sends to a server asking it to do something; here the problem is not in a message but in a file sitting on your own computer.

  1. Obtain the client package for each platform the vendor ships, from the official download location, so you are testing exactly what users receive.
  2. Unpack it. On macOS, application bundles are directories; on Windows and Linux, installers and archives can be extracted with standard tools.
  3. Enumerate the contents: configuration files, plists, JSON and YAML resources, JavaScript bundles, and the main executable and its libraries.
  4. Search for credential-shaped strings: long random-looking tokens, base64 blobs, keys with recognisable prefixes, connection strings, and hostnames of internal or third-party services.
  5. For each candidate, determine what it is and whether it is live, using the least intrusive check that confirms validity. Do not use the credential to access data that is not yours.
  6. Record where in the package the value sits and how a user could reach it, so the report is reproducible.

A positive result is a value that is clearly a credential, is present in the shipped package, and is accepted by the service it belongs to. Common false positives are public API keys that are designed to be embedded (map tile keys, analytics write keys with strict origin restrictions), placeholder or example values, expired tokens, and strings that merely look random, such as build hashes or UUIDs. Verify before reporting.

In general, how it is fixed

The standard response has three parts. First, revoke and rotate the exposed credential immediately, so the leaked copy stops working. Second, remove the secret from the source and from the build inputs, and inject it at build time from a secret manager only into the steps that require it. Third, add a check to the release pipeline that scans the packaged artefact for credential patterns and fails the build when one is found, so the same mistake cannot ship again. Scoping the credential tightly limits the damage if a future leak occurs.

In general, where to look

Client-side secret exposure hides wherever build and runtime concerns meet: desktop and mobile packages, container images published to public registries, browser extensions, firmware, and single-page application bundles. Signals worth watching include a vendor that ships many platform-specific builds, release artefacts hosted on public content delivery networks, and applications that integrate third-party services during development. When you find a candidate, show impact concretely: identify the credential type, demonstrate that it is live with a minimal, non-destructive check, and describe what access it grants. Programs accept these reports when the credential is clearly sensitive and clearly shipped; they reject them when the value turns out to be a public key or an expired token.

Glossary

  • Desktop application: a program installed and run on your own computer, rather than used through a website.
  • Application bundle: the folder or archive of files that makes up an installed app on macOS.
  • Credential: a secret string, such as a password or key, that a program uses to prove it is allowed to access a service.
  • Token: a credential, usually a long random-looking string, used by software instead of a password.
  • Revoke: switch off a credential so it no longer works.
  • Rotate: replace a credential with a new one.
  • Root cause: the underlying reason a problem happened, as opposed to its visible symptom.
  • Mitigation: a change that reduces the risk or stops the problem recurring.
  • Build process: the automated steps that turn source code into the package users download.
  • Build-time vs run-time: build-time is when the software is assembled; run-time is when it runs on a user's machine.
  • Artefact: a file produced by the build, such as the installer or app package.
  • Severity: a rating of how serious a finding is, here recorded as critical.
  • Bounty: a payment a company makes to a researcher who reports a valid security issue.
  • CVSS: a standard scoring system for the severity of vulnerabilities; the report gives no score.
  • Signing and notarisation: checks that prove who built an app and that it has not been tampered with; they do not keep its contents secret.
  • Obfuscation: making code harder for humans to read, without removing the information inside it.
  • Minification: shortening code by removing spaces and renaming things, which does not hide secrets.
  • Base64: an encoding that turns binary data into plain text characters; it is not encryption.
  • Plist: a macOS configuration file format.
  • Executable: the main program file that the computer runs.
  • API key: a credential that identifies a program to a service.
  • False positive: a finding that looks like a problem but is not one.
  • UUID: a long identifier that looks random but is not a secret.
  • Secret manager: a service that stores credentials securely and hands them out only when needed.
  • Release pipeline: the automated sequence that builds, checks and publishes software.
  • Container image: a packaged, runnable bundle of software and its dependencies.
  • Firmware: software built into a device.
  • Single-page application: a website that loads its code once and updates the page without full reloads.
  • CDN (content delivery network): a service that hosts and serves files from many locations.

More by lauritz

View all

7 more disclosed reports, best first.

More from Asana

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.