Skip to content
XSS Write-up Advanced

MyBB Remote Code Execution Chain

blog.sonarsource.com

Published on blog.sonarsource.com

Today SonarSource is pleased to share with you a guest contribution to our Code Security blog series. The following blog post is authored by Simon Scannell and Carl Smith -two independent security researchers- joining us in sharing their findings of real world vulnerabilities and how they directly relate to Code…

The author, on blog.sonarsource.com

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

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

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

Context

MyBB is one of the most popular open source bulletin boards. Like most forum software, it lets unprivileged users create posts and private messages containing images, videos, headlines, lists and so on. MyBB implements this with a custom message format called MyCodes, a Markdown-like syntax that the parser converts into HTML. The parser first encodes the entire user input and then uses regular expressions to find and replace MyCodes with their respective HTML output. A separate step, mycode_auto_url(), detects URLs that were not wrapped in the [URL] MyCode and converts them into HTML links.

The two researchers, Simon Scannell and Carl Smith, were looking at forum software to build a capture the flag challenge when they found a chain of serious vulnerabilities in MyBB. The chain combines a stored XSS in the auto URL rendering with an SQL injection in the theme properties, and together they lead to remote code execution.

Setup

MyBB forums with versions between and including 1.8.16 and 1.8.25 are affected by the two vulnerabilities. The chain works on default MyBB configurations and requires no prior access to a privileged account. The attacker only needs an ordinary forum account to post or send private messages, and the victim is an administrator with an active session in the administrator dashboard.

Finding it

The researchers describe two common ways to implement rich user content: allow users to submit HTML tags and filter them with an allow or deny list, or use a message format such as Markdown to generate sane HTML from input. MyBB uses the second approach. Problems in such parsers occur when the regex patterns used to find and replace MyCodes are too relaxed, which can lead to nested HTML tags being rendered.

The auto URL step is the less explicit part of the rendering process. The $message variable is passed to the mycode_auto_url() method of the renderer class:

mybb/inc/class_parser.php

At that point $message contains the already rendered HTML result of the user supplied message, so it must be handled carefully: only URLs that are not part of an HTML tag may be converted into <a> tags. MyBB used the following regex for this (simplified by stripping away all parts not relevant to understanding the vulnerability):

mybb/inc/class_parser.php

