Skip to content
XSS Disclosed report Intermediate CVE-2026-133206

VAST XML injection can replace video playback tracking

An advertiser could insert XML syntax into fields of its own video creative, and because those values were not escaped when the creative was served in a publisher's zone, extra elements could be added to the VAST response. A crafted tracking block could then replace the ad server's playback tracking URLs, suppressing its video event records and sending tracking requests to an attacker-controlled endpoint.

a1man12 Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in 37 hours
  • Fixed in 41 hours
  • Disclosed after 9 days

Summary by the program

Description

HackerOne community member Aiman Al Mashhadani reported that an advertiser could place XML syntax in fields of its own video creative. When that creative was served in a publisher's zone, unescaped MediaFile attributes and CDATA terminators allowed the advertiser to add elements to the VAST response. A crafted TrackingEvents block could be selected in place of the ad server's playback tracking URLs, suppressing its video event records and directing tracking requests to an attacker-controlled endpoint. The advertiser did not need access to the publisher's zone.

Resolution

VAST MediaFile attributes and other dynamic attributes are now XML-escaped. CDATA terminators in dynamic text, URLs and markup are split so they remain data within the XML document, including in companion and overlay content.

Security advisory: https://www.revive-adserver.com/security/revive-sa-2026-005

The original report as published on HackerOne, by a1man12. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Context

Revive Adserver is an open source ad server. Advertisers create creatives, publishers place zones on their sites, and the ad server decides which creative is served into which zone and records the events that follow. For video creatives the ad server returns a VAST document, an XML response that describes the video ad, its media files and the tracking events the player should fire back to the ad server.

The report concerns the video creative fields an advertiser controls. Those fields are written into the VAST XML that is served to a publisher's zone. The advertiser does not need any access to the publisher's zone: the advertiser only needs its own creative to be served there.

Setup

The report describes a single role on the attacker side: an advertiser with its own video creative. No accounts, tools or versions are given beyond that. The precondition is that the advertiser's creative is served in a publisher's zone, which is the normal operation of the product.

Finding it

An advertiser could place XML syntax in fields of its own video creative, and it was not escaped when the creative was served. Two things were possible as a result:

  1. Unescaped MediaFile attributes allowed the advertiser to add attributes and elements to the VAST response.
  2. CDATA terminators in dynamic text allowed the advertiser to close the CDATA section early and inject markup of its own.

Because the injected markup becomes part of the VAST document the player parses, the advertiser can add elements that the ad server did not intend to send, including a crafted TrackingEvents block.

Exploitation

Step 1: place XML syntax in the creative fields

The advertiser puts XML syntax into fields of its own video creative. The report does not reproduce the exact field values used.

Step 2: have the creative served in a publisher's zone

When the creative is served in a publisher's zone, the ad server builds the VAST response from those fields without escaping them. The unescaped MediaFile attributes and CDATA terminators end up in the XML document sent to the player.

Step 3: inject a TrackingEvents block

The injected markup lets the advertiser add elements to the VAST response. A crafted TrackingEvents block can then be selected in place of the ad server's playback tracking URLs.

Step 4: suppress and redirect tracking

With the crafted TrackingEvents block in place, the ad server's video event records are suppressed and the tracking requests go to an endpoint the attacker controls instead.

Root cause

Dynamic values from the advertiser's creative were written into the VAST XML without XML escaping. MediaFile attributes and other dynamic attributes were emitted raw, and CDATA terminators in dynamic text were not neutralised, so a value could close the CDATA section and introduce markup.

Impact

The advertiser can alter the VAST response served to a publisher's zone: add elements, replace the ad server's playback tracking URLs with its own, suppress the ad server's video event records and direct tracking requests to an attacker-controlled endpoint. The advertiser does not need access to the publisher's zone. The report rates this as medium severity with a CVSS score of 4.3.

Fix

VAST MediaFile attributes and other dynamic attributes are now XML-escaped. CDATA terminators in dynamic text, URLs and markup are split so they remain data within the XML document, including in companion and overlay content. The report links to security advisory revive-sa-2026-005.

