HivePress <= 1.7.31 - Unauthenticated Stored Cross-Site Scripting via Custom User Attribute Value via Registration Form
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
The HivePress – Business Directory, Listings & Classified Ads Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '<custom user attribute field name, e.g. profile_test>' parameter in all versions up to, and including, 1.7.31 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires an administrator to have configured a text-type custom user attribute whose display format places %value% inside an HTML attribute context (e.g., the documented pattern <a href="%value%">Custom link</a>), and for front-end user profiles to be enabled — both of which reflect the plugin's standard, documented configuration.
Text from CVE List
Affected versions 1
- HivePress – Business Directory, Listings & Classified Ads Pluginaffected: all versions through 1.7.31CVE List
References 6
- github.com/hivepress/hivepress/releases/tag/1.7.32Fixvia CVE List
- wordfence.com/threat-intel/vulnerabilities/id/d0e73b59-58d7-4f4b-b7f3-568190be9b09?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/hivepress/tags/1.7.31/includes/helpers.php#L382Referencevia CVE List
- plugins.trac.wordpress.org/browser/hivepress/tags/1.7.31/includes/fields/class-field.php#L561Referencevia CVE List
- plugins.trac.wordpress.org/browser/hivepress/tags/1.7.31/includes/fields/class-text.php#L197Referencevia CVE List
- plugins.trac.wordpress.org/browser/hivepress/tags/1.7.31/includes/components/class-attribute.php#L1298Referencevia CVE List