cve/2021/CVE-2021-24457.md
2025-09-29 21:09:30 +02:00

18 lines
999 B
Markdown

### [CVE-2021-24457](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24457)
![](https://img.shields.io/static/v1?label=Product&message=Portfolio%20Responsive%20Gallery&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=1.1.8%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-89%20SQL%20Injection&color=brightgreen)
### Description
The get_portfolios() and get_portfolio_attributes() functions in the class-portfolio-responsive-gallery-list-table.php and class-portfolio-responsive-gallery-attributes-list-table.php files of the Portfolio Responsive Gallery WordPress plugin before 1.1.8 did not use whitelist or validate the orderby parameter before using it in SQL statements passed to the get_results() DB calls, leading to SQL injection issues in the admin dashboard
### POC
#### Reference
- https://wpscan.com/vulnerability/97f4f7da-22a8-42a6-88ac-82e95a6c06dd
#### Github
- https://github.com/20142995/nuclei-templates