Skip to content
Business logic Advisory Advanced CVE-2024-1672

Inappropriate implementation in Content Security Policy (CVE-2024-1672)

Georg Felber Follow

Originally disclosed on Chrome VRP

Bounty$3,000 Medium View original
  • Fix shipped in 2 months

Steps to reproduce the problem:

  1. Visit https://poc.minimal.blue/nonce?name=%3Cstyle%3Ebody[nonce*=secret]{background:red}%3C/style%3E%3Cbody The page is served with the header Content-Security-Policy: script-src 'nonce-secret'

  2. Notice that the CSS selector body[nonce\*=secret] can access the value of the CSP nonce, applying the style to the page (red background). This enables an attacker to bypass the CSP by leaking the nonce value via CSS.

  3. An equivalent attack can be performed by injecting an unterminated <html tag: https://poc.minimal.blue/nonce?name=%3Cstyle%3Ehtml[nonce*=secret]{background:red}%3C/style%3E%3Chtml

Problem Description:
Please CC Marco Squarcina ([email protected]) to this bug

According to the HTML spec, whenever the CSP policy is delivered to the browser over an HTTP header, CSP nonce values must by hidden to CSS selectors to prevent exfiltration via side-channels, see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#nonce-attributes and https://github.com/whatwg/html/issues/2369.

We discovered that a markup injection before a <script> element, which includes the nonce attribute, can result in the nonce value being accessible. This behavior can be replicated by injecting a dangling <html or <body tag, as shown in the code below. Assume that a valid CSP policy is set via an HTTP header, e.g., Content-Security-Policy: script-src 'nonce-secret':

<!DOCTYPE html> <head> <title>PoC</title> </head> <body> <h1>CSP Nonce Bypass</h1> Hello <style>body[nonce\*=sec]{background:green}</style><body <script nonce="secret" src="https://example.com/good.js"></script> </body> </html>

Please refer to https://poc.minimal.blue/nonce?name=%3Cstyle%3Ebody[nonce*=secret]{background:red}%3C/style%3E%3Cbody for a working example.

The issue affects major browsers including Chrome, Safari, and Firefox. We are jointly reporting the vulnerability to Apple and Mozilla.

Detailed information and root cause

After some investigation, we believe that the issue is caused by how the HTML parser handles duplicate <html> and <body> elements. These elements are merged into their original (i.e., parent) elements, causing all the attributes of the duplicate tags to be added to the parent element. To exemplify this, the following code

<!DOCTYPE html> <html lang="en"> <head></head> <body> <html a="w"> <html b="0"></html> </html> <html c="y"></html> </body> </html>

gets parsed as

<!DOCTYPE html> <html lang="en" a="w" b="0" c="y"> <head></head> <body></body> </html>

We noticed that the merging operation bypasses standard security checks, including hiding the nonce attribute. Given that these checks are omitted, the nonce attribute is merged into the parent <html> tag as a normal attribute resulting accessible through CSS selectors.

Code analysis

The HTMLTreeBuilder::ProcessStartTagForInBody function has special cases for handling <html> and <body> tags inside the document. These special cases call the HTMLConstructionSite::InsertHTMLBodyStartTagInBody and InsertHTMLHtmlStartTagInBody functions, respectivly.

