Booking System Trafft <= 1.0.17 - Authenticated (Subscriber+) Stored Cross-Site Scripting
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Booking System Trafft plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `bookingWebsiteUrl` setting in all versions up to, and including, 1.0.17 due to a missing capability check on the `set_options` AJAX action when the plugin is operating in agency mode. The `trafftSetOptions()` handler verifies a nonce that is exposed to any authenticated user (it is printed inline on every admin page, including profile.php) but performs no capability check before calling `update_option('trafft_option', ['bookingWebsiteUrl' => ...])`. This setting is then used by `trafftAdminAssets()` to enqueue `<bookingWebsiteUrl>/embed.js` as a script on every front-end page that renders the booking shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to point the embed-script URL at an attacker-controlled origin and execute arbitrary JavaScript in the browser of every site visitor (including admins).
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- ameliabooking Booking System Trafft
through 1.0.17
References 11
plugins.trac.wordpress.org
- browser/booking-system-trafft/trunk/trafft.php#L139
- browser/booking-system-trafft/tags/1.0.17/trafft.php#L139
- browser/booking-system-trafft/trunk/trafft.php#L155
- browser/booking-system-trafft/tags/1.0.17/trafft.php#L155
- browser/booking-system-trafft/trunk/trafft.php#L176
- browser/booking-system-trafft/tags/1.0.17/trafft.php#L176
- browser/booking-system-trafft/trunk/trafft.php#L325
- browser/booking-system-trafft/tags/1.0.17/trafft.php#L325
- browser/booking-system-trafft/trunk/trafft.php#L354
- browser/booking-system-trafft/tags/1.0.17/trafft.php#L354