WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

Admin Columns Free (< 4.3.2) & Pro (< 5.5.2) - Authenticated Stored Cross-Site Scripting (XSS) in Custom Field

Description

The Admin Columns WordPress plugin allowed to configure individual columns for tables. Each column had a type. The type "Custom Field" allowed to choose an arbitrary database column to display in the table. There was no escaping applied to the contents of "Custom Field" columns.

When a "Custom Field" was used with a database column that could be changed by attackers, JavaScript code could be injected. The code was executed when the table was rendered. Tables could be rendered both in the WordPress frontend and backend, possibly compromising high-privileged users.

Proof of Concept

1. Create a custom field for WordPress users which allows to store HTML
   control characters. This can be done, e.g., with the "Advanced Custom
   Fields" plugin [2].

2. Store "<img src=0 onerror=alert()>" in the custom field for any user.

3. Open the Admin Columns plugin settings.

4. Choose the "Admin Columns" tab and select "Users" from the drop down
   menu.

5. Click "Add Column", choose the type "Custom Field" and select the
   previously created custom field.

6. Open the user list in the WordPress backend. The JavaScript code will
   be executed. 

Affects Plugins

codepress-admin-columns
Fixed in version 4.3.2
admin-columns-pro
Fixed in version 5.5.2

References

CVE
CVE-2021-24365
URL
https://www.syss.de/fileadmin/dokumente/Publikationen/Advisories/SYSS-2021-032.txt

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

Johannes Lauinger, SySS GmbH

Verified

No

WPVDB ID
fdbeb137-b404-46c7-85fb-394a3bdac388

Timeline

Publicly Published

2021-05-31 (about 1 years ago)

Added

2021-06-21 (about 1 years ago)

Last Updated

2021-06-25 (about 1 years ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceDisclosure policy
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us