Skip to content
XSS Write-up Intermediate

Google Sites: A Tale of Five Vulnerabilities

Five vulnerabilities in Google Sites allowed an attacker to inject CSS or JavaScript through unsanitised settings, leading to cross-site scripting in some browsers or via clickjacking. The attacker could execute script in a victim's browser or target users with edit privileges.

bitquark Follow

Published on bitquark.co.uk

Bounty$13,035 View original

I'd like to use my last blog post of the year to sum up five vulnerabilities I found in Google Sites during the course of the year. Google Sites grew out of JotSpot, a site creation service bought by Google in 2006 and made free to use in 2008.

Bitquark (@bitquark), on bitquark.co.uk

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

Context

Google Sites is a site creation service that grew out of JotSpot, a company Google bought in 2006 and made free to use in 2008. Sites offers a multi-tiered permission system and a large number of customisation options, which is what made it an interesting target: every setting that ends up rendered into a page, a stylesheet or a link is a potential injection point.

This write-up covers five vulnerabilities found in Sites over the course of a year. Google paid a total of $13,034.80 for them, which made Sites the most rewarding Google property the researcher had looked at up to that point. The first four earned Google's $3133.7 bounty, and the fifth earned $500.

Setup

The report does not describe any particular account setup, tooling or version numbers. The examples use a site at the path /site/somesite/, and the technique was to send or alter the save request's JSON body directly. The payloads use alert(document.cookie) as the proof of execution.

Finding it

In the navigation link case the frontend enforced validation that altering the save request bypassed. Each vulnerability below was found by taking a legitimate save request and changing a value the UI would not normally let you change.

Exploitation

1. The headerHeight vulnerability

One of the global customisation settings is the page header height. On the rendered page it appears as a CSS style rule added directly to the header element. The value was included on the page with no escaping, so injecting CSS rules into it was possible, and in certain browsers that CSS led to cross-site scripting.

A quick POST to the settings URL was enough to exploit it in Opera and Internet Explorer:

JavaScript
json={"properties":{"config/headerHeight":"80;-o-link:javascript:alert(document.cookie);-o-link-source:current;x:expression(alert(document.cookie));"},"requestPath":"/site/somesite/"}

The -o-link and -o-link-source properties are Opera-specific, and x:expression(...) is the old Internet Explorer expression mechanism.

The result on the page was:

HTML
<td id="sites-header-title" class="" style="height: 80;-o-link:javascript:alert(document.cookie);-o-link-source:current;x:expression(alert(document.cookie));px">

Note that the application appends px after the value.

Even recent versions of Internet Explorer could be made to execute this by generating a rendering error on an unrelated google.com page, which forces the rendering engine into Compatibility View. Once that is triggered for one page, the entire domain falls back into compatibility mode.

An update to the post notes that IE compatibility mode is inherited from the parent document when content is included in an iframe, which provides another route to exploitation.

2. The navigation link vulnerability

Navigation boxes group internal links to other areas of a site and can also hold links to external websites. The frontend prevents saving non-HTTP URIs when adding links, but altering the save request directly bypassed that check:

JavaScript
json={"properties":{"component/718572616/navigationTree":"[{\"title\":\"Surprise!\",\"id\":\"javascript:alert(document.cookie)\"}]", "component/718572616/navDynamicDepth":0, "component/718572616/showSiteMap":false, "component/718572616/showRecents":false, "component/718572616/title":"Navigation", "component/718572616/hideTitle":false}, "requestPath":"/site/somesite/"}

An arbitrary link was injected:

HTML
<ul jotid="navList">
    <li class="nav-first ">
        <div dir="ltr" style="padding-left: 5px;">
            <a href="javascript:alert(document.cookie)" class="sites-navigation-link">Surprise!</a>
        </div>
    </li>
</ul>

