PT-2021-3990 · WordPress · Portfolio Responsive Gallery

Duongtq

·

Published

2021-06-29

·

Updated

2021-08-10

·

CVE-2021-24457

CVSS v2.0

9.3

High

VectorAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Portfolio Responsive Gallery WordPress plugin versions prior to 1.1.8
Description The issue is related to the implementation of the get portfolios() and get portfolio attributes() functions in the Portfolio Responsive Gallery WordPress plugin. It is caused by a lack of protection against SQL query structure exploitation. This allows a remote attacker to execute arbitrary SQL code. The orderby parameter is not validated or whitelisted before being used in SQL statements, leading to SQL injection issues in the admin dashboard.
Recommendations For versions prior to 1.1.8, update to version 1.1.8 or later to resolve the issue. As a temporary workaround, consider restricting access to the get portfolios() and get portfolio attributes() functions until a patch is available. Avoid using the orderby parameter in the affected SQL statements until the issue is resolved.

Exploit

Fix

SQL injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2021-04511
CVE-2021-24457

Affected Products

Portfolio Responsive Gallery