Description
The WP Delicious – Recipe Plugin for Food Bloggers (formerly Delicious Recipes) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'details[].icon' parameter in all versions up to, and including, 1.10.11 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The payload bypasses wp_kses_post on save because Gutenberg serializes block attribute JSON with JSON_HEX_QUOT, encoding double-quotes as \u0022 so no raw quote or angle bracket appears in post_content; parse_blocks() restores the literal quote at render time, producing the HTML attribute breakout.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| wpdelicious | WP Delicious – Recipe Plugin for Food Bloggers (formerly Delicious Recipes) | ≤ 1.10.11 | — |
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6b15c08c-5ad2-42e0-8301-b13195944838?source=cve
- https://plugins.trac.wordpress.org/browser/delicious-recipes/tags/1.10.10/src/blocks/dynamic-blocks/class-delicious-dynamic-recipe-card.php#L1063
- https://plugins.trac.wordpress.org/browser/delicious-recipes/tags/1.10.10/src/blocks/dynamic-blocks/class-delicious-dynamic-recipe-card.php#L395
- https://plugins.trac.wordpress.org/browser/delicious-recipes?rev=3804205
- https://plugins.trac.wordpress.org/changeset/3804205/delicious-recipes/trunk/src/blocks/dynamic-blocks/class-delicious-dynamic-recipe-card.php