XSS WAF & Character limitation bypass like a boss
An image album feature allowed users to set image names, which were reflected unescaped in a slideshow endpoint, enabling stored XSS. A 15-character limit and a WAF on the main page were bypassed by splitting a payload across multiple image names and using a different endpoint that lacked filtering.
Published on medium.com
{{media:0}}
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.
Context
The target was a web application on a private bug bounty programme that lets a user create a photo album and upload photos into it. The interface offers an Edit action for renaming images, and a Slideshow option for viewing the album. The researcher found the bug in 2019 and published the write-up in March 2020.
The application interface.
Two separate endpoints matter here. The first is the album page itself, which is protected by a WAF and by a 15 character limit on the image name input. The second is a background AJAX endpoint used by the Slideshow feature, which renders the image name into a title attribute:
https://subdomain.company.com/ajax/generateImageList.ashx?json={albums:[{"id":"<picture_ID>","value":"on"}]}
When all photos of an album are selected, the Slideshow request switches to a different endpoint that takes an album ID instead of a picture ID:
https://subdomain.company.com/ajax/generateAlbumImageList.ashx?json={albums:[{"id":"<album_ID>","value":"on"}]}
Setup
The researcher tested the application with Burp Suite connected to the browser, keeping HTTP History open to capture background requests while using the normal interface. No accounts, roles or versions are described beyond the ability to create an album, upload photos and rename them.
Finding it
The obvious place to test was the rename function, since it lets the user control the photo name. The researcher set the photo name to:
xsstest'">{{7*7}}
Three things happened:
- The 15 character limit meant only
xsstest'">{{7*7was accepted. - All special characters were escaped properly.
- Reloading the album redirected to /error.aspx?code=500, apparently because of the WAF. Renaming the image back to xsstest made the album load again.
That input looked well protected. The interesting part came from the background traffic: while browsing HTTP History, the researcher noticed the ajax/generateImageList.ashx request issued for the Slideshow option. Its page source was:
<a href="https://image-link.com/image.jpg" title="xsstest" rel="lightbox[gallery]">84**00000</a>
The title attribute holds the image name. Renaming the picture to xsstest'"> and checking the same endpoint again gave:
<a href="https://image-link.com/image.jpg" title="xsstest'">" rel="lightbox[gallery]">84**00000</a>
So on this endpoint the user input is not escaped properly and there is no WAF detection. The 15 character limit still applies, which is what made the finding hard to weaponise.
Exploitation
Step 1: a minimal payload within 15 characters
The smallest payload the researcher could think of for this context was:
"oncut="alert()
Injected into the attribute, the markup becomes:
<a href="https://image-link.com/image.jpg" title=""oncut="alert()" rel="lightbox[gallery]">84**00000</a>
This closes the title attribute and adds an oncut handler. It fires when the user presses CTRL+X on Windows or COMMAND+X on OS X, producing a blank popup.