Variants to test

  • Put XML syntax into every advertiser-controlled field that reaches a VAST response, not only MediaFile attributes, and check whether the response parses with the injected element present.
  • Put a CDATA terminator into dynamic text, URLs and markup, including companion and overlay content, and check whether the following text is treated as markup rather than data.
  • Inject a TrackingEvents block and check whether the player fires the attacker's URLs instead of the ad server's.

A positive result is a VAST response in which the injected element or attribute appears as structure, or in which the player requests the attacker-controlled endpoint.

Hunting notes

This kind of bug hides where user-controlled values are assembled into XML or other structured output: ad markup, feeds, sitemaps and API responses. During recon, look for features where a lower-privileged role supplies fields that are later served to a different party, and for responses that embed those fields verbatim. The crafted TrackingEvents block could replace the ad server's playback tracking URLs and suppress its event records, which turns a syntax issue into a concrete loss of tracking for the publisher.

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

What happened, in plain words

Revive Adserver is a piece of software that websites use to show adverts. An advertiser (the person or company that wants their advert shown) uploads an advert, called a creative, into the ad server. A publisher (the website owner) puts a slot, called a zone, on their pages. The ad server decides which creative goes into which zone and keeps a record of what happens next: when the video starts, when it is watched to the end, and so on.

For video adverts the ad server does not send a video file directly. It sends a short text document in a format called VAST. VAST is written in XML, a way of marking up text with tags so a computer can understand its structure. The VAST document tells the video player which video files to load and which tracking addresses to call when the viewer does something.

Aiman Al Mashhadani reported that an advertiser could put XML syntax into the fields of its own video creative, and that syntax was copied into the VAST document without being made safe. The result was that the advertiser could add its own instructions to the document the player receives. In particular it could add a block that tells the player where to send tracking events, replacing the ad server's own tracking addresses. The ad server's records of video events could then be lost, and the tracking requests could go to a server the attacker controlled. The advertiser did not need any access to the publisher's zone to do this.

The issue was rated medium severity with a CVSS score of 4.3. CVSS is a standard scoring system for the seriousness of a security flaw, where a higher number means more risk. The fix makes the ad server escape XML syntax in these fields and neutralise the markers that end a CDATA section, so the advertiser's text stays text.

Background you need first

A few ideas come up again and again below, so here they are from zero.

Ad server. Software that stores adverts and decides which one to show on which website, then counts what happened. Think of a restaurant manager who decides which dish goes to which table and keeps a note of every order served.

Advertiser and publisher. The advertiser supplies the advert. The publisher owns the website where the advert appears. They are two different parties, and normally neither can touch the other's settings.

Creative. One advert as stored in the ad server: the video file, the click-through address, the tracking addresses, and so on.

Zone. A slot on a publisher's page where adverts may appear. The publisher creates it and controls it.

XML. A text format for structured data. It uses tags in angle brackets, like <name>value</name>, to mark where a piece of information starts and ends. A program that reads XML is called an XML parser. The parser treats tags as structure, not as ordinary text.

Escaping. Replacing characters that have a special meaning in a format with safe stand-ins, so they are read as plain text. In XML, < becomes &lt; and > becomes &gt;. If you write a shopping list and one item is literally the word "and", you put it in quotes so the reader does not think it joins two items. Escaping does the same job for a computer.

CDATA. A way of telling an XML parser "everything until the marker ]]> is plain text, do not treat it as tags". It is useful for addresses and snippets that contain angle brackets. The marker ]]> is the CDATA terminator: it ends the plain-text section.

VAST. Video Ad Serving Template. A standard XML document that describes a video advert to a player: the media files, the click address, and the tracking events. A video player reads it and acts on it.

Tracking event and TrackingEvents block. A tracking event is an address the player calls when something happens, for example when the video starts or finishes. In VAST these sit inside a TrackingEvents block. The ad server uses them to count views. If those addresses are replaced, the counting goes to whoever owns the replacement address.

XML injection. The vulnerability class here. The everyday comparison: a form asks for your name and you write Smith </form> <form action=...>, and the system pastes that straight into a web page, so your text becomes part of the page's machinery.

