Cross Site Scripting In Webtrekk Pixel


Cross site scripting


Webtrekk Pixel

Vulnerable Version

v3.24 to v3.40, v4.00 to v4.40, v5.00 to v5.04

Fixed Version

v3.41, v4.41, v5.05

CVE Number






Malte Batram for SEC Consult Vulnerability Lab

The Webtrekk Pixel tracking component is affected by a cross site scripting vulnerability which allows attackers to inject malicious JavaScript/HTML code into the website hosting the tracking code.

Vendor Description

“Webtrekk Analytics offers an endless range of filter and analysis functions. Whatever type of site you operate, our analytics tools give you the raw data you need to dive into your web and app metrics so you can optimise your digital marketing campaigns.”


“At home in Germany, Webtrekk ranks first among professional analytics tools used by the 1,000 most popular .de domains. All told, Webtrekk has a 22.9 percent market share among providers for the top German domains, excluding sites that use Google Analytics or have no analytics system.”


Business Recommendation

The vendor provides a patch which should be installed immediately.

SEC Consult recommends to perform a thorough security review conducted by security professionals to identify and resolve all security issues.

Vulnerability Overview / Description

1) Cross site scripting vulnerability

The Webtrekk Pixel component, used on many websites to track users, has the capability to load arbitrary external JavaScript via multiple parameter combinations. The parameters are parsed from the search-part of the URL.



The URL specified in the parameter wt_reporter is checked by a Regex that can be bypassed in different ways.

Proof Of Concept

1) Cross site scripting vulnerability

Example URL:

The example URL leads to the inclusion of the following HTML in the page:

<script language="javascript" type="text/javascript"

Regex that checks the URL:

The .* at the end of the expression allows multiple bypasses:

  • Subdomain:
  • Auth:
  • NoSlash:

The last bypass leads to the inclusion of JavaScript from the domain, which at the time of testing was open to be registered, but has been registered by Webtrekk for security reasons now.

The vulnerability can also be triggered via cookies. This enables an attacker to execute JavaScript in the session of the victim anytime the website with the vulnerable script is visited, after only using the parameters from the search once to set the cookie values.

Cookie values:


Vulnerable / Tested Versions

Latest version v4.3.9 tested:

Also found to be vulnerable: 3.2.6, 4.0.5, 4.3.5

The setup for version 5 is different and the static part (tiLoader.min.js) does not include the vulnerable JavaScript directly. However code similiar to the overlay functions from version 3 and 4 seems to be loaded dynamically (which also includes the same Regex check).

According to the vendor, v5 is affected as well.



Vendor Contact Timeline

2017-08-30 Contacting vendor through & email under “Contact”, no answer
2017-09-12 Asking for contact again
2017-09-12 Vendor: requests sending the advisory and verifies it internally
2017-09-13 Vendor: optimized validation, fixed in internal version
2017-09-14 Release of patched version and vendor informs their customers
2017-10-17 Coordinated release of security advisory


Upgrade to the patched versions from the vendor immediately. The following versions contain better domain validation and fix the issue according to the vendor:

v3.41, v4.41, v5.05

According to the vendor, the updated versions are available within the support center on the vendor’s website for all customers and a message that a security update is available will be shown.


Setting “disableOverlayView: true” in the webtrekkConfig prevents the execution of the vulnerable code.

Advisory URL


EOF M. Batram / @2017


Interested to work with the experts of SEC Consult? Send us your application.
Want to improve your own cyber security with the experts of SEC Consult? Contact our local offices.