A blank popup from the oncut handler.
Every other approach to the character limit failed, so the researcher stopped and noted the endpoint in a To do list for the next time the asset was tested.
Step 2: multiple injections through the album endpoint
About seven months later the researcher returned to the endpoint and noticed that multiple photos can be uploaded to an album. Selecting all photos of the album makes the Slideshow request use ajax/generateAlbumImageList.ashx with the album ID, and the page source then contains one anchor per photo:
<a href="https://image-link.com/image.jpg" title="xsstest'">" rel="lightbox[gallery]">84**00000</a><a href="https://image-link.com/image.jpg" title="xsstest'">" rel="lightbox[gallery]">84**00001</a>
With several anchors, there are several injection points, each still limited to 15 characters. The researcher uploaded five pictures and split a payload across the five names:
- 1st Injection:
*/</script><!-- - 2nd Injection:
*/.domain)/*xxx - 3rd Injection:
*/(document/*xx - 4th Injection:
*/prompt/*xxxxx - 5th Injection:
"><script>/*xss
After the final injection the page source became:
<a href="https://image-link.com/image.jpg" title=""><script>/*xss" rel="lightbox[gallery]">84**00000</a><a href="https://image-link.com/image.jpg" title="*/prompt/*xxxxx" rel="lightbox[gallery]">84**00001</a><a href="https://image-link.com/image.jpg" title="*/(document/*xx" rel="lightbox[gallery]">84**00002</a><a href="https://image-link.com/image.jpg" title="*/.domain)/*xxx" rel="lightbox[gallery]">84**00003</a><a href="https://image-link.com/image.jpg" title="*/</script><!--" rel="lightbox[gallery]">84**00004</a>
The fifth name closes the title attribute and opens a <script> block, and the remaining names carry the rest of the payload. The report shows the resulting page source but does not explain how the fragments combine.
Visiting the album endpoint then executes the payload:
https://subdomain.company.com/ajax/generateAlbumImageList.ashx?json={albums:[{"id":"<album_ID>","value":"on"}]}

The payload executing.
Step 3: controlling the order of the injections
Album images are sorted by name length and then by upload time. The repeated x characters in the 2nd to 5th payloads pad every name to the same length, so the sort falls back to upload time and the fragments appear in the intended order.
Root cause
The ajax/generateImageList.ashx and ajax/generateAlbumImageList.ashx endpoints write the user-controlled image name into a title attribute without escaping it, and the WAF that protects the album page does not inspect these responses. The 15 character limit on the name field is the only remaining obstacle, and it is a per-field limit rather than a per-response one: because the album endpoint concatenates one anchor per photo, an attacker can chain several short fragments into a single script. The 15 character limit applies per name, but the album endpoint concatenates one anchor per photo, so several short fragments end up in one response, and padding the names to equal length makes the ordering follow upload time.
Impact
An attacker who can create an album and upload photos can place a script in the image names that executes when the album endpoint is visited. The report does not describe any further exploitation, such as session theft or actions taken on behalf of a victim.
Fix
The report does not say what the vendor changed. The fix implied by the finding is to HTML-escape the image name when it is written into the title attribute on the AJAX endpoints, and to apply the same WAF coverage to those endpoints as to the album page.
Variants to test
- Background AJAX endpoints behind a protected page. Browse with an intercepting proxy and inspect every request the UI makes. A positive result is a response that reflects a user-controlled value unescaped, especially inside an attribute.
- Per-field length limits with repeated output. Look for features that render a list of user-controlled items in one response. A positive result is several injection points in the same document that can be joined with comment syntax.
- Order-dependent output. Where items are sorted by name length, pad names to equal length so the order follows upload time. A positive result is fragments appearing in the sequence you chose.
- Event handlers within tight limits. Short handlers such as
oncutwithalert()fit in very small fields. A positive result is a handler firing on a user interaction such asCTRL+XorCOMMAND+X.
What happened, in plain words
A security researcher was testing a website that lets people create photo albums and upload pictures into them. The site had a feature for renaming photos and a Slideshow feature for viewing an album. The researcher found that one of the background requests the Slideshow makes was writing the photo name into the page without cleaning it up first. That let him put JavaScript into photo names, and it ran when the album endpoint was visited.
The tricky part was that the photo name field only accepted 15 characters, which is far too short for a normal attack. The researcher got around this by uploading five photos and splitting one attack across the five names, so that when the page put all five names together, the pieces joined up into a working script.
This is a beginner-friendly retelling of that finding, step by step, with the same requests and payloads.
Background concepts you need first
Before walking through the steps, here are the ideas the rest of the article relies on. Each one is explained from zero.
- Web application: a program you use through your browser. When you click a button, your browser sends a request to a server, the server sends back a response (usually a page or some data), and the browser draws it on screen. A photo album site is a web application.
- Request and response: a request is your browser asking the server for something ("show me this album"). A response is what the server sends back. Every click in a modern site is usually several requests, most of which you never see.
- Endpoint: a specific address on the server that answers a specific kind of request. Think of it as a counter in a large office: the building has one address, but each counter handles one job.
ajax/generateImageList.ashxis an endpoint. - API: a way for one piece of software to talk to another. When the Slideshow feature needs the list of photos, the page's JavaScript asks the server through an API and gets data back, rather than loading a whole new page. An everyday comparison: a restaurant menu is an API. You do not walk into the kitchen; you pick from a list and the kitchen sends back a dish.
- AJAX: the technique a web page uses to talk to the server in the background, without reloading the whole page. When you scroll a feed and new posts appear without the page flashing, that is AJAX. The
ajax/part of the endpoint name is a hint that this is such a background request. - HTML: the language that describes the structure of a web page. It is made of tags like
<a>(a link) and<script>(a block of code). Tags can carry attributes, which are extra settings written inside the tag, such ashref="..."(where the link goes) ortitle="..."(a tooltip shown when you hover). - Attribute: a named setting inside an HTML tag. In
<a title="holiday">,titleis the attribute andholidayis its value. Values are normally wrapped in quotes. - JavaScript: the programming language that runs inside your browser. It is what makes pages interactive. It can also do things you might not want, such as read what is on the page or act as you.
- XSS (Cross-Site Scripting): a bug where a site lets an attacker's JavaScript end up in a page that other people view, so the attacker's code runs in their browsers. The everyday comparison: a noticeboard where visitors can pin notes. If the board does not check the notes, someone can pin a note that says "hand your keys to the person at the door", and other visitors will read it as if the board itself wrote it.
- Escaping (also called encoding): turning dangerous characters into harmless text before putting them on a page. If a photo name contains a
"character and the site escapes it, the page shows the quote as text instead of treating it as the end of an attribute. The everyday comparison: writing "quote" on a form instead of actually drawing a quotation mark, so the form does not get confused. - WAF (Web Application Firewall): a filter that sits in front of a website and blocks requests that look like attacks. It is like a security guard at the door who checks bags. It is not perfect, and it only checks what passes through it.
- Payload: the piece of text an attacker sends in the hope that the site will treat it as code. In this story, the payload is the photo name.
- Popup /
alert():alert()is a JavaScript function that shows a small dialog box with a message. Researchers use it as a harmless proof that their code ran. If a popup appears, the attack worked. - Event handler: a piece of JavaScript attached to an HTML element that runs when something happens, such as a click or a key press.
oncutis the handler for the cut action (usuallyCTRL+Xon Windows orCOMMAND+Xon OS X). - Burp Suite: a tool researchers use to sit between the browser and the server. It records every request and response so you can read them, and it lets you change requests before they are sent. Its HTTP History tab is simply the list of everything that passed through.
- Proxy / intercepting proxy: software that sits in the middle of a connection. The browser talks to the proxy, and the proxy talks to the server. That is how Burp Suite sees traffic your browser would otherwise hide.
- Page source: the raw HTML the server sent, before the browser draws it. Viewing it shows exactly what the server wrote, including attributes you cannot see on screen.
- Comment (in code): text that the browser or the JavaScript engine ignores. In HTML,
<!-- ... -->is a comment. In JavaScript,/* ... */is a comment. Comments are useful to an attacker because they can hide the parts of the page that would otherwise break the attack. - Sorting: putting items in order. The album sorted photos by the length of their names first, and by upload time second.
The target and the two endpoints
The researcher was testing a web application on a private bug bounty programme. A bug bounty programme is an arrangement where a company invites outside researchers to look for security bugs and report them, often for a reward. "Private" means only invited researchers can take part.
The application let a user create a photo album and upload photos into it. The interface offered an Edit action for renaming images and a Slideshow option for viewing the album.
The application interface.
Two separate endpoints matter here. The first is the album page itself, which is protected by a WAF and by a 15 character limit on the image name input. The second is a background AJAX endpoint used by the Slideshow feature, which renders the image name into a title attribute:
https://subdomain.company.com/ajax/generateImageList.ashx?json={albums:[{"id":"<picture_ID>","value":"on"}]}
Reading that URL piece by piece:
https://subdomain.company.comis the site's address.subdomainis a placeholder for the real name, which the report does not give./ajax/generateImageList.ashxis the endpoint. The.ashxending is a file type used by some Microsoft web servers for handlers that produce a response directly.?json=starts the part of the URL that carries data to the server. Everything after the?is called the query string.{albums:[{"id":"<picture_ID>","value":"on"}]}is the data itself, written in JSON, a common text format for structured data. It says: there is a list calledalbums, containing one entry whoseidis a picture ID and whosevalueison. The<picture_ID>is a placeholder for a real number.
When all photos of an album are selected, the Slideshow request switches to a different endpoint that takes an album ID instead of a picture ID:
https://subdomain.company.com/ajax/generateAlbumImageList.ashx?json={albums:[{"id":"<album_ID>","value":"on"}]}
This is the same shape of request, but the endpoint name has Album in it and the id is now an album ID. The difference matters later: one request returns one photo, the other returns every photo in the album.
Setting up the tools
The researcher tested the application with Burp Suite connected to the browser, keeping HTTP History open to capture background requests while using the normal interface. The idea is simple: instead of guessing which requests a page makes, you let the page make them normally and read the list afterwards. Every background call the Slideshow makes shows up in that list, with its full URL and its response.
No accounts, roles or versions are described beyond the ability to create an album, upload photos and rename them.
Finding the bug
The obvious place to test was the rename function, since it lets the user control the photo name. If the site ever puts that name on a page without escaping it, the name becomes a way to inject HTML. So the researcher set the photo name to:
xsstest'">{{7*7}}
This is a probe, not yet an attack. It mixes several characters that matter in HTML and in template languages: a single quote, a double quote, >, and {{7*7}}. The {{7*7}} part is a common test for template injection: if the site evaluates it, the page will show 49 instead of the literal text. The quotes and > test whether the site lets those characters through unescaped.
Three things happened:
- The 15 character limit meant only
xsstest'">{{7*7was accepted. - All special characters were escaped properly.
- Reloading the album redirected to /error.aspx?code=500, apparently because of the WAF. Renaming the image back to xsstest made the album load again.
Point 1 means the field simply refused anything longer than 15 characters. Point 2 means the site turned the quotes and brackets into harmless text, so they appeared on the page as characters rather than being treated as HTML. Point 3 means the WAF noticed something suspicious and the site sent the browser to an error page instead of the album. The fact that renaming the image back to a plain word fixed it confirms the name itself was the trigger.
That input looked well protected. The interesting part came from the background traffic: while browsing HTTP History, the researcher noticed the ajax/generateImageList.ashx request issued for the Slideshow option. Its page source was:
<a href="https://image-link.com/image.jpg" title="xsstest" rel="lightbox[gallery]">84**00000</a>
Line by line:
<a ...>opens a link element.href="https://image-link.com/image.jpg"is where the link points: the image file.title="xsstest"is the tooltip, and its value is the photo name the researcher set.rel="lightbox[gallery]"is a label telling the page's JavaScript that this link belongs to a gallery, so it should open in a lightbox (an overlay viewer).84**00000is the text shown for the link, apparently an identifier for the photo.</a>closes the link.
The important observation is that the title attribute holds the image name. If the site writes the name there without escaping, a name containing a double quote will end the attribute early and let the rest of the name become new HTML.
Renaming the picture to xsstest'"> and checking the same endpoint again gave:
<a href="https://image-link.com/image.jpg" title="xsstest'">" rel="lightbox[gallery]">84**00000</a>
Look closely at title="xsstest'">". The name contained a double quote, and the server wrote it straight into the attribute. That double quote closes the title value early. Everything after it, the > and the second ", is now outside the attribute, sitting in the tag as if the site had written it itself. This is the classic sign of missing escaping.
So on this endpoint the user input is not escaped properly and there is no WAF detection. The 15 character limit still applies, which is what made the finding hard to weaponise. A limit of 15 characters is enough to break out of the attribute, but not enough to write a full script.
Exploitation
Step 1: a minimal payload within 15 characters
The smallest payload the researcher could think of for this context was:
"oncut="alert()
This fits within the 15 character limit. It starts with a double quote, which closes the title attribute, then adds oncut="alert()", which is a new attribute that tells the browser: when the user cuts something on this element, run alert(). The final quote closes the value of the new attribute.
Injected into the attribute, the markup becomes:
<a href="https://image-link.com/image.jpg" title=""oncut="alert()" rel="lightbox[gallery]">84**00000</a>
Reading it as the browser would:
title=""is now an empty tooltip, because the payload's first quote closed it.oncut="alert()"is a new attribute added by the payload. It is an event handler.rel="lightbox[gallery]"and the rest are the site's original markup, still intact.
This closes the title attribute and adds an oncut handler. It fires when the user presses CTRL+X on Windows or COMMAND+X on OS X, producing a blank popup.

A blank popup from the oncut handler.
The popup is blank because alert() was called with no message. It is still proof that the researcher's JavaScript ran, but it requires pressing CTRL+X or COMMAND+X. Every other approach to the character limit failed, so the researcher stopped and noted the endpoint in a To do list for the next time the asset was tested.
Step 2: multiple injections through the album endpoint
About seven months later the researcher returned to the endpoint and noticed that multiple photos can be uploaded to an album. Selecting all photos of the album makes the Slideshow request use ajax/generateAlbumImageList.ashx with the album ID, and the page source then contains one anchor per photo:
<a href="https://image-link.com/image.jpg" title="xsstest'">" rel="lightbox[gallery]">84**00000</a><a href="https://image-link.com/image.jpg" title="xsstest'">" rel="lightbox[gallery]">84**00001</a>
This is the key insight. The album endpoint does not return one link; it returns one link for every photo, all glued together in a single response. Each photo name is still limited to 15 characters, but the response as a whole is not. If the researcher controls five names, he controls five separate places in the same page.
With several anchors, there are several injection points, each still limited to 15 characters. The researcher uploaded five pictures and split a payload across the five names:
- 1st Injection:
*/</script><!-- - 2nd Injection:
*/.domain)/*xxx - 3rd Injection:
*/(document/*xx - 4th Injection:
*/prompt/*xxxxx - 5th Injection:
"><script>/*xss
The researcher split the payload across the five names so that, once the page glues them into one document, they form a single script.
- The 5th injection starts with
">, which closes thetitleattribute and the tag, then<script>opens a JavaScript block, and/*xssstarts a JavaScript comment. - The 4th, 3rd and 2nd injections each begin with
*/, which closes that comment, and end with/*, which opens a new one. In between sits a piece of the actual code:prompt,(document,.domain). Thexcharacters are padding, explained in the next step. - The 1st injection begins with
*/to close the last comment, then</script>closes the script block, and<!--starts an HTML comment that hides whatever the site writes after it.
After the final injection the page source became:
<a href="https://image-link.com/image.jpg" title=""><script>/*xss" rel="lightbox[gallery]">84**00000</a><a href="https://image-link.com/image.jpg" title="*/prompt/*xxxxx" rel="lightbox[gallery]">84**00001</a><a href="https://image-link.com/image.jpg" title="*/(document/*xx" rel="lightbox[gallery]">84**00002</a><a href="https://image-link.com/image.jpg" title="*/.domain)/*xxx" rel="lightbox[gallery]">84**00003</a><a href="https://image-link.com/image.jpg" title="*/</script><!--" rel="lightbox[gallery]">84**00004</a>
Notice the order: the 5th injection appears first in the response, then the 4th, 3rd, 2nd and 1st. That is deliberate, and the next step explains how the researcher controlled it.
If you strip away the HTML and read only what the browser treats as JavaScript, you get:
/*xss" rel="lightbox[gallery]">84**00000</a><a href="https://image-link.com/image.jpg" title="*/prompt/*xxxxx" rel="lightbox[gallery]">84**00001</a><a href="https://image-link.com/image.jpg" title="*/(document/*xx" rel="lightbox[gallery]">84**00002</a><a href="https://image-link.com/image.jpg" title="*/.domain)/*xxx" rel="lightbox[gallery]">84**00003</a><a href="https://image-link.com/image.jpg" title="*/</script>
Read it as the JavaScript engine would:
/*xss" rel="lightbox[gallery]">84**00000</a>...is all inside a comment, so the engine ignores it. That is the point: the site's own markup between the fragments is hidden.*/closes the comment, thenpromptis the function name./*xxxxx" rel="lightbox[gallery]">84**00001</a>...is another comment, hiding more markup.*/closes it, then(documentcontinues the call./*xx" rel="lightbox[gallery]">84**00002</a>...is another comment.*/closes it, then.domain)finishes the expression./*xxx" rel="lightbox[gallery]">84**00003</a>...is another comment.*/closes it, then</script>ends the script block.<!--starts an HTML comment that hides the rest of the response.
The fragments include prompt, (document and .domain), but the report does not spell out the assembled code.
The fifth name closes the title attribute and opens a <script> block. The /* at the start of the comment and the */ at the end of the following names keep the intervening markup inside a JavaScript comment, so the anchors for the other photos are skipped over. The last name closes the comment and the script with */</script>, and the trailing <!-- comments out the rest of the response.
Visiting the album endpoint then executes the payload:
https://subdomain.company.com/ajax/generateAlbumImageList.ashx?json={albums:[{"id":"<album_ID>","value":"on"}]}
This is the same URL as before. The difference is that the album now contains the five crafted photo names, so visiting it executes the payload.

The payload executing.
Step 3: controlling the order of the injections
Album images are sorted by name length and then by upload time. That is a problem: if the fragments appear in the wrong order, the comments and the code do not line up and nothing runs. The repeated x characters in the 2nd to 5th payloads pad every name to the same length, so the sort falls back to upload time and the fragments appear in the intended order.
The repeated x characters in the 2nd to 5th payloads make all image names the same length, so the sort falls back to upload time and the fragments appear in the intended order.
Why this works: the root cause
The ajax/generateImageList.ashx and ajax/generateAlbumImageList.ashx endpoints write the user-controlled image name into a title attribute without escaping it, and the WAF that protects the album page does not inspect these responses. The 15 character limit on the name field is the only remaining obstacle, and it is a per-field limit rather than a per-response one: because the album endpoint concatenates one anchor per photo, an attacker can chain several short fragments into a single script. The /* and */ sequences let the fragments comment out the markup between them, and padding the names to equal length makes the ordering deterministic.
In everyday terms: the front door had a guard and a strict bag-size limit, but the background request the Slideshow made did not escape the name, and five short names could be joined into one script.
Impact
An attacker who can create an album and upload photos can place a script in the image names that executes when the album endpoint is visited. The report does not describe any further exploitation, such as session theft or actions taken on behalf of a victim.
Fix
The fix implied by the finding is to HTML-escape the image name when it is written into the title attribute on the AJAX endpoints, and to apply the same WAF coverage to those endpoints as to the album page.
Variants to test
If you want to look for similar bugs yourself, these are the patterns worth trying. Each one is a habit, not a recipe.
- Background AJAX endpoints behind a protected page. Browse with an intercepting proxy and inspect every request the UI makes. A positive result is a response that reflects a user-controlled value unescaped, especially inside an attribute. The lesson is that protection on the page you see does not automatically cover the requests the page makes behind your back.
- Per-field length limits with repeated output. Look for features that render a list of user-controlled items in one response. A positive result is several injection points in the same document that can be joined with comment syntax. A limit on one field is not a limit on the page.
- Order-dependent output. Where items are sorted by name length, pad names to equal length so the order follows upload time. A positive result is fragments appearing in the sequence you chose. Always check how the site orders things before relying on order.
- Event handlers within tight limits. Short handlers such as
oncutwithalert()fit in very small fields. A positive result is a handler firing on a user interaction such asCTRL+XorCOMMAND+X. Even a weak trigger is worth reporting, because it proves the injection is real.
Glossary
- AJAX: a technique for a web page to talk to the server in the background without reloading the whole page.
- API: a defined way for one piece of software to request data or actions from another.
- Attribute: a named setting inside an HTML tag, such as
titleorhref, usually with a value in quotes. - Bug bounty programme: an arrangement where a company invites outside researchers to find and report security bugs, often for a reward.
- Burp Suite: a tool that sits between the browser and the server, recording and allowing modification of requests and responses.
- Comment: text in code that the browser or JavaScript engine ignores, such as
<!-- -->in HTML and/* */in JavaScript. - Endpoint: a specific address on a server that handles a specific kind of request.
- Escaping (encoding): converting characters that have special meaning into harmless text before placing them on a page.
- Event handler: JavaScript attached to an HTML element that runs when something happens, such as a key press or a click.
- HTML: the language that describes the structure of a web page using tags and attributes.
- HTTP History: the tab in Burp Suite that lists every request and response that passed through the proxy.
- JavaScript: the programming language that runs inside a web browser and makes pages interactive.
- JSON: a text format for structured data, made of names and values in braces and brackets.
- Payload: the text an attacker sends hoping the site will treat it as code.
- Proxy (intercepting proxy): software that sits in the middle of a connection so traffic can be read or changed.
- Query string: the part of a URL after the
?, carrying data to the server. - Request / response: a request is the browser asking the server for something; the response is what the server sends back.
- Sorting: putting items in a defined order, here by name length and then by upload time.
- WAF (Web Application Firewall): a filter in front of a website that blocks requests that look like attacks.
- Web application: a program used through a browser, where the browser talks to a server.
- XSS (Cross-Site Scripting): a bug where a site lets an attacker's JavaScript end up in a page viewed by other people, so it runs in their browsers.