Because of the nature of Sites, the X-Frame-Options header is not present, so the injected link can be leveraged through clickjacking. By placing the injected link in an iframe with zero opacity on top of a tempting target (the proof of concept used a kitten's nose), the link waits to be clicked by an unsuspecting user who only wanted to make the kitten purr.

3. The navbarAlignment vulnerability

This one is similar to the headerHeight issue but is handled by different logic and scripts. It was possible to inject arbitrary content into the main site CSS file. A few dozen element customisations are provided, yet only navbarAlignment and navbarMargin were passed through almost unfiltered.

Almost, because two tricks were needed. First, only relative URLs were allowed in CSS url() statements. That held when using single quotes or no quotes, but using double quotes allowed any data through. Second, something filtered out the word javascript. Submitting javajavascriptscript produced javascript after the single-pass filter removed the inner occurrence.

JavaScript
json={ "navbarAlignment":"center} .body { background: url(\"javajavascriptscript:alert(document.cookie)\") } /*<script>alert(document.cookie)</script>*/ {","navbarMargin":"10","requestPath": "/site/somesite/system/app/pages/admin/appearance/themesColorsAndFonts"}

Although HTML as well as CSS could be injected, the application sent the correct Content-Type header when serving the CSS file, which blocked that route of exploitation. The final CSS was:

CSS
#sites-chrome-header .sites-header-nav {
    text-align: center} .body { background: url("javascript:alert(document.cookie)") } /*<script>alert(document.cookie)</script>*/ { !important;
}

The researcher almost missed this one. Every element style that could be updated seemed properly filtered, and any invalid CSS caused the bad block to be subtly removed from the CSS file, which made it look as though filtering had taken place.

4. The uploaded stylesheet vulnerability

Sites ships with pre-configured themes that a site admin can change. By capturing and manipulating the POST request sent when changing themes, an arbitrary theme name could be set, which changed the path of a stylesheet include. Normally the include points to gstatic.com, but when an unrecognised theme name was set, the include pointed to a themes path under sites.google.com instead.

Sites also lets users upload custom files, which are served from the sites.google.com domain (with a redirect to a Google sandbox domain to prevent attacks). By saving a theme name containing dots and slashes, it was possible to navigate out of the theme directory and up the tree to a custom CSS file uploaded earlier:

HTML
<link rel="stylesheet" type="text/css" href="/site/somesite/_/rsrc/2147483647/system/app/themes/../../../../../files/injected-css/standard-css-../../../../../files/injected-css-ltr-ltr.css" />

5. The sidebar text vulnerability

Text sidebar boxes display text alongside the main content. Each box gets its own numeric node ID for internal reference. Manipulating the ID to contain a single quote bypassed the normal text filtering and allowed HTML injection into the text box:

JavaScript
json={"properties":{"component/31337'/type":"/system/app/components/min-textbox","component/31337'/content":"Surprise! <script>alert(document.cookie)</script>","config/sidebarRef":"","component//items":["31337'"]},"requestPath":"/site/somesite/"}

It is not clear why a single quote had this effect when no other character did. SQL injection was suspected, but no evidence of it could be gathered.

Additional filtering prevents the injected HTML from being displayed directly on the page, but when the box is edited no such filtering takes place and the XSS triggers. That allows targeted attacks against other users with edit privileges. It is also possible to give any other Google user edit permission without their knowledge, because there is a "send invitation" flag that can be set to false, so any Google user can be targeted in a way similar to the navigation link vulnerability.

Root cause

In the navigation link case the frontend applied validation that the backend did not repeat. The header height was written into a style attribute without escaping; the navigation tree accepted a javascript: URI in the link id; navbarAlignment and navbarMargin were passed through a single-pass word filter and a quote-sensitive URL check; The single-pass filter in the CSS case is a classic mistake: removing javascript once from javajavascriptscript leaves javascript behind. The double-quote behaviour in url() and the single-quote effect on the sidebar ID are both described as strange, and the report does not explain them.

Impact