Endpoint. A specific address on a server that accepts requests, for example a URL that records a tracking event.

Context

Revive Adserver is an open source ad server. Open source means the code is published and anyone can read it. Advertisers create creatives, publishers place zones on their sites, and the ad server decides which creative is served into which zone and records the events that follow. For video creatives the ad server returns a VAST document, an XML response that describes the video ad, its media files and the tracking events the player should fire back to the ad server.

The report concerns the video creative fields an advertiser controls. Those fields are written into the VAST XML that is served to a publisher's zone. The advertiser does not need any access to the publisher's zone: the advertiser only needs its own creative to be served there.

In plain terms: the advertiser fills in a form describing its advert. Some of those answers are copied into the VAST document that the publisher's visitors receive. The advertiser never logs into the publisher's account, but its text still ends up in the publisher's video player.

Setup

The report describes a single role on the attacker side: an advertiser with its own video creative. No accounts, tools or versions are given beyond that. The precondition is that the advertiser's creative is served in a publisher's zone, which is the normal operation of the product.

That last point matters. It only needs the ordinary situation in which its advert is shown on someone's site, which is exactly what an ad server is for.

Finding it

An advertiser could place XML syntax in fields of its own video creative, and it was not escaped when the creative was served. Two things were possible as a result:

  1. Unescaped MediaFile attributes allowed the advertiser to add attributes and elements to the VAST response.
  2. CDATA terminators in dynamic text allowed the advertiser to close the CDATA section early and inject markup of its own.

A MediaFile is the entry in the VAST document that points at the actual video file. It carries attributes, which are extra pieces of information written inside the tag, such as the file type or dimensions. If those attribute values are copied in raw, an advertiser can add attributes and elements to the VAST response.

The second route uses CDATA. If the advertiser's text contains the terminator ]]>, the section ends early, and whatever follows is read as markup. The comparison: a letter says "read everything inside the brackets as a quotation". If the quoted text itself contains the closing bracket, the reader thinks the quotation has ended and treats the rest as the writer's own words.

Because the injected markup becomes part of the VAST document the player parses, the advertiser can add elements that the ad server did not intend to send, including a crafted TrackingEvents block.

Exploitation

Step 1: place XML syntax in the creative fields

The advertiser puts XML syntax into fields of its own video creative. The report does not reproduce the exact field values used.

Why this step: the advertiser controls these fields through the normal creative form, so this is the only place it can plant text. No special access is needed, just the ability to describe your own advert.

Step 2: have the creative served in a publisher's zone

When the creative is served in a publisher's zone, the ad server builds the VAST response from those fields without escaping them. The unescaped MediaFile attributes and CDATA terminators end up in the XML document sent to the player.

Why this step: the injection only matters when the document is actually built and sent. The advertiser waits for its advert to be shown, which is the normal course of business.

Step 3: inject a TrackingEvents block

The injected markup lets the advertiser add elements to the VAST response. A crafted TrackingEvents block can then be selected in place of the ad server's playback tracking URLs.

Why this step: the goal is not to break the page but to change one specific part of the document, the part that says where tracking events go. A crafted TrackingEvents block can be selected in place of the ad server's playback tracking URLs.

Step 4: suppress and redirect tracking

With the crafted TrackingEvents block in place, the ad server's video event records are suppressed and the tracking requests go to an endpoint the attacker controls instead.

Why this matters: the publisher loses its video event records, and tracking requests go to the attacker's endpoint.

Root cause

Dynamic values from the advertiser's creative were written into the VAST XML without XML escaping. MediaFile attributes and other dynamic attributes were emitted raw, and CDATA terminators in dynamic text were not neutralised, so a value could close the CDATA section and introduce markup.

The everyday comparison: a clerk copies your handwritten note straight onto official letterhead. You wrote a sentence that happens to contain the words "and hereby authorise", and the reader takes it as an instruction from the office rather than as your quoted words. The clerk treated it as text; the reader treated it as an order.

Impact

