Cross-account XSS on app.basecamp.com: oEmbed option injection chained through Turbo defeats the CSP nonce
The embed display page rendered provider-supplied HTML on the main application host because its host check compared a registrable domain with a full host name and could never match. An attacker with an account could craft an embed whose options injected script, and a signed-in victim in another account who opened a link ran that script in their own session.
deivizzzz Follow with sergioatenor
Originally disclosed on HackerOne
- Triaged in 7 hours
- Fixed in 7 hours
- Paid in 7 hours
- Disclosed after 58 days
Summary by the program
Summary
Basecamp's embed display page renders the HTML an embed provider returns. It needs no sign-in, and because it renders that HTML as is, it should answer only on a separate, cookieless embeds host. Its host check compared the request's registrable domain (basecamp.com) with the application's full host name (3.basecamp.com, or app.basecamp.com once we added that name). Those could never be equal, so the check never blocked a request on either application host, before or after the move to app.basecamp.com. Our earlier summary blamed that domain migration; that was wrong.
The attack also needed markup an attacker could shape. deivizzzz supplied it through one provider's oEmbed response, which copied options from the pasted URL into its embed code.
Impact
An attacker with their own Basecamp account could create such an embed and send a link. A signed-in user in another account who opened it ran the attacker's script on app.basecamp.com, in their own session. In the researcher's demonstration, the script read the victim's CSRF token and private profile and wrote to the profile as the victim.
We rated it High, CVSS 8.7 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N), with Privileges Required Low because the attack needs an account of the attacker's own to create the embed.
Fix
The check now fails closed: the page renders only for the embeds host. That was live on our main production servers at 04:51 UTC on 31 August 2026, under seven hours after the report, and on a smaller pool of production servers that serves some accounts at 17:48 UTC on 1 September. A browser that opens the page on app.basecamp.com or 3.basecamp.com now gets a 403.
Separately, that provider's embeds, stored ones included, now render as at most a player frame built from the media's id, so options in a pasted URL no longer reach the embed HTML.
Timeline
- 2026-08-30 22:00 UTC: Report submitted
- 2026-08-31 04:51 UTC: Fix live on the main production servers
- 2026-08-31 05:15 UTC: Triaged and resolved
- 2026-09-01 17:48 UTC: Fix live on the smaller pool
- 2026-10-27: Provider embed change deployed
- 2026-10-28: Limited disclosure
Thanks to deivizzzz for a thorough, well-documented report.
Context
Basecamp's embed display page renders the HTML that an embed provider returns. It requires no sign-in, and because it renders provider HTML as is, it should answer only on a separate, cookieless embeds host. The application itself lives on app.basecamp.com (and previously on 3.basecamp.com).
The bug reported by deivizzzz is a cross-account XSS: an attacker with their own Basecamp account could create a crafted embed and send a link to it. A signed-in user in another account who opened that link ran the attacker's script on app.basecamp.com, inside the victim's own session.
Setup
The attack needs two things:
- An attacker-controlled Basecamp account, used to create the embed. This is why the program rated Privileges Required as Low: the attacker needs an account of their own, nothing more.
- A victim who is signed in to a different Basecamp account and who opens the attacker's link.
No special tooling is described. The researcher's demonstration used a provider whose oEmbed response copied options from the pasted URL into its embed code, which gave the attacker control over markup in the rendered embed.
Finding it
The embed display page renders HTML returned by embed providers without sign-in. That design only holds up if the page is served from a separate, cookieless host. The host check that was supposed to enforce this compared the request's registrable domain (basecamp.com) with the application's full host name (3.basecamp.com, or app.basecamp.com after that name was added). Those two values can never be equal, so the check never blocked a request on either application host, before or after the move to app.basecamp.com.
The program's earlier summary blamed the domain migration for the exposure. That was wrong: the check was broken on both hosts.
The second ingredient was markup the attacker could shape. deivizzzz supplied it through one provider's oEmbed response, which copied options from the pasted URL into its embed code. That turned a benign embed into attacker-controlled HTML rendered on the application origin.
Exploitation
Step 1: create the crafted embed
The attacker, using their own Basecamp account, creates an embed through the provider whose oEmbed response reflects options from the pasted URL into the embed code. The report does not include the exact URL or option values used.
Step 2: send the link
The attacker sends the link to the embed to a signed-in user in another account.
Step 3: the victim opens it
The victim opens the link. The embed display page renders the provider's HTML as is, on app.basecamp.com, in the victim's session. The attacker's script executes there.
Step 4: actions as the victim
In the researcher's demonstration, the script read the victim's CSRF token and private profile, and wrote to the profile as the victim.
Root cause
The host check on the embed display page was logically broken. It compared the request's registrable domain (basecamp.com) against the application's full host name (3.basecamp.com or app.basecamp.com). A registrable domain and a full host name are different kinds of value, so the comparison could never match and the check never blocked anything on the application hosts. The page therefore answered on the application origin, where the victim's cookies and session apply, instead of only on a separate, cookieless embeds host.
On top of that, one provider's oEmbed response copied options from the pasted URL into its embed HTML, so an attacker could shape the markup that the page rendered. The report does not describe how the CSP nonce was defeated; the program's summary focuses on the broken host check and the provider's option reflection.
Impact
An attacker with their own Basecamp account could create such an embed and send a link. A signed-in user in another account who opened it ran the attacker's script on app.basecamp.com, in their own session.
The program rated the issue High, CVSS 8.7 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N), with Privileges Required Low because the attack needs an account of the attacker's own to create the embed.
Fix
The host check now fails closed: the page renders only for the embeds host. A browser that opens the page on app.basecamp.com or 3.basecamp.com now gets a 403. That fix was live on the main production servers at 04:51 UTC on 31 August 2026, under seven hours after the report, and on a smaller pool of production servers that serves some accounts at 17:48 UTC on 1 September.
Separately, that provider's embeds, stored ones included, now render as at most a player frame built from the media's id, so options in a pasted URL no longer reach the embed HTML. That change was deployed on 27 October 2026.
Timeline:
| Time | Event |
|---|---|
| 2026-08-30 22:00 UTC | Report submitted |
| 2026-08-31 04:51 UTC | Fix live on the main production servers |
| 2026-08-31 05:15 UTC | Triaged and resolved |
| 2026-09-01 17:48 UTC | Fix live on the smaller pool |
| 2026-10-27 | Provider embed change deployed |
| 2026-10-28 | Limited disclosure |
Variants to test
- Host checks that compare mismatched value types. Look for checks that compare a registrable domain against a full host name, or a suffix against an exact string. A positive result is a page that should be restricted to a separate host but still answers on the application host.
- Embed and preview pages on the application origin. Any feature that renders third-party HTML, such as oEmbed, link previews or rich embeds, is worth checking for whether it is served from a cookieless host or from the main application. A positive result is provider-controlled markup rendering with the victim's session cookies in scope.
- oEmbed option reflection. Test providers whose embed code copies query or URL options into the returned HTML. A positive result is attacker-chosen markup appearing in the embed output.
- Stored embeds. Check whether previously stored embeds still render the old, option-driven markup after a fix, since the report notes stored embeds were also changed.
Hunting notes
This kind of bug tends to hide where third-party content is rendered on the main application origin: embed display pages, oEmbed handlers, previews and players. During recon, the signals are pages that render provider HTML without sign-in, hosts that look like they were meant to be separate but resolve to the application, and providers whose embed code reflects URL options.
The researcher showed enough impact by demonstrating concrete actions in the victim's session: reading the CSRF token and private profile, and writing to the profile as the victim. The researcher demonstrated concrete actions in the victim's session, and the program rated the issue High.
What happened, in plain words
Basecamp is a project management and team communication product. People use it through a website, and each person signs in with their own account. Many different companies and teams share the same Basecamp servers, but each team's data is meant to stay separate from every other team's data.
Basecamp lets you paste a link to something like a video, and it will show a small preview of that video inside the page. This is called an embed. To build the preview, Basecamp asks the website that hosts the video (the embed provider) for a small piece of HTML, which is the code that describes what the preview should look like. Basecamp then puts that HTML into its own page.
A security researcher called deivizzzz found that this preview page had two problems that, combined, let one Basecamp user run their own code inside another user's signed-in session. In other words, an attacker with an ordinary Basecamp account could send a link to a victim in a different company, and when the victim clicked it, the attacker's code would run as if it were the victim. That class of bug is called cross-site scripting, or XSS.
The program (the Basecamp security team) rated it High severity, with a CVSS score of 8.7. They fixed the main problem within about seven hours of the report.
This article walks through what the researcher found, why it worked, and how it was fixed, explaining every technical idea from scratch along the way.
Background concepts
Before the details, here are the ideas you need. Each one is explained as if you have never heard of it.
What a cookie is
When you sign in to a website, the website's server needs a way to remember that you are signed in on the next page you load. It does this by giving your browser a small piece of data called a cookie. Your browser stores the cookie and sends it back to the server with every request to that website. The cookie is like a wristband you get at an event: the staff check it at every door, and as long as you wear it, you are treated as a guest who has already been let in.
If someone else can get your browser to send your cookie to the right server while running their own code, that code acts with your identity. That is the heart of many web attacks.
What a session is
A session is the period during which the server remembers who you are, based on your cookie. When you sign in, the server starts a session for you. Every request that carries your cookie is treated as part of that session. If an attacker's code runs inside your session, it can do anything you could do on the site.
What a host and a domain are
A host (or host name) is the specific name of a server on the internet, like app.basecamp.com. A domain is the broader name that a host belongs to. The registrable domain is the part you would buy from a domain registrar, like basecamp.com. So app.basecamp.com and 3.basecamp.com are two different hosts, but they both belong to the registrable domain basecamp.com.
Think of it like a building address. basecamp.com is the street, and app.basecamp.com is a specific flat on that street. A check that compares a street name to a flat number will never match, because they are different kinds of thing.
What HTML is
HTML is the language that describes the structure of a web page: headings, paragraphs, images, links, and so on. When your browser receives HTML, it reads it and draws the page. If an attacker can put their own HTML into a page, they can also put in a <script> tag, which tells the browser to run JavaScript code.
What JavaScript and XSS are
JavaScript is the programming language that runs inside your browser. It can read the page, change it, and send requests to the server. Cross-site scripting (XSS) is when an attacker manages to get their own JavaScript to run inside someone else's browser, on a website the victim trusts. The word "cross-site" is a bit historical: the important part is that the code runs in the victim's session, on the victim's site, with the victim's cookies.
A simple comparison: imagine a noticeboard in an office where anyone can pin a note. If the office copies whatever is pinned onto official letterhead and mails it out, then anyone who can pin a note can send official-looking mail. XSS is the web version of that.
What an API and oEmbed are
An API (application programming interface) is a way for one piece of software to ask another for data or an action, usually over the internet. You can think of it as a waiter: you tell the waiter what you want, and the kitchen (the other software) prepares it and sends it back.
oEmbed is a small, standard API used by websites to ask an embed provider (like a video site) for the HTML needed to show a preview of a link. You give oEmbed a URL, and it gives you back a snippet of HTML. Basecamp uses oEmbed to build its embed previews.
What a CSRF token is
A CSRF token (Cross-Site Request Forgery token) is a secret value that a website puts into its pages and expects to see back when the browser submits a form or makes a change. It is there to prove that the request came from the site's own page, not from some other site trying to trick the user. If an attacker can read the CSRF token, they can forge requests that the server will accept as legitimate.
What a CSP nonce is
A Content Security Policy (CSP) is a set of rules a website sends to the browser saying which scripts are allowed to run. A common rule is that only scripts carrying a specific one-time code, called a nonce (number used once), may run. The nonce is different on every page load, so an attacker who injects a script cannot guess it. If an attacker's script runs despite the CSP, the nonce protection has somehow been bypassed.
What Turbo is
Turbo is a JavaScript library used by many web applications to make page navigation feel faster. Instead of loading a whole new page from the server, Turbo fetches the new page's HTML and swaps it into the current page. This can have security side effects, because scripts and page state that would normally be reset on a full page load may persist or be handled differently.
What a 403 is
HTTP status codes are numbers a server sends back to tell the browser what happened. 403 means "Forbidden": the server understood the request but refuses to fulfil it. You will see this in the fix section.
The setup
The attack needed two things:
- An attacker-controlled Basecamp account. The attacker uses their own ordinary account to create the crafted embed. This is why the program rated Privileges Required as Low: the attacker needs an account of their own, nothing more. They do not need to be an administrator or have any special access.
- A victim who is signed in to a different Basecamp account and who opens the attacker's link. The victim does not need to do anything unusual beyond clicking a link.
No special tooling is described in the report. The researcher's demonstration used a provider whose oEmbed response copied options from the pasted URL into its embed code. That gave the attacker control over the markup in the rendered embed.
Finding it
The embed display page
Basecamp has a page that displays embeds. It renders the HTML that an embed provider returns. It requires no sign-in, which makes sense: a preview page should be viewable by anyone who has the link.
Because it renders provider HTML as is, it should answer only on a separate, cookieless embeds host. "Cookieless" means a host that does not receive the user's Basecamp cookies, so even if something goes wrong with the HTML, the attacker's code cannot act as the signed-in user. The application itself lives on app.basecamp.com (and previously on 3.basecamp.com).
The broken host check
The host check that was supposed to enforce this separation compared the request's registrable domain (basecamp.com) with the application's full host name (3.basecamp.com, or app.basecamp.com after that name was added). Those two values can never be equal, so the check never blocked a request on either application host, before or after the move to app.basecamp.com.
To put it plainly: the check was asking "is the street name the same as this flat number?" The answer is always no, so the check always let the request through. It was not a case of the check being bypassed cleverly; it was simply comparing two things that could never match.
The program's earlier summary blamed the domain migration for the exposure. That was wrong: the check was broken on both hosts.
The second ingredient: attacker-shaped markup
The second ingredient was markup the attacker could shape. deivizzzz supplied it through one provider's oEmbed response, which copied options from the pasted URL into its embed code. That turned a benign embed into attacker-controlled HTML rendered on the application origin.
"Origin" here means the combination of scheme, host and port that the browser uses to decide what a page is allowed to access. If the embed page is served from app.basecamp.com, it shares an origin with the application, so the victim's cookies and session apply to it.
Exploitation
Step 1: create the crafted embed
The attacker, using their own Basecamp account, creates an embed through the provider whose oEmbed response reflects options from the pasted URL into the embed code. The report does not include the exact URL or option values used.
Why this step matters: the attacker needs a way to get their own HTML into the page that Basecamp will render. By choosing a provider that copies URL options into its embed HTML, the attacker can put their chosen markup into the embed without needing to break into anything.
Step 2: send the link
The attacker sends the link to the embed to a signed-in user in another account.
Why this step matters: the attack only works if the victim is signed in to Basecamp when they open the link, because the whole point is to run code inside the victim's session.
Step 3: the victim opens it
The victim opens the link. The embed display page renders the provider's HTML as is, on app.basecamp.com, in the victim's session. The attacker's script executes there.
Why this step matters: because the broken host check let the embed page answer on app.basecamp.com, the page is on the same origin as the application. The victim's cookies are sent, the session is active, and the attacker's script runs with the victim's identity.
Step 4: actions as the victim
In the researcher's demonstration, the script read the victim's CSRF token and private profile, and wrote to the profile as the victim.
Why this step matters: reading the CSRF token means the attacker can forge requests that the server will accept. Reading the private profile means the attacker can see data the victim expected to keep private. Writing to the profile means the attacker can change the victim's data. Together, these show real impact, not just a harmless alert box.
Root cause
The host check on the embed display page was logically broken. It compared the request's registrable domain (basecamp.com) against the application's full host name (3.basecamp.com or app.basecamp.com). A registrable domain and a full host name are different kinds of value, so the comparison could never match and the check never blocked anything on the application hosts. The page therefore answered on the application origin, where the victim's cookies and session apply, instead of only on a separate, cookieless embeds host.
On top of that, one provider's oEmbed response copied options from the pasted URL into its embed HTML, so an attacker could shape the markup that the page rendered. The report does not describe how the CSP nonce was defeated; the program's summary focuses on the broken host check and the provider's option reflection.
Impact
An attacker with their own Basecamp account could create such an embed and send a link. A signed-in user in another account who opened it ran the attacker's script on app.basecamp.com, in their own session.
The program rated the issue High, CVSS 8.7 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N), with Privileges Required Low because the attack needs an account of the attacker's own to create the embed.
What the CVSS string means
CVSS is a standard way of scoring how serious a vulnerability is. The string in brackets is the breakdown:
| Part | Meaning |
|---|---|
AV:N |
Attack Vector: Network. The attacker can reach the target over the internet. |
AC:L |
Attack Complexity: Low. No special conditions are needed. |
PR:L |
Privileges Required: Low. The attacker needs an ordinary account. |
UI:R |
User Interaction: Required. The victim has to click a link. |
S:C |
Scope: Changed. The impact spreads beyond the vulnerable component. |
C:H |
Confidentiality: High. Private data can be read. |
I:H |
Integrity: High. Data can be changed. |
A:N |
Availability: None. The service stays up. |
Fix
The host check now fails closed: the page renders only for the embeds host. "Fails closed" means that if the check cannot confirm the request is on the allowed host, it refuses. A browser that opens the page on app.basecamp.com or 3.basecamp.com now gets a 403.
That fix was live on the main production servers at 04:51 UTC on 31 August 2026, under seven hours after the report, and on a smaller pool of production servers that serves some accounts at 17:48 UTC on 1 September.
Separately, that provider's embeds, stored ones included, now render as at most a player frame built from the media's id, so options in a pasted URL no longer reach the embed HTML. That change was deployed on 27 October 2026.
The host check stops the embed page from answering on the application origin, and the provider change removes the ability to shape the markup in the first place.
Timeline
| Time | Event |
|---|---|
| 2026-08-30 22:00 UTC | Report submitted |
| 2026-08-31 04:51 UTC | Fix live on the main production servers |
| 2026-08-31 05:15 UTC | Triaged and resolved |
| 2026-09-01 17:48 UTC | Fix live on the smaller pool |
| 2026-10-27 | Provider embed change deployed |
| 2026-10-28 | Limited disclosure |
Variants to test
If you are learning to hunt for bugs like this, here are the patterns to look for. Each one is a variation on the same theme: third-party content rendered on the main application origin.
- Host checks that compare mismatched value types. Look for checks that compare a registrable domain against a full host name, or a suffix against an exact string. A positive result is a page that should be restricted to a separate host but still answers on the application host. In plain words: look for code that asks "is this street the same as this flat number?"
- Embed and preview pages on the application origin. Any feature that renders third-party HTML, such as oEmbed, link previews or rich embeds, is worth checking for whether it is served from a cookieless host or from the main application. A positive result is provider-controlled markup rendering with the victim's session cookies in scope.
- oEmbed option reflection. Test providers whose embed code copies query or URL options into the returned HTML. A positive result is attacker-chosen markup appearing in the embed output. "Reflection" means the input comes back out in the output, like an echo.
- Stored embeds. Check whether previously stored embeds still render the old, option-driven markup after a fix, since the report notes stored embeds were also changed. A stored embed is one that was saved earlier and is shown again later, so a fix that only covers new embeds would leave old ones dangerous.
Hunting notes
This kind of bug tends to hide where third-party content is rendered on the main application origin: embed display pages, oEmbed handlers, previews and players. During recon (the early phase of looking around a target), the signals are pages that render provider HTML without sign-in, hosts that look like they were meant to be separate but resolve to the application, and providers whose embed code reflects URL options.
The researcher showed enough impact by demonstrating concrete actions in the victim's session: reading the CSRF token and private profile, and writing to the profile as the victim. The researcher demonstrated concrete actions in the victim's session, and the program rated the issue High. In other words, it is not enough to show that you can make a page display your text; you have to show that you can do something meaningful with the victim's identity.
Glossary
- API: A way for one piece of software to ask another for data or an action, usually over the internet.
- Cookie: A small piece of data a website stores in your browser so it can remember who you are between requests.
- Session: The period during which a server remembers who you are, based on your cookie.
- Host: The specific name of a server on the internet, like
app.basecamp.com. - Domain: The broader name a host belongs to, like
basecamp.com. - Registrable domain: The part of a domain you would buy from a registrar, like
basecamp.com. - HTML: The language that describes the structure of a web page.
- JavaScript: The programming language that runs inside your browser.
- XSS (Cross-Site Scripting): When an attacker gets their own JavaScript to run inside someone else's browser, on a website the victim trusts.
- oEmbed: A standard API used by websites to ask an embed provider for the HTML needed to show a preview of a link.
- Embed: A small preview of content from another site, shown inside a page.
- CSRF token: A secret value a website puts into its pages and expects back, to prove a request came from its own page.
- CSP (Content Security Policy): A set of rules a website sends to the browser saying which scripts are allowed to run.
- Nonce: A one-time code used by CSP to allow specific scripts to run.
- Turbo: A JavaScript library that makes page navigation faster by swapping page content instead of loading whole new pages.
- Origin: The combination of scheme, host and port that the browser uses to decide what a page is allowed to access.
- 403: An HTTP status code meaning "Forbidden": the server understood the request but refuses to fulfil it.
- CVSS: A standard way of scoring how serious a vulnerability is.
- Fails closed: A check that refuses when it cannot confirm the request is allowed.
- Reflection: When input comes back out in the output, like an echo.
- Recon: The early phase of looking around a target to find things worth testing.
- Privileges Required: A CVSS measure of how much access an attacker needs before the attack.
- User Interaction: A CVSS measure of whether the victim has to do something, like click a link.
- Scope: A CVSS measure of whether the impact spreads beyond the vulnerable component.
- Confidentiality: A CVSS measure of whether private data can be read.
- Integrity: A CVSS measure of whether data can be changed.
- Availability: A CVSS measure of whether the service stays up.
- Production servers: The computers that actually run the live service for real users.
- UTC: Coordinated Universal Time, a standard time zone used to record events consistently.