The regex is divided by the | character into two alternatives:

  1. Match anything between <a> tags (<a\s[^>]*>.*?</a>). In case of such a match, nothing is changed.
  2. The URL match must begin with either a whitespace, parentheses or an opening square bracket ([) or a closing angle bracket (>), and is then followed by a URL (this is the simplified part).

The logic behind the second alternative is that when a user-supplied MyCode is converted into HTML, user controlled data can be embedded into an HTML attribute of the resulting tag, but it cannot contain any of these characters. For example, when an [img] MyCode is converted to HTML, the URL that forms the src attribute is stripped of all whitespaces and is HTML and URL encoded. The idea was that these transformations would remove all characters that could be matched by the second alternative of the regex, so the second part assumes the first transformation has already cleaned the URL.

That assumption is wrong. Both URL encoding and HTML encoding leave parentheses () untouched. An [img] tag can therefore be crafted so that the second regex is confused.

Exploitation

Step 1: stored XSS through a nested auto URL (CVE-2021-27889)

In the first step of the rendering process, a crafted [img] MyCode produces an <img> tag in which the URL contains an unencoded closing parenthesis. In the next step, mycode_auto_url() matches the second URL in the image because it begins with a closing parenthesis that has not been escaped or encoded. The final HTML contains an <a> tag inserted into the existing <img> tag. Since both tags contain double quotes, they corrupt each other, and browsers such as Chrome or Firefox construct a final <img> element containing an attacker controlled onerror event handler. That handler executes arbitrary JavaScript in the browser of a victim who reads the malicious post or private message.

Any unprivileged forum user can embed these stored XSS payloads into threads, posts and even private messages. The attacker sends a private message to a targeted administrator; as soon as the administrator opens it on his own trusted forum, the exploit triggers.

Step 2: from admin session to SQL injection in theme properties (CVE-2021-27890)

With JavaScript running in the browser of an administrative user with an active session, the attacker can perform arbitrary actions with admin privileges. MyBB actively prevents even administrator users from executing arbitrary PHP code on the underlying server, so the researchers needed an authenticated RCE reachable with administrative privileges.

One feature admins can access is the theme manager. A MyBB theme consists of a list of key-value pairs. The key is a component of the current page, for example a welcome back message that should be displayed. When MyBB displays such a component, the theme key header_welcomeblock_member_moderator is requested, and the value of that theme component is passed to eval(). The contents are enclosed in double quotes and the PHP variable {$mybb->user['username']} is interpolated into the string.

This does not enable RCE immediately because MyBB escapes double quotes in template values when they are stored into the database, so it is impossible to break out of the double quoted string. A second PHP trick could have resulted in RCE: an attacker could modify the template and add a $ to the variable that becomes string interpolated. MyBB also prevents administrators from inserting such interpolations. A bypass of MyBB's filter would still allow arbitrary PHP code execution, and the researchers achieved that bypass through an SQL injection.

Step 3: importing a malicious theme

MyBB themes can be imported through XML files which contain a set of theme properties such as the image directory or the version. Additionally, a list of key-value pairs is read where the name correlates to the key of the theme component and the value to the contents. When an administrator imports such a theme, the XML is parsed and the properties of the theme are stored into the database. The templateset property turned out to be susceptible to a second order SQL injection: when themes are uploaded they are inserted into the database and later used in other SQL queries without any sanitisation.

Step 4: poisoning the template cache

At the beginning of each page load, MyBB fetches all possible template values from the database and stores them in a cache. The SQL query that fetches all template values uses the templateset property, which is embedded unsanitized into the query string, so an SQL injection vulnerability occurs. With a malicious theme, an attacker controls this attribute and makes the cache function return attacker controlled values. The resulting SQL query interposes the templateset attribute directly.

Step 5: code execution through eval

Through the SQL injection it is possible to poison the template cache with attacker controlled values that do not undergo any escaping or sanitisation. These values are passed to eval() inside the double quoted string, so arbitrary PHP code can be executed within the ${...} syntax. As a result, an attacker can execute arbitrary PHP code and compromise the underlying server.

Root cause

The XSS comes from a mismatch between two stages of the parser. The first stage encodes the URL in an [img] tag and strips whitespace, but URL and HTML encoding do not modify parentheses. The auto URL regex assumes that no character it matches on can survive inside an HTML attribute, and that assumption fails for ( and ). The second alternative then matches inside the attribute, inserts an <a> tag into the <img> tag, and the corrupted quoting lets the browser build an element with an attacker controlled event handler.

The RCE comes from a second order SQL injection. The templateset theme property is stored in the database on import and later embedded unsanitized into the query that populates the template cache. The injected values enter the template cache through the SQL query and do not undergo any escaping or sanitisation. The poisoned values reach eval() unescaped, and the ${...} syntax gives code execution.

Impact

On default configurations, an unprivileged forum user can embed stored XSS payloads in threads, posts and private messages. By sending a private message to an administrator, the attacker triggers the exploit as soon as the administrator opens it, and the RCE vulnerability is then exploited automatically in the background. This leads to a full takeover of the targeted MyBB forum and compromise of the underlying server. The chain requires the targeted administrator to open the malicious message; no prior access to a privileged account is needed.

Fix

The report does not describe the individual code changes. The MyBB team cooperated on resolving the issues very quickly, and the affected range is versions 1.8.16 through 1.8.25, so the fix is to upgrade beyond that range. More generally, the researchers advise not letting regexes grow too complex in multi-step parsers and HTML renderers, especially when they are meant to prevent security issues, because such parsers can corrupt their own output.

Variants to test

  1. Encoding gaps in auto-linkers. Take any forum or CMS that auto-converts bare URLs after rendering MyCodes or Markdown, and place parentheses, brackets or angle brackets inside an attribute value that the first stage does not encode. A positive result is an <a> tag appearing inside an existing tag and a browser building an element with an attacker controlled event handler.
  2. Second order injection through import features. Import theme, template or configuration files (XML or otherwise) whose properties are stored and later concatenated into queries. A positive result is a stored property that changes the behaviour of a later query, for example by returning rows the importer did not create.
  3. Template cache poisoning. Look for caches populated by queries built from stored properties and then passed to eval() or similar sinks. A positive result is attacker supplied content reaching the sink without the escaping applied on the normal editing path.
  4. Filter bypasses around PHP string interpolation. Where an application blocks $ or quote characters in templates, look for a path that writes the same values into the database without passing through that filter. A positive result is a template value containing ${...} that is evaluated.

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

MyBB is a piece of software that lets people run an online discussion forum. Think of it as a website where members post messages, reply to each other and send private messages, much like a noticeboard in a club where anyone with a membership card can pin up a note. It is open source, which means its underlying code is public and anyone can read it.

Two independent security researchers, Simon Scannell and Carl Smith, were looking at forum software to build a capture the flag challenge. A capture the flag, usually shortened to CTF, is a game where people try to break into a deliberately vulnerable computer system to find hidden flags; it is a common way to practise security skills. While doing this they found a chain of serious vulnerabilities in MyBB. A vulnerability is simply a weakness in software that someone can misuse to make it do something the designers did not intend.

The chain combines two separate weaknesses. The first is a stored XSS, which stands for cross-site scripting: a way of getting your own JavaScript code to run inside someone else's browser when they view a page. The second is an SQL injection, a way of sneaking extra instructions into the database queries a website sends. JavaScript is the programming language that web pages use to make things happen in your browser. A database is the organised store where a website keeps its data, such as posts, users and settings. SQL is the language used to talk to that database.

On their own, each weakness is serious but limited. Chained together, they let an ordinary forum member, with no special rights at all, take full control of the forum and the server it runs on. Taking full control like this is called remote code execution, or RCE: the attacker can make the server run their own code from a distance.

Who is affected

MyBB forums with versions between and including 1.8.16 and 1.8.25 are affected by the two vulnerabilities. A version number is like a label on a release of the software, so this range tells you which releases contain the flaws.

The chain works on default MyBB configurations, meaning the settings a forum has when it is first installed, without any special tweaks. It requires no prior access to a privileged account. The attacker only needs an ordinary forum account, enough to post or send private messages. The victim is an administrator, a user with the highest rights, who has an active session in the administrator dashboard. A session is the period during which a website remembers that you are logged in; the dashboard is the private control area where an administrator manages the forum.

How the researchers approached it

The researchers describe two common ways to let users create rich content such as bold text, images and links. The first is to allow users to submit HTML tags directly and then filter them with an allow or deny list. HTML is the language web pages are written in, and a tag is a piece of markup such as an image or a link. An allow list says which tags are permitted; a deny list says which are forbidden. The second approach is to use a message format such as Markdown, where users type simple symbols and the software turns them into proper HTML. Markdown is the lightweight formatting you may have seen on chat apps, where stars around a word make it bold.

MyBB uses the second approach. It has its own message format called MyCodes, a Markdown-like syntax that the parser converts into HTML. A parser is a program that reads text and works out its structure, a bit like a person reading a recipe and turning the written steps into a cooked meal. Problems in such parsers occur when the regex patterns used to find and replace MyCodes are too relaxed, which can lead to nested HTML tags being rendered. A regex, short for regular expression, is a pattern used to search text, for example "find every word that starts with a capital letter". "Too relaxed" means the pattern matches more than it should, so it can be fooled into treating part of one tag as if it were something else. "Nested" means one tag ends up inside another, which is not supposed to happen.

The auto URL step is the less explicit part of the rendering process. Rendering is the act of turning the stored message into the finished page you see. This step looks for web addresses that users typed without any special formatting and turns them into clickable links. The $message variable is passed to the mycode_auto_url() method of the renderer class:

mybb/inc/class_parser.php

A variable is a named box that holds a value in a program; here $message holds the text of the message being processed. A method is a named block of code that does a particular job; mycode_auto_url() is the one that finds and links bare web addresses. The file name tells you where in MyBB's code this happens.

At that point $message contains the already rendered HTML result of the user supplied message, so it must be handled carefully: only URLs that are not part of an HTML tag may be converted into <a> tags. An <a> tag is the HTML element that makes a link. The danger is that if the auto-linker treats part of an existing tag as a bare address, it will insert a link in the middle of that tag and break it.

MyBB used the following regex for this, simplified by stripping away all parts not relevant to understanding the vulnerability:

mybb/inc/class_parser.php

The regex is divided by the | character into two alternatives. In a regex, | means "or": try the first pattern, and if that does not apply, try the second.

  1. Match anything between <a> tags (<a\s[^>]*>.*?</a>). In case of such a match, nothing is changed. In plain words, this part says: if the text is already inside a link, leave it alone.
  2. The URL match must begin with either a whitespace, parentheses or an opening square bracket ([) or a closing angle bracket (>), and is then followed by a URL (this is the simplified part). A whitespace is a space, tab or line break. This part says: only treat something as a bare address if it starts right after one of these characters, because those characters are assumed never to appear inside a tag's attribute.

An attribute is an extra piece of information inside a tag, such as the address an image should load from. The logic behind the second alternative is that when a user-supplied MyCode is converted into HTML, user controlled data can be embedded into an HTML attribute of the resulting tag, but it cannot contain any of these characters. For example, when an [img] MyCode is converted to HTML, the URL that forms the src attribute is stripped of all whitespaces and is HTML and URL encoded. [img] is the MyCode a user writes to insert a picture; src is the attribute that says where the picture lives. HTML encoding and URL encoding are ways of rewriting special characters so they are treated as plain text rather than as instructions; for instance, a < might be rewritten so the browser does not think a new tag is starting. The idea was that these transformations would remove all characters that could be matched by the second alternative of the regex, so the second part assumes the first transformation has already cleaned the URL.

That assumption is wrong. Both URL encoding and HTML encoding leave parentheses () untouched. An [img] tag can therefore be crafted so that the second regex is confused. This is the heart of the first bug: one part of the software believes another part has removed certain characters, but it has not.

Exploitation

Step 1: stored XSS through a nested auto URL (CVE-2021-27889)

CVE stands for Common Vulnerabilities and Exposures: a public catalogue where each known vulnerability gets a permanent identifier, so people can refer to it unambiguously. CVE-2021-27889 is the identifier for this first flaw.

In the first step of the rendering process, a crafted [img] MyCode produces an <img> tag in which the URL contains an unencoded closing parenthesis. In the next step, mycode_auto_url() matches the second URL in the image because it begins with a closing parenthesis that has not been escaped or encoded. Escaping is the act of marking a character so it is treated as ordinary text rather than as a special symbol. The final HTML contains an <a> tag inserted into the existing <img> tag. Since both tags contain double quotes, they corrupt each other, and browsers such as Chrome or Firefox construct a final <img> element containing an attacker controlled onerror event handler. An event handler is a piece of code that runs when something happens; onerror runs when an image fails to load. That handler executes arbitrary JavaScript in the browser of a victim who reads the malicious post or private message.

Any unprivileged forum user can embed these stored XSS payloads into threads, posts and even private messages. "Stored" means the malicious content is saved on the forum and served to whoever views it later, rather than being a one-off trick in a single link. A payload is the actual content that carries out the attack. The attacker sends a private message to a targeted administrator; as soon as the administrator opens it on his own trusted forum, the exploit triggers. The administrator trusts the forum, so the browser runs the code as if the forum itself had written it.

Step 2: from admin session to SQL injection in theme properties (CVE-2021-27890)

With JavaScript running in the browser of an administrative user with an active session, the attacker can perform arbitrary actions with admin privileges. In practice the attacker's code runs with the administrator's rights, because the browser treats it as the logged-in admin. MyBB actively prevents even administrator users from executing arbitrary PHP code on the underlying server, so the researchers needed an authenticated RCE reachable with administrative privileges. PHP is the programming language MyBB is written in, and "authenticated" here means the attacker needs to act as a logged-in user. The designers had deliberately blocked the obvious route from admin rights to running code on the server, so the researchers had to find another way.

One feature admins can access is the theme manager. A theme is the set of colours, layouts and wording that gives a forum its look. A MyBB theme consists of a list of key-value pairs. A key-value pair is like a label and its contents: the label says what the thing is, the value says what it holds. The key is a component of the current page, for example a welcome back message that should be displayed. When MyBB displays such a component, the theme key header_welcomeblock_member_moderator is requested, and the value of that theme component is passed to eval(). eval() is a PHP function that takes a piece of text and runs it as code, which is powerful and dangerous: if an attacker can influence the text, they can influence what runs. The contents are enclosed in double quotes and the PHP variable {$mybb->user['username']} is interpolated into the string. Interpolation means putting the value of a variable into a piece of text, the way a mail merge puts a name into a letter.

This does not enable RCE immediately because MyBB escapes double quotes in template values when they are stored into the database, so it is impossible to break out of the double quoted string. A template here is a reusable piece of page layout. "Breaking out" means ending the quoted text early so that what follows is treated as code rather than as text. A second PHP trick could have resulted in RCE: an attacker could modify the template and add a $ to the variable that becomes string interpolated. In PHP, a $ marks the start of a variable, so adding one could turn ordinary text into something the interpreter evaluates. MyBB also prevents administrators from inserting such interpolations. A bypass of MyBB's filter would still allow arbitrary PHP code execution, and the researchers achieved that bypass through an SQL injection. A filter is a check that blocks certain input; a bypass is a way around it.

Step 3: importing a malicious theme

MyBB themes can be imported through XML files which contain a set of theme properties such as the image directory or the version. XML is a text format for structured data, using tags much like HTML, and importing means loading a file into the forum to set it up. Additionally, a list of key-value pairs is read where the name correlates to the key of the theme component and the value to the contents. When an administrator imports such a theme, the XML is parsed and the properties of the theme are stored into the database. The templateset property turned out to be susceptible to a second order SQL injection: when themes are uploaded they are inserted into the database and later used in other SQL queries without any sanitisation. "Second order" means the harmful input is saved first and only causes trouble later, when something else reads it back. Sanitisation is the cleaning of input to remove anything dangerous.

Step 4: poisoning the template cache

At the beginning of each page load, MyBB fetches all possible template values from the database and stores them in a cache. A cache is a temporary store of data kept close at hand so the site does not have to fetch it again and again, like keeping frequently used phone numbers on a sticky note instead of looking them up each time. The SQL query that fetches all template values uses the templateset property, which is embedded unsanitized into the query string, so an SQL injection vulnerability occurs. A query is a request sent to the database, for example "give me all the templates". Embedding a value directly into the query text is like letting a stranger write part of a form you are filling in: they can add extra instructions. With a malicious theme, an attacker controls this attribute and makes the cache function return attacker controlled values. The resulting SQL query interposes the templateset attribute directly.

Step 5: code execution through eval

Through the SQL injection it is possible to poison the template cache with attacker controlled values that do not undergo any escaping or sanitisation. These values are passed to eval() inside the double quoted string, so arbitrary PHP code can be executed within the ${...} syntax. The ${...} syntax is a PHP way of writing a variable inside a string; if an attacker can put their own content there, the interpreter will run it. As a result, an attacker can execute arbitrary PHP code and compromise the underlying server. The underlying server is the actual machine the forum runs on, so this is the step where the attack escapes the website and reaches the computer itself.

Root cause

The XSS comes from a mismatch between two stages of the parser. The first stage encodes the URL in an [img] tag and strips whitespace, but URL and HTML encoding do not modify parentheses. The auto URL regex assumes that no character it matches on can survive inside an HTML attribute, and that assumption fails for ( and ). The second alternative then matches inside the attribute, inserts an <a> tag into the <img> tag, and the corrupted quoting lets the browser build an element with an attacker controlled event handler. In everyday terms, two workers on an assembly line each trusted the other to have done a job, and neither checked.

The RCE comes from a second order SQL injection. The templateset theme property is stored in the database on import and later embedded unsanitized into the query that populates the template cache. The injected values enter the template cache through the SQL query and do not undergo any escaping or sanitisation. The poisoned values reach eval() unescaped, and the ${...} syntax gives code execution. The normal editing screen had a guard on the door, but the import route led straight into the room behind it.

Impact

On default configurations, an unprivileged forum user can embed stored XSS payloads in threads, posts and private messages. By sending a private message to an administrator, the attacker triggers the exploit as soon as the administrator opens it, and the RCE vulnerability is then exploited automatically in the background. This leads to a full takeover of the targeted MyBB forum and compromise of the underlying server. The chain requires the targeted administrator to open the malicious message; no prior access to a privileged account is needed.

Fix

The report does not describe the individual code changes. The MyBB team cooperated on resolving the issues very quickly, and the affected range is versions 1.8.16 through 1.8.25, so the fix is to upgrade beyond that range. More generally, the researchers advise not letting regexes grow too complex in multi-step parsers and HTML renderers, especially when they are meant to prevent security issues, because such parsers can corrupt their own output.

Variants to test

These are the kinds of places where the same ideas could be checked in other software. They are written for people who test systems, but the reasoning is the same as above: look for a step that trusts another step's cleaning.

  1. Encoding gaps in auto-linkers. Take any forum or CMS that auto-converts bare URLs after rendering MyCodes or Markdown, and place parentheses, brackets or angle brackets inside an attribute value that the first stage does not encode. A CMS is a content management system, software for building and running a website. A positive result is an <a> tag appearing inside an existing tag and a browser building an element with an attacker controlled event handler.
  2. Second order injection through import features. Import theme, template or configuration files (XML or otherwise) whose properties are stored and later concatenated into queries. Concatenating means joining pieces of text end to end. A positive result is a stored property that changes the behaviour of a later query, for example by returning rows the importer did not create. A row is one record in a database table.
  3. Template cache poisoning. Look for caches populated by queries built from stored properties and then passed to eval() or similar sinks. A sink is a place where data finally gets used in a way that matters, such as being executed. A positive result is attacker supplied content reaching the sink without the escaping applied on the normal editing path.
  4. Filter bypasses around PHP string interpolation. Where an application blocks $ or quote characters in templates, look for a path that writes the same values into the database without passing through that filter. A positive result is a template value containing ${...} that is evaluated.

Glossary

  • Administrator: a user with the highest level of rights, able to change settings and manage the whole forum.
  • Attribute: extra information inside an HTML tag, such as the address an image loads from.
  • Authenticated: acting as a logged-in user.
  • Bypass: a way around a check or filter.
  • Cache: a temporary store of data kept close at hand so it does not have to be fetched again.
  • Capture the flag (CTF): a game where people try to break into a deliberately vulnerable system to find hidden flags.
  • CMS: content management system, software for building and running a website.
  • Concatenate: join pieces of text end to end.
  • CVE: Common Vulnerabilities and Exposures, a public catalogue giving each known vulnerability a permanent identifier.
  • Database: the organised store where a website keeps its data.
  • Default configuration: the settings a piece of software has when first installed, without special tweaks.
  • Encoding (HTML and URL): rewriting special characters so they are treated as plain text rather than as instructions.
  • Escaping: marking a character so it is treated as ordinary text rather than as a special symbol.
  • eval(): a PHP function that takes a piece of text and runs it as code.
  • Event handler: a piece of code that runs when something happens, such as an image failing to load (onerror).
  • Filter: a check that blocks certain input.
  • HTML: the language web pages are written in.
  • Interpolation: putting the value of a variable into a piece of text.
  • JavaScript: the programming language web pages use to make things happen in the browser.
  • Key-value pair: a label and its contents, where the label says what the thing is and the value says what it holds.
  • Markdown: a lightweight message format where simple symbols become formatted text.
  • Method: a named block of code that does a particular job.
  • MyBB: an open source bulletin board, that is, forum software.
  • MyCodes: MyBB's own Markdown-like message format.
  • Nested: one tag placed inside another, which is not supposed to happen here.
  • Parser: a program that reads text and works out its structure.
  • Payload: the actual content that carries out an attack.
  • PHP: the programming language MyBB is written in.
  • Privilege: a right to do something, such as manage settings.
  • Query: a request sent to a database.
  • Regex (regular expression): a pattern used to search text.
  • Remote code execution (RCE): making a server run the attacker's own code from a distance.
  • Rendering: turning stored content into the finished page you see.
  • Row: one record in a database table.
  • Sanitisation: cleaning input to remove anything dangerous.
  • Second order injection: an attack where harmful input is saved first and causes trouble later when it is read back.
  • Session: the period during which a website remembers that you are logged in.
  • Sink: a place where data finally gets used in a way that matters, such as being executed.
  • SQL: the language used to talk to a database.
  • SQL injection: sneaking extra instructions into a database query.
  • Stored XSS: cross-site scripting where the malicious content is saved on the site and served to whoever views it later.
  • Tag: a piece of HTML markup such as an image or a link.
  • Template: a reusable piece of page layout.
  • Theme: the set of colours, layouts and wording that gives a forum its look.
  • Variable: a named box in a program that holds a value.
  • Version: a label identifying a particular release of software.
  • Vulnerability: a weakness in software that someone can misuse to make it do something unintended.
  • Whitespace: a space, tab or line break.
  • XSS (cross-site scripting): getting your own JavaScript to run inside someone else's browser when they view a page.
  • XML: a text format for structured data, using tags much like HTML.

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.