The advertiser can alter the VAST response served to a publisher's zone: add elements, replace the ad server's playback tracking URLs with its own, suppress the ad server's video event records and direct tracking requests to an attacker-controlled endpoint. The advertiser does not need access to the publisher's zone. The report rates this as medium severity with a CVSS score of 4.3.

Medium severity fits: the publisher's measurement of its own video advertising can be falsified, and tracking traffic can be sent to a third party.

Fix

VAST MediaFile attributes and other dynamic attributes are now XML-escaped. CDATA terminators in dynamic text, URLs and markup are split so they remain data within the XML document, including in companion and overlay content.

In plain terms: the ad server now converts special characters into their safe stand-ins before writing them into the document, and it breaks up any ]]> sequence so it can no longer end a CDATA section early. Companion and overlay content are the other kinds of advert material that appear alongside or on top of the video, and they received the same treatment.

The fix is documented in security advisory revive-sa-2026-005.

Variants to test

  • Put XML syntax into every advertiser-controlled field that reaches a VAST response, not only MediaFile attributes, and check whether the response parses with the injected element present.
  • Put a CDATA terminator into dynamic text, URLs and markup, including companion and overlay content, and check whether the following text is treated as markup rather than data.
  • Inject a TrackingEvents block and check whether the player fires the attacker's URLs instead of the ad server's.

A positive result is a VAST response in which the injected element or attribute appears as structure, or in which the player requests the attacker-controlled endpoint.

Hunting notes

This kind of bug hides where user-controlled values are assembled into XML or other structured output: ad markup, feeds, sitemaps and API responses. An API is a way for one program to ask another for data, usually returning it in a structured format. A feed is a machine-readable list of items, and a sitemap is a list of a site's pages for search engines. All of them are structured output, so all of them can suffer the same confusion between data and structure.

During recon, look for features where a lower-privileged role supplies fields that are later served to a different party, and for responses that embed those fields verbatim. Recon means the early exploration of a target to see what it does and who can do what. The pattern to spot is one party writing text and another party receiving it inside a document.

The crafted TrackingEvents block could replace the ad server's playback tracking URLs and suppress its event records, which turns a syntax issue into a concrete loss of tracking for the publisher. That is the difference between a curiosity and a report: showing what the publisher actually loses.

Glossary

  • Ad server: software that stores adverts, decides which one to show where, and records what happened.
  • Advertiser: the party that supplies an advert to the ad server.
  • Publisher: the party that owns the website where adverts appear and creates zones for them.
  • Creative: one advert as stored in the ad server, including its video file and tracking addresses.
  • Zone: a slot on a publisher's page where adverts may be shown.
  • XML: a text format that uses tags in angle brackets to describe structured data.
  • XML parser: the program that reads an XML document and treats its tags as structure.
  • Escaping: replacing characters with special meaning in a format by safe stand-ins so they are read as plain text.
  • CDATA: an XML section whose contents are treated as plain text rather than tags.
  • CDATA terminator: the sequence ]]> that ends a CDATA section.
  • VAST: Video Ad Serving Template, the XML document that describes a video advert to a player.
  • MediaFile: the VAST entry that points at the actual video file, carrying attributes such as type and dimensions.
  • Attribute: an extra piece of information written inside an XML tag.
  • Tracking event: an address the player calls when something happens, such as the video starting or finishing.
  • TrackingEvents block: the VAST element that groups tracking events.
  • Endpoint: a specific address on a server that accepts requests.
  • API: a way for one program to request data or actions from another, usually in a structured format.
  • Feed: a machine-readable list of items published by a site.
  • Sitemap: a machine-readable list of a site's pages, used by search engines.
  • Recon: the early exploration of a target to learn what it does and who can do what.
  • CVSS: a standard scoring system for the seriousness of a security flaw, where a higher number means more risk.
  • Severity: the overall seriousness rating of a flaw, here medium.
  • Open source: software whose code is published and can be read by anyone.
  • Companion content: advert material shown alongside a video.
  • Overlay content: advert material shown on top of a video.

More from Revive Adserver

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.