Accessibly <= 3.0.3 - Missing Authorization to Unauthenticated Stored Cross-Site Scripting via Widget Source Injection via REST API
- 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: yes
- Technical impact: partial
Summary
The Accessibly plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the REST API in all versions up to, and including, 3.0.3. The plugin registers REST API endpoints at `/otm-ac/v1/update-widget-options` and `/otm-ac/v1/update-app-config` with the `permission_callback` set to `__return_true`, which means no authentication or authorization check is performed. The `updateWidgetOptions()` function in `AdminApi.php` accepts user-supplied JSON data and passes it directly to `AccessiblyOptions::updateAppConfig()`, which saves it to the WordPress options table via `update_option()` without any sanitization or validation. The stored `widgetSrc` value is later retrieved by `AssetsManager::enqueueFrontendScripts()` and passed directly to `wp_enqueue_script()` as the script URL, causing it to be rendered as a `<script>` tag on every front-end page. This makes it possible for unauthenticated attackers to inject arbitrary JavaScript that executes for all site visitors by changing the `widgetSrc` option to point to a malicious external script.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- onthemapmarketing Accessibly – WordPress Website Accessibility
through 3.0.3
References 9
plugins.trac.wordpress.org
- browser/otm-accessibly/trunk/public/Api/BaseApiController.php#L22
- browser/otm-accessibly/tags/3.0.3/public/Api/BaseApiController.php#L22
- browser/otm-accessibly/trunk/public/admin/AdminApi.php#L65
- browser/otm-accessibly/tags/3.0.3/public/admin/AdminApi.php#L65
- browser/otm-accessibly/trunk/public/Data/AccessiblyOptions.php#L69
- browser/otm-accessibly/tags/3.0.3/public/Data/AccessiblyOptions.php#L69
- browser/otm-accessibly/trunk/public/AssetsManager.php#L63
- browser/otm-accessibly/tags/3.0.3/public/AssetsManager.php#L63