All five issues are cross-site scripting or content injection in the context of sites.google.com. The headerHeight issue was exploited in Opera and Internet Explorer. The navigation link issue is amplified by the absence of X-Frame-Options, which enables clickjacking. The uploaded stylesheet issue lets an attacker load attacker-controlled CSS into the site. The sidebar issue allows targeted attacks against users with edit privileges, and because edit permission can be granted silently, any Google user can be targeted.

Fix

The changes that should be made follow from the root causes: escape values written into style attributes, reject non-HTTP schemes server-side for navigation links, replace single-pass word filters with proper allow-lists and normalise quoted url() values, constrain theme names so they cannot traverse directories, and validate node IDs as numeric on the server.

Variants to test

  1. Other numeric settings rendered into style attributes. Change a dimension or colour setting to a value containing ; and a CSS declaration. A positive result is the injected declaration appearing in the rendered style attribute.
  2. Other link-bearing JSON structures. Look for arrays of objects with a URL field and try a javascript: URI. A positive result is an anchor whose href is the injected scheme.
  3. Single-pass word filters. Submit a doubled keyword such as javajavascriptscript wherever a keyword is blocked. A positive result is the keyword surviving in the output.
  4. Quote-sensitive URL validation. Try url() with single quotes, no quotes and double quotes. A positive result is a payload that passes only in one of the three forms.
  5. Path traversal in theme or template names. Save a name containing ../ and check the generated stylesheet href. A positive result is a path that resolves outside the intended directory.
  6. Numeric IDs used in property keys. Insert a single quote into an ID and see whether filtering changes. A positive result is injected HTML that is stored and rendered when the component is edited.

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

What happened, in plain words

Google Sites is a service that lets anyone build a website without writing code. You pick a theme, add pages, drop in text boxes and navigation menus, and Google stores it all and serves it to visitors. It started life as a product called JotSpot, which Google bought in 2006 and made free in 2008. Because Sites lets you change so many things (colours, fonts, sizes, links, themes), it is a good place to go looking for mistakes: every setting you can change has to be stored somewhere and then printed back into a web page, and if the service prints your setting without cleaning it first, you can slip in instructions of your own.

Over the course of a year the researcher found five such mistakes in Google Sites. Google paid a total of $13,034.80 for them, which made Sites the most rewarding Google product the researcher had looked at up to that point. The first four earned Google's $3133.7 bounty, and the fifth earned $500.

Before going further, a few ideas that come up again and again below.

  • A web page is just text. When your browser asks a site for a page, the server sends back text written in a language called HTML. The browser reads that text and draws the page. If an attacker can get their own text into that HTML, the browser cannot tell the difference between the site's instructions and the attacker's.
  • A cookie is a small note the browser keeps for a site. After you log in, the site gives your browser a cookie so it can recognise you on the next request. Anyone who can read your cookie can often act as you. That is why alert(document.cookie) is the classic proof in these reports: it pops up a box showing the cookie, demonstrating that the attacker's code ran in your logged-in browser. This kind of attack is called cross-site scripting, or XSS: getting your code to run inside someone else's website, in the victim's browser, with the victim's permissions.
  • A POST request is how a browser sends data to a server. When you fill in a form and press Save, the browser usually sends a POST request carrying the values you entered. The server replies, and the page updates. The important part: the form you see is only a friendly front end. The request it sends can be captured and edited with tools built into the browser's developer tools, and the server has no way of knowing whether the request came from the real form or from someone typing it by hand.
  • JSON is a way of writing data as text. It looks like {"name": "value"}: curly braces around a list of name/value pairs. Sites sends its settings to the server as JSON inside these POST requests.
  • CSS is the language that describes how a page looks. Colours, sizes, positions and backgrounds are all CSS. A CSS rule looks like selector { property: value; }. If you can inject CSS, you can sometimes go further and inject script, because some browsers historically allowed CSS properties whose value was a piece of code.
  • Escaping means turning dangerous characters into harmless text. If a value is going to be printed inside HTML, the characters <, >, " and ' must be converted into codes so the browser shows them as text instead of treating them as instructions. When a report says a value was included "with no escaping", it means the service pasted the value in raw.
  • An iframe is a page inside a page. One website can embed another in a rectangular window. Clickjacking is the trick of putting an invisible iframe over something the user wants to click, so their click lands on the hidden page instead.