(Code from https://chromium.googlesource.com/chromium/src/+/f2e5b0194c80a3fda50d2bd0c36d94650c249d17/third_party/blink/renderer/core/html/parser/html_tree_builder.cc)

Both functions rely on calling HTMLConstructionSite::MergeAttributesFromTokenIntoElement to merge the attributes into the original element, without performing any validation before using the Element::setAttribute method (which subsequently calls Element::SetAttributeInternal):

(Code from https://chromium.googlesource.com/chromium/src/+/f2e5b0194c80a3fda50d2bd0c36d94650c249d17/third_party/blink/renderer/core/html/parser/html_construction_site.cc)
(Code from https://chromium.googlesource.com/chromium/src/+/f2e5b0194c80a3fda50d2bd0c36d94650c249d17/third_party/blink/renderer/core/dom/element.cc)

We believe that the lack of safeguards in the implementation of the tag merging code could lead to additional vulnerabilities that should be promptly investigated.

Cheers,
Georg Felber (TU Wien)
Marco Squarcina (TU Wien)

Additional Comments:

**Chrome version: ** 120.0.6099.109 **Channel: ** Stable

OS: Linux

The original report as published on the Chromium issue tracker, by Georg Felber (TU Wien) & Marco Squarcina (TU Wien). Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

Content Security Policy (CSP) nonces are the standard way to allow a specific inline <script> element to run while blocking every other inline script on the page. The server generates a random value, puts it in the nonce attribute of the script tag, and sends a matching script-src 'nonce-...' directive in the Content-Security-Policy header. Because the nonce is unpredictable and changes on every response, an attacker who can inject markup into the page cannot guess it, so injected scripts are refused.

The whole scheme depends on the nonce value staying secret from the attacker. The HTML specification therefore requires that, when the policy is delivered over an HTTP header, the nonce value must not be exposed to CSS selectors. Otherwise an attacker who can inject CSS could read the nonce through attribute selectors and then reuse it in an injected script, defeating the policy entirely.

This report describes a way to make the nonce readable from CSS in Chrome, and notes that the same behaviour affects Safari and Firefox. The affected component is Chrome's HTML parser, specifically how it merges duplicate <html> and <body> elements and their attributes. The issue was reported jointly to Apple and Mozilla as well.

Setup

The testing was done against a purpose-built proof-of-concept site at poc.minimal.blue, which serves pages with a CSP header and reflects a name query parameter into the markup. The page used in the report is served with:

HTTP
Content-Security-Policy: script-src 'nonce-secret'

The report lists Chrome 120.0.6099.109, Stable channel, on Linux. No account, role or special tooling is involved: the only precondition is a page that reflects attacker-controlled markup before a <script> element that carries a nonce, and a CSP delivered over an HTTP header.

Finding it

The researcher noticed that a markup injection placed before a <script> element carrying the nonce attribute can result in the nonce value becoming accessible to CSS. The injection does not need to be a complete element: a dangling <html or <body start tag is enough. When the parser encounters the dangling <html or <body start tag, it is merged into the existing element, and the nonce attribute from the nonced script ends up on it as an ordinary attribute, where CSS attribute selectors can match on it.

That is exactly what the specification tries to prevent. The report points to the HTML standard's section on nonce attributes and to the related WHATWG issue, which state that nonce values delivered over an HTTP header must be hidden from CSS selectors to stop exfiltration through side channels.

Exploitation

Step 1: inject a style rule that matches the nonce

Visit the following URL:

Text
https://poc.minimal.blue/nonce?name=%3Cstyle%3Ebody[nonce\*=secret]{background:red}%3C/style%3E%3Cbody

The name parameter is URL-encoded and decodes to a <style> element followed by an unterminated <body tag. The style rule uses the attribute selector body[nonce\*=secret], which matches any body element whose nonce attribute contains the substring secret. The page is served with Content-Security-Policy: script-src 'nonce-secret'.

The result is that the selector can access the value of the CSP nonce and applies the style to the page, turning the background red. In other words, an attacker who can inject CSS can leak the nonce value through CSS, which is the bypass.

Step 2: the same attack with a dangling <html tag

An equivalent attack can be performed by injecting an unterminated <html tag instead of <body:

Text
https://poc.minimal.blue/nonce?name=%3Cstyle%3Ehtml[nonce\*=secret]{background:red}%3C/style%3E%3Chtml

Here the selector targets the html element, html[nonce\*=secret], and the injected markup ends with a dangling <html. The nonce again ends up on the root element as a normal attribute and the style is applied.

The minimal page

The report gives the following page as the reproduction case. It assumes a valid CSP policy set via an HTTP header, for example Content-Security-Policy: script-src 'nonce-secret':

HTML
<!DOCTYPE html>
<head>
    <title>PoC</title>
</head>
<body>
    <h1>CSP Nonce Bypass</h1>
    Hello <style>body[nonce\*=sec]{background:green}</style><body
    <script nonce="secret" src="https://example.com/good.js"></script>
</body>
</html>

The injected <style> rule matches body[nonce\*=sec], and the dangling <body tag that follows it is merged into the existing body element, carrying the nonce attribute with it. The working example is the poc.minimal.blue URL from step 1.

Root cause

The report attributes the behaviour to how the HTML parser handles duplicate <html> and <body> elements. These elements are merged into their original (parent) elements, and all attributes of the duplicate tags are added to the parent element. The report illustrates this with the following input:

HTML
<!DOCTYPE html>
<html lang="en">
    <head></head>
    <body>
        <html a="w">
            <html b="0"></html>
        </html>
        <html c="y"></html>
    </body>
</html>

which is parsed as:

HTML
<!DOCTYPE html>
<html lang="en" a="w" b="0" c="y">
    <head></head>
    <body></body>
</html>

The merging operation bypasses the standard security checks, including the one that hides the nonce attribute. Because those checks are omitted, the nonce attribute is merged into the parent <html> tag as a normal attribute and becomes reachable through CSS selectors.

In the code, HTMLTreeBuilder::ProcessStartTagForInBody has special cases for handling <html> and <body> tags inside the document. These call HTMLConstructionSite::InsertHTMLBodyStartTagInBody and InsertHTMLHtmlStartTagInBody respectively. Both functions rely on HTMLConstructionSite::MergeAttributesFromTokenIntoElement to merge the attributes into the original element, without performing any validation before using Element::setAttribute, which subsequently calls Element::SetAttributeInternal. The report cites the relevant source at the Chromium revision [redacted], in third_party/blink/renderer/core/html/parser/html_tree_builder.cc, third_party/blink/renderer/core/html/parser/html_construction_site.cc and third_party/blink/renderer/core/dom/element.cc.

The researchers note that the lack of safeguards in the tag merging code could lead to additional vulnerabilities that should be investigated.

Impact

An attacker who can inject markup into a page that uses a nonce-based CSP, and whose injection lands before a nonced <script> element, can read the nonce value through CSS attribute selectors. With the nonce known, the attacker can craft an injected script carrying the same nonce, which the policy will then allow. The bypass therefore undermines the protection that nonce-based CSP is meant to provide against script injection.

The report states that the issue affects major browsers including Chrome, Safari and Firefox, and that it was reported jointly to Apple and Mozilla.

Fix

The report does not describe a fix. It identifies the missing validation in the attribute-merging path as the cause and recommends that the lack of safeguards in the tag merging code be investigated for further vulnerabilities.

Variants to test

  1. Dangling <body before a nonced script. Inject <style>body[nonce\*=X]{...}</style><body before a <script nonce="...">. A positive result is the style being applied, which means the nonce is readable from CSS.
  2. Dangling <html before a nonced script. Inject <style>html[nonce\*=X]{...}</style><html instead. A positive result is the same: the root element carries the nonce as a normal attribute. A positive result is any attribute that should have been filtered appearing on the merged element.
  3. Partial substring matching. Use [nonce\*=X] with a short prefix rather than the full value, so the selector matches on a fragment. A positive result confirms that a fragment of the value is exposed to CSS.
  4. Other browsers. Repeat the same payloads in Safari and Firefox, which the report says are also affected. A positive result is the same visible style change.

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

What happened, in plain words

Websites often want to run small programs inside your browser. Those programs are called scripts, and they are what make a page interactive: buttons that respond, menus that open, forms that check what you typed. Because a script can do almost anything on the page, a malicious script is a serious problem. If an attacker can get their own script onto a page you trust, that script can read what you see, act as you, and send data to the attacker.

To stop this, sites use a feature called Content Security Policy, usually shortened to CSP. Think of CSP as a guest list at a private party: the browser is the bouncer, and it only lets in scripts whose names appear on the list. Every other script is turned away, even if it somehow got into the page.

One common way to build that guest list is with a nonce. A nonce is a random value that the server makes up fresh for each page it sends. The server writes the nonce into the CSP header (a small piece of information sent alongside the page) and also puts the same value on the script tag it wants to allow. The browser compares the two, and only runs the script if they match. Because the value is random and changes every time, an attacker who slips extra markup into the page cannot guess it, so their script is refused.

This whole arrangement only works if the nonce stays secret. If an attacker can read the nonce, they can put it on their own script and the browser will happily run it, as if it were on the guest list. The HTML standard, the rulebook that browsers are supposed to follow, therefore says that when the CSP is sent in an HTTP header, the nonce value must be hidden from CSS selectors. CSS is the language that controls how a page looks, and CSS selectors are patterns that pick out elements on the page. If CSS can see the nonce, an attacker who can add a little CSS can read it out.

This report describes a way to make the nonce readable from CSS in Chrome, and notes that the same behaviour affects Safari and Firefox. The affected part of Chrome is its HTML parser (the part that reads the page's markup and builds the page), specifically how it merges duplicate <html> and <body> elements and their attributes. The researchers reported the issue jointly to Apple and Mozilla as well.

Setup

The testing was done against a purpose-built proof-of-concept site at poc.minimal.blue. A proof of concept is a small, deliberately harmless demonstration that shows a problem is real. This site serves pages with a CSP header and reflects a name query parameter into the markup. A query parameter is the part of a web address after the question mark, and "reflects" means the site copies whatever you put there straight into the page. That copying is the opening an attacker needs.

The page used in the report is served with:

HTTP
Content-Security-Policy: script-src 'nonce-secret'

This line is an HTTP header, a piece of information the server sends before the page itself. script-src says which scripts may run, and 'nonce-secret' says that a script is allowed only if it carries the nonce value secret. In a real site the value would be long and random; here it is short so the demonstration is easy to follow.

The report lists Chrome 120.0.6099.109, Stable channel, on Linux. The Stable channel is the ordinary version most people use, as opposed to early test versions. No account, role or special tooling is involved. The only precondition is a page that reflects attacker-controlled markup before a <script> element that carries a nonce, and a CSP delivered over an HTTP header.

Finding it

The researcher noticed that a markup injection placed before a <script> element carrying the nonce attribute can result in the nonce value becoming accessible to CSS. Markup injection means getting your own HTML into someone else's page, for example through a field that is copied into the page without being cleaned. The injection does not need to be a complete element: a dangling <html or <body start tag is enough. A start tag is the opening part of an element, like <body>, and "dangling" means it is left unfinished, without its closing >.

When the parser encounters the dangling <html or <body start tag, it is merged into the existing element, and the nonce attribute from the nonced script ends up on it as an ordinary attribute, where CSS attribute selectors can match on it. An attribute is an extra piece of information attached to an element, such as nonce="secret". An attribute selector is a CSS pattern that picks elements based on their attributes, and it can even test whether an attribute contains a particular piece of text.

That is exactly what the specification tries to prevent. The report points to the HTML standard's section on nonce attributes and to the related WHATWG issue, which state that nonce values delivered over an HTTP header must be hidden from CSS selectors to stop exfiltration through side channels. WHATWG is the group that maintains the living HTML standard. Exfiltration means smuggling data out, and a side channel is an indirect way of learning something, such as inferring a value from how a page looks rather than reading it directly.

Exploitation

Step 1: inject a style rule that matches the nonce

Visit the following URL:

Text
https://poc.minimal.blue/nonce?name=%3Cstyle%3Ebody[nonce\*=secret]{background:red}%3C/style%3E%3Cbody

This address is long because parts of it are URL-encoded. URL encoding replaces characters that are awkward in a web address with a percent sign and a code, so %3C is < and %3E is >. The name parameter is URL-encoded and decodes to a <style> element followed by an unterminated <body tag. A <style> element is where CSS rules live.

The style rule uses the attribute selector body[nonce\*=secret], which matches any body element whose nonce attribute contains the substring secret. The backslash before the asterisk is an escape, a way of writing the asterisk so CSS treats it as part of the operator rather than as something else. The page is served with Content-Security-Policy: script-src 'nonce-secret'.

The result is that the selector can access the value of the CSP nonce and applies the style to the page, turning the background red. In other words, an attacker who can inject CSS can leak the nonce value through CSS, which is the bypass. The red background is the visible proof: the rule only fires if the browser let CSS see the nonce, so a red page means the secret was readable.

Step 2: the same attack with a dangling <html tag

An equivalent attack can be performed by injecting an unterminated <html tag instead of <body:

Text
https://poc.minimal.blue/nonce?name=%3Cstyle%3Ehtml[nonce\*=secret]{background:red}%3C/style%3E%3Chtml

Here the selector targets the html element, html[nonce\*=secret], and the injected markup ends with a dangling <html. The html element is the outermost element of every page, the root that contains everything else. The nonce again ends up on the root element as a normal attribute and the style is applied.

The minimal page

The report gives the following page as the reproduction case. It assumes a valid CSP policy set via an HTTP header, for example Content-Security-Policy: script-src 'nonce-secret':

HTML
<!DOCTYPE html>
<head>
    <title>PoC</title>
</head>
<body>
    <h1>CSP Nonce Bypass</h1>
    Hello <style>body[nonce\*=sec]{background:green}</style><body
    <script nonce="secret" src="https://example.com/good.js"></script>
</body>
</html>

Line by line, in plain words:

  • <!DOCTYPE html> tells the browser this is a modern HTML page.
  • <head> and </head> wrap information about the page that is not shown in the main area.
  • <title>PoC</title> sets the title shown in the browser tab. PoC stands for proof of concept.
  • <body> opens the visible part of the page.
  • <h1>CSP Nonce Bypass</h1> is a large heading naming the demonstration.
  • Hello <style>body[nonce\*=sec]{background:green}</style><body is the interesting line. It prints the word Hello, then adds a style rule that turns the background green if the body element's nonce attribute contains sec, and then leaves a <body tag unfinished. Note that this rule tests only the short fragment sec, not the whole value.
  • <script nonce="secret" src="https://example.com/good.js"></script> is the legitimate script the site wants to run. It carries the nonce secret and loads its code from https://example.com/good.js.
  • </body> and </html> close the page.

The injected <style> rule matches body[nonce\*=sec], and the dangling <body tag that follows it is merged into the existing body element, carrying the nonce attribute with it. The working example is the poc.minimal.blue URL from step 1.

Root cause

The report attributes the behaviour to how the HTML parser handles duplicate <html> and <body> elements. These elements are merged into their original (parent) elements, and all attributes of the duplicate tags are added to the parent element. The report illustrates this with the following input:

HTML
<!DOCTYPE html>
<html lang="en">
    <head></head>
    <body>
        <html a="w">
            <html b="0"></html>
        </html>
        <html c="y"></html>
    </body>
</html>

which is parsed as:

HTML
<!DOCTYPE html>
<html lang="en" a="w" b="0" c="y">
    <head></head>
    <body></body>
</html>

In the first block, the page contains several extra <html> tags nested inside the body, each carrying a made-up attribute: a="w", b="0" and c="y". In the second block, all of those attributes have been collected onto the single real <html> element at the top, next to its original lang="en". The extra tags themselves have disappeared. This is the merging in action, shown with harmless attributes so the effect is easy to see.

The merging operation bypasses the standard security checks, including the one that hides the nonce attribute. Because those checks are omitted, the nonce attribute is merged into the parent <html> tag as a normal attribute and becomes reachable through CSS selectors. In everyday terms: the normal route for setting an attribute goes past a guard who removes the nonce, but the merging route has no guard, so the nonce walks straight through.

In the code, HTMLTreeBuilder::ProcessStartTagForInBody has special cases for handling <html> and <body> tags inside the document. These call HTMLConstructionSite::InsertHTMLBodyStartTagInBody and InsertHTMLHtmlStartTagInBody respectively. Both functions rely on HTMLConstructionSite::MergeAttributesFromTokenIntoElement to merge the attributes into the original element, without performing any validation before using Element::setAttribute, which subsequently calls Element::SetAttributeInternal. A function is a named block of code that does a job; the double-colon notation names the function together with the part of the program it belongs to. Validation here means checking whether an attribute is allowed before storing it.

The report cites the relevant source at the Chromium revision [redacted], in third_party/blink/renderer/core/html/parser/html_tree_builder.cc, third_party/blink/renderer/core/html/parser/html_construction_site.cc and third_party/blink/renderer/core/dom/element.cc. Chromium is the open-source project Chrome is built from, Blink is its rendering engine (the part that turns markup into what you see), and a revision is a specific saved state of the code, so anyone can look at exactly the same version.

The researchers note that the lack of safeguards in the tag merging code could lead to additional vulnerabilities that should be investigated. In other words, the nonce leak is one symptom of a wider gap: other attributes that are supposed to be filtered might also slip through the same path.

Impact

An attacker who can inject markup into a page that uses a nonce-based CSP, and whose injection lands before a nonced <script> element, can read the nonce value through CSS attribute selectors. With the nonce known, the attacker can craft an injected script carrying the same nonce, which the policy will then allow. The bypass therefore undermines the protection that nonce-based CSP is meant to provide against script injection. The guest list has been read out loud, so the attacker can now write their own name on it.

The report states that the issue affects major browsers including Chrome, Safari and Firefox, and that it was reported jointly to Apple and Mozilla. A bounty is a reward a vendor pays for a well-reported security bug, and a CVE is a public identifier given to a known vulnerability so people can refer to it unambiguously.

Fix

The report does not describe a fix. It identifies the missing validation in the attribute-merging path as the cause and recommends that the lack of safeguards in the tag merging code be investigated for further vulnerabilities.

Variants to test

These are follow-up checks anyone can repeat to see how far the problem goes. Each one states what a positive result looks like, so you know what you are looking for.

  1. Dangling <body before a nonced script. Inject <style>body[nonce\*=X]{...}</style><body before a <script nonce="...">. A positive result is the style being applied, which means the nonce is readable from CSS.
  2. Dangling <html before a nonced script. Inject <style>html[nonce\*=X]{...}</style><html instead. A positive result is the same: the root element carries the nonce as a normal attribute. A positive result is any attribute that should have been filtered appearing on the merged element.
  3. Partial substring matching. Use [nonce\*=X] with a short prefix rather than the full value, so the selector matches on a fragment. A positive result confirms that a fragment of the value is exposed to CSS.
  4. Other browsers. Repeat the same payloads in Safari and Firefox, which the report says are also affected. A positive result is the same visible style change.

Glossary

  • Attribute: an extra piece of information attached to an HTML element, written inside the opening tag, such as nonce="secret".
  • Attribute selector: a CSS pattern that picks elements based on their attributes, optionally testing whether an attribute contains a given piece of text.
  • Blink: the rendering engine inside Chromium that turns HTML and CSS into the page you see.
  • Bounty: a reward paid by a software vendor for a security problem that is reported responsibly.
  • Browser: the program you use to view web pages, such as Chrome, Safari or Firefox.
  • Chromium: the open-source browser project that Chrome is built from.
  • Content Security Policy (CSP): a set of rules a site sends to the browser saying which scripts and other resources are allowed to run.
  • CSS: the language that describes how a page looks, including colours, layout and which elements a rule applies to.
  • CSS selector: a pattern in CSS that chooses which elements a style rule affects.
  • CVE: a public identifier for a known security vulnerability, so people can refer to it unambiguously.
  • Dangling tag: an opening tag left unfinished, without its closing >, such as <body.
  • Exfiltration: smuggling data out of a page or system, often to an attacker's server.
  • Function: a named block of code that performs a particular job.
  • HTML: the language web pages are written in, made of elements such as headings, paragraphs and scripts.
  • HTML parser: the part of the browser that reads HTML and builds the page structure from it.
  • HTTP header: a small piece of information a server sends alongside a page, such as the CSP rules.
  • Markup injection: getting your own HTML into someone else's page, for example through input that is copied into the page without being cleaned.
  • Merging: the parser's behaviour of folding a duplicate <html> or <body> element into the existing one and copying its attributes onto the parent.
  • Nonce: a random value generated fresh for each response and used to mark which script the CSP should allow.
  • Proof of concept (PoC): a small, deliberately harmless demonstration that shows a problem is real.
  • Query parameter: the part of a web address after the question mark, carrying values such as name=....
  • Reflection: copying user-supplied input straight into the page without cleaning it.
  • Revision: a specific saved state of a code repository, so anyone can look at exactly the same version.
  • Root element: the outermost element of a page, the <html> element that contains everything else.
  • Script: a small program that runs inside the browser and makes a page interactive.
  • Side channel: an indirect way of learning something, such as inferring a value from how a page looks rather than reading it directly.
  • Stable channel: the ordinary release version of a browser that most people use, as opposed to early test versions.
  • Start tag: the opening part of an HTML element, such as <body>.
  • Style element: the HTML element, <style>, that contains CSS rules.
  • URL encoding: replacing characters that are awkward in a web address with a percent sign and a code, so %3C means <.
  • Validation: checking that something is allowed before accepting it.
  • WHATWG: the group that maintains the living HTML standard.
  • XSS (cross-site scripting): getting an attacker's script to run inside a page you trust; nonce-based CSP is a defence against it.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.