How the testing was done

The report does not describe any particular account setup, tooling or version numbers. The examples use a site at the path /site/somesite/.

  1. Use the normal Sites interface to change a setting, with the browser's developer tools open so you can see the request it sends.
  2. Capture the POST request that the Sites front end sends when the setting is saved.
  3. Modify the JSON body of that request, putting in a value the interface would never let you type.
  4. Replay the modified request to the server.
  5. Look at the page afterwards to see whether the value came back out unescaped.

The payloads use alert(document.cookie) as the proof of execution: if a pop-up appears showing the cookie, the injected code ran.

The common thread

In the navigation link case the front end checked inputs before saving, but altering the save request bypassed that. So the checks can be skipped simply by not using the front end. Each of the five vulnerabilities below was found by taking a legitimate save request and changing a value the interface would not normally let you change.

The five vulnerabilities

1. The headerHeight vulnerability

One of the global customisation settings is the height of the page header, the strip at the top of the site. On the finished page this appears as a CSS style rule added directly to the header element. The value you type was pasted into that style attribute with no escaping, so you could type not just a number but extra CSS rules of your own. In certain browsers, some CSS properties can carry code, so this CSS injection turned into cross-site scripting.

A quick POST to the settings URL was enough to exploit it in Opera and Internet Explorer:

JavaScript
json={"properties":{"config/headerHeight":"80;-o-link:javascript:alert(document.cookie);-o-link-source:current;x:expression(alert(document.cookie));"},"requestPath":"/site/somesite/"}
  • json= is the name of the form field that carries the settings. Everything after it is the JSON body.
  • "properties" is the object holding the settings being saved.
  • "config/headerHeight" is the name of the header height setting. Its value is the interesting part.
  • 80 is a perfectly normal height, so the request starts out looking legitimate.
  • ; ends the height declaration. Everything after a semicolon in CSS is a new declaration, so from here the attacker is writing their own CSS.
  • -o-link:javascript:alert(document.cookie) is an Opera-specific property whose value is a javascript: address. Opera would treat it as a link and run the code when it was followed.
  • -o-link-source:current is another Opera-specific property, used alongside the first.
  • x:expression(alert(document.cookie)) is the old Internet Explorer mechanism for putting a piece of script inside a CSS value. IE would evaluate the expression.
  • The trailing ; keeps the CSS well formed.
  • "requestPath":"/site/somesite/" says which site the settings belong to.

The result on the page was:

HTML
<td id="sites-header-title" class="" style="height: 80;-o-link:javascript:alert(document.cookie);-o-link-source:current;x:expression(alert(document.cookie));px">

This is the HTML the server sent back. The style attribute contains the height 80, then the injected declarations, and finally px.

Even recent versions of Internet Explorer could be made to execute this. The trick was to generate a rendering error on an unrelated google.com page, which forces the rendering engine into Compatibility View, an old mode that behaves like much older versions of IE. Once that is triggered for one page, the entire domain falls back into compatibility mode,

An update to the post notes that IE compatibility mode is inherited from the parent document when content is included in an iframe, which provides another route to exploitation: put the target site in an iframe on a page that has already been pushed into compatibility mode, and the iframe inherits it.

2. The navigation link vulnerability

Navigation boxes group internal links to other areas of a site and can also hold links to external websites. When you add a link through the interface, the front end refuses to save non-HTTP URIs. On a hunch, the researcher altered the save request directly:

JavaScript
json={"properties":{"component/718572616/navigationTree":"[{\"title\":\"Surprise!\",\"id\":\"javascript:alert(document.cookie)\"}]"}, "component/718572616/navDynamicDepth":0, "component/718572616/showSiteMap":false, "component/718572616/showRecents":false, "component/718572616/title":"Navigation", "component/718572616/hideTitle":false}, "requestPath":"/site/somesite/"}

Line by line:

  • component/718572616/... is how Sites names the settings of one particular component on the page. 718572616 is that component's internal number.
  • navigationTree holds the list of links in the box. Its value is itself JSON, written as a string, which is why the inner quotes are escaped with backslashes (\").
  • Inside that inner JSON, title is the text shown to the visitor, here Surprise!.
  • id is the address the link points to. It is set to javascript:alert(document.cookie). A javascript: address is not a web address at all: when clicked, the browser runs the code after the colon instead of navigating anywhere.
  • requestPath again names the site.

An arbitrary link was injected:

HTML
<ul jotid="navList">
    <li class="nav-first ">
        <div dir="ltr" style="padding-left: 5px;">
            <a href="javascript:alert(document.cookie)" class="sites-navigation-link">Surprise!</a>
        </div>
    </li>
</ul>

This is the HTML that came back. The <a> tag is the link, and its href (the address it points to) is the javascript: value that was smuggled in. The visible text is Surprise!.

Because of the nature of Sites, the X-Frame-Options header is not present. That header is a message from a server telling browsers "do not let other sites embed my pages in a frame". Without it, the injected link can be leveraged through clickjacking. By placing the injected link in an iframe with zero opacity on top of a tempting target (the proof of concept used a kitten's nose), the link waits to be clicked by an unsuspecting user who only wanted to make the kitten purr. The click lands on the invisible link instead.

3. The navbarAlignment vulnerability

This one is similar to the headerHeight issue but is handled by different logic and scripts. It was possible to inject arbitrary content into the main site CSS file. Sites offers a few dozen element customisations, yet only navbarAlignment and navbarMargin were passed through almost unfiltered.

Almost, because two tricks were needed.

First, only relative URLs were allowed in CSS url() statements. A url() is how CSS points at an image or other file to load. That restriction held when using single quotes or no quotes, but using double quotes allowed any data through. This is strange behaviour, but it is what the report describes.

Second, something filtered out the word javascript. Submitting javajavascriptscript produced javascript after the filter ran: the filter found the word once, removed it, and did not look again at the result. This is a single-pass filter, a classic mistake.

JavaScript
json={ "navbarAlignment":"center} .body { background: url(\"javajavascriptscript:alert(document.cookie)\") } /*<script>alert(document.cookie)</script>*/ {","navbarMargin":"10","requestPath": "/site/somesite/system/app/pages/admin/appearance/themesColorsAndFonts"}

Line by line:

  • navbarAlignment is the setting being abused. Its value is a small piece of CSS designed to break out of the rule it is placed in.
  • center} is a normal alignment value followed by a closing brace, which ends the rule the service was building.
  • .body { background: url(\"javajavascriptscript:alert(document.cookie)\") } opens a new rule for the page body, sets its background to a url() whose value is the javascript: address, and closes the rule.
  • /*<script>alert(document.cookie)</script>*/ is a CSS comment containing an HTML script tag. It is there to test whether HTML injection is also possible.
  • navbarMargin is set to 10, an ordinary value.
  • requestPath points at the admin page for themes, colours and fonts, which is where these settings are saved.

Although HTML as well as CSS could be injected, the application sent the correct Content-Type header when serving the CSS file. That header tells the browser what kind of file it is; because the file was served as CSS, the browser did not treat the embedded script tag as HTML, which blocked that route of exploitation. The final CSS was:

CSS
#sites-chrome-header .sites-header-nav {
    text-align: center} .body { background: url("javascript:alert(document.cookie)") } /*<script>alert(document.cookie)</script>*/ { !important;
}

Reading it: the first rule sets the navigation alignment to center and then closes early with }. The injected .body rule follows, with the javascript: address now visible in the url() after the filter did its work. The comment with the script tag sits between rules. The final { from the payload opens a block that the service's own !important; and closing } then finish, so the whole file still parses.

The researcher almost missed this one. Every element style that could be updated seemed properly filtered, and any invalid CSS caused the bad block to be subtly removed from the CSS file, which made it look as though filtering had taken place. In other words, the service was quietly tidying up broken CSS, and that tidying disguised the hole.

4. The uploaded stylesheet vulnerability

Sites ships with pre-configured themes that a site admin can change. A theme is a bundle of colours, fonts and a stylesheet (a CSS file) that the page loads. By capturing and manipulating the POST request sent when changing themes, an arbitrary theme name could be set. Setting an unrecognised theme name changed the path of the stylesheet include. Normally that path points to gstatic.com, Google's static file domain, but when an unrecognised theme name was set, the path pointed to a themes directory under sites.google.com instead.

Sites also lets users upload custom files, which are served from the sites.google.com domain (with a redirect to a Google sandbox domain to prevent attacks). By saving a theme name containing dots and slashes, it was possible to navigate out of the theme directory and up the tree to a custom CSS file uploaded earlier:

HTML
<link rel="stylesheet" type="text/css" href="/site/somesite/_/rsrc/2147483647/system/app/themes/../../../../../files/injected-css/standard-css-../../../../../files/injected-css-ltr-ltr.css" />

This is the HTML tag that loads the stylesheet. rel="stylesheet" says it is a CSS file, and href is the address. The interesting part is the address itself. ../ means "go up one directory", the same as on a computer's file system. This kind of trick is called path traversal: using ../ to escape the folder the application intended you to stay in.

5. The sidebar text vulnerability

Text sidebar boxes display text alongside the main content. Each box gets its own numeric node ID for internal reference, a number the service uses to tell one box from another. Manipulating the ID to contain a single quote bypassed the normal text filtering and allowed HTML injection into the text box:

JavaScript
json={"properties":{"component/31337'/type":"/system/app/components/min-textbox","component/31337'/content":"Surprise! <script>alert(document.cookie)</script>","config/sidebarRef":"","component//items":["31337'"]},"requestPath":"/site/somesite/"}

Line by line:

  • component/31337'/type names the type of the component. The ID here is 31337', with a single quote on the end, and the type is a text box.
  • component/31337'/content holds the text of the box. Instead of plain text it contains Surprise! <script>alert(document.cookie)</script>, an HTML script tag.
  • config/sidebarRef is left empty.
  • component//items lists the components on the page, and here it lists the same ID, 31337'.
  • requestPath names the site.

It is not clear why a single quote had this effect when no other character did. SQL injection was suspected, but no evidence of it could be gathered. (SQL injection is the database equivalent of the HTML problem above: slipping database instructions into a value the application expects to be plain data.)

Additional filtering prevents the injected HTML from being displayed directly on the page, but when the box is edited no such filtering takes place and the XSS triggers. That allows targeted attacks against other users with edit privileges. It is also possible to give any other Google user edit permission without their knowledge, because there is a "send invitation" flag that can be set to false, so any Google user can be targeted in a way similar to the navigation link vulnerability.

Why it worked

In the navigation link case the front end applied validation that the back end did not repeat. The header height was written into a style attribute without escaping; the navigation tree accepted a javascript: address in the link id; navbarAlignment and navbarMargin were passed through a single-pass word filter and a quote-sensitive URL check; The single-pass filter in the CSS case is a classic mistake: removing javascript once from javajavascriptscript leaves javascript behind. The double-quote behaviour in url() and the single-quote effect on the sidebar ID are both described as strange, and the report does not explain them.

What it meant

All five issues are cross-site scripting or content injection in the context of sites.google.com. The headerHeight issue was exploited in Opera and Internet Explorer. The navigation link issue is amplified by the absence of X-Frame-Options, which enables clickjacking. The uploaded stylesheet issue lets an attacker load attacker-controlled CSS into the site. The sidebar issue allows targeted attacks against users with edit privileges, and because edit permission can be granted silently, any Google user can be targeted.

What should be fixed

The changes that should be made follow from the causes above: escape values written into style attributes, reject non-HTTP schemes on the server for navigation links, replace single-pass word filters with proper allow-lists and normalise quoted url() values, constrain theme names so they cannot traverse directories, and validate node IDs as numeric on the server.

Things worth trying elsewhere

  1. Other numeric settings rendered into style attributes. Change a dimension or colour setting to a value containing ; and a CSS declaration. A positive result is the injected declaration appearing in the rendered style attribute.
  2. Other link-bearing JSON structures. Look for arrays of objects with a URL field and try a javascript: address. A positive result is a link whose href is the injected scheme.
  3. Single-pass word filters. Submit a doubled keyword such as javajavascriptscript wherever a keyword is blocked. A positive result is the keyword surviving in the output.
  4. Quote-sensitive URL validation. Try url() with single quotes, no quotes and double quotes. A positive result is a payload that passes only in one of the three forms.
  5. Path traversal in theme or template names. Save a name containing ../ and check the generated stylesheet address. A positive result is a path that resolves outside the intended directory.
  6. Numeric IDs used in property keys. Insert a single quote into an ID and see whether filtering changes. A positive result is injected HTML that is stored and rendered when the component is edited.

Glossary

  • API: a defined way for one piece of software to talk to another, like a waiter taking your order to the kitchen; here, the requests the Sites front end sends to the back end.
  • Back end: the part of a service that runs on the company's servers and stores data, as opposed to the front end in your browser.
  • Clickjacking: tricking a user into clicking something they cannot see, usually by placing an invisible frame over a tempting target.
  • Compatibility View: an Internet Explorer mode that makes the browser behave like much older versions, sometimes triggered automatically by rendering errors.
  • Content-Type: a header that tells the browser what kind of file it is receiving, such as HTML or CSS, so it knows how to treat it.
  • Cookie: a small note a site stores in your browser so it can recognise you, often proving you are logged in.
  • Cross-site scripting (XSS): getting an attacker's code to run inside someone else's website, in the victim's browser, with the victim's permissions.
  • CSS: the language that describes how a web page looks: colours, sizes, positions, backgrounds.
  • CSS injection: slipping extra CSS rules into a page through a value the site did not clean.
  • CVSS: a standard scoring system for rating the severity of a security flaw.
  • Escaping: converting dangerous characters into harmless text so they are displayed rather than interpreted.
  • Front end: the part of a service that runs in your browser, the pages and forms you see and use.
  • HTML: the language web pages are written in; the browser reads it and draws the page.
  • HTML injection: slipping extra HTML into a page through a value the site did not clean.
  • href: the attribute of a link that holds the address it points to.
  • iframe: a page embedded inside another page.
  • JavaScript: the programming language browsers run; javascript: addresses and <script> tags both carry it.
  • JSON: a way of writing data as text, using curly braces around name/value pairs.
  • Path traversal: using ../ to escape the folder an application intended you to stay in.
  • POST request: how a browser sends data to a server, for example when you press Save on a form.
  • Single-pass filter: a filter that searches for a blocked word once and removes it, without checking the result again.
  • SQL injection: slipping database instructions into a value the application expects to be plain data.
  • Style attribute: the HTML attribute that carries CSS directly on one element, such as style="height: 80px".
  • Theme: a bundle of colours, fonts and a stylesheet that gives a site its look.
  • url(): the CSS function that points at an image or other file to load.
  • X-Frame-Options: a header a server sends to tell browsers not to let other sites embed its pages in a frame.
  • XSS: see cross-site scripting.

More by bitquark

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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.