Home / exploitsPDF  

Wordpress Levo-Slideshow 2.3 - Arbitrary File Upload Vulnerability

Posted on 30 November -0001

<HTML><HEAD><TITLE>Wordpress Levo-Slideshow 2.3 - Arbitrary File Upload Vulnerability</TITLE><META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD><BODY>Document Title: =============== Wordpress Levo-Slideshow 2.3 - Arbitrary File Upload Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1854 Release Date: ============= 2016-06-07 Vulnerability Laboratory ID (VL-ID): ==================================== 1854 Common Vulnerability Scoring System: ==================================== 7.5 Product & Service Introduction: =============================== Make sure you have a Levo slideshow a very effective technique to display unlimited number of product images within a single box and just takes only few minutes to accomplish without getting too much into coding. No WP slider plugin has become as wide-spread and as popular recently as this particular free WP Levo slider, offering a marvelous method for displaying a lot of content in such a minimal space, and to mention also a great way to highlight your best and most popular product images or articles in an enhanced way. And on top off all that, this indispensable, yet smooth and free WP slider plugin is incorporated with amazing set of features including a colossal space set aside to main flash image, a miniature sized image, image reflection option, description box with title, navigation arrows, auto-play/pause button, auto play timer into your WP powered websites or blogs. (Copy of the Homepage: http://wpslideshow.com/levo-slidehsow/ ) Abstract Advisory Information: ============================== An independent Vulnerability Laboratory Researcher discovered a arbitrary file upload vulnerability in the Wordpress Levo-Slideshow v2.3 plugin. Vulnerability Disclosure Timeline: ================================== 2016-06-07: Public Disclosure (Aaditya Purani) Discovery Status: ================= Published Affected Product(s): ==================== Go Responsive (Themes) Product: Levo-Slideshow - Wordpress Plugin (Web-Application) 2.3 Exploitation Technique: ======================= Remote Severity Level: =============== High Technical Details & Description: ================================ An arbitrary file upload web vulnerability has been discovered in the official Levo-Slideshow v2.3 wordpress plugin web-application. The vulnerability allows remote attackers to upload files via POST method with multiple extensions to unauthorized access them on application-side of the service. The vulnerability is located in the "admin.php" file when processing to upload via the admin.php file own malicious context or webshells. After the upload the remote attackers are able to access the file with one extension and exchange it with the another one to execute for example php codes. The security risk of the vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 7.5. Exploitation of the arbitrary file upload vulnerability requires no user interaction and an unprivileged application user account. Successful exploitation of the vulnerability results in unauthorized file access via arbitrary file upload exploitation. Vulnerable Application(s): [+] Wordpress Levo-Slideshow v2.3 Vulnerable Module(s): [+] /wordpress/wp-admin/ Vulnerable File(s): [+] admin.php Affected Module(s): [+] /uploads/levoslideshow/[ALBUM_NUMBER]_uploadfolder/big/ Proof of Concept (PoC): ======================= The arbitrary file upload web vulnerability can be exploited by remote attackers without user interaction and with an uprivileged application user account. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Login as an unprivileged user, which has no privilege of even uploading a plugin 2. Go to http://site.com/wp-admin/admin.php?page=levoslideshow_manage 3. If any Gallery exists than don't create and go to "Category Management" 4. Click on "Add New", Upload any .png / ,jpg image from your PC and intercept the request 5. After Intercepting the request while upload, Send request to Repeater 6. Change filename = image.png.php and in $POST image data add your PHP Backdoor between image chunk . It should look like this http://postimg.org/image/ih4lwyad7/ 7. Forward the request and go to site.com/wp-content/uploads/levoslideshow/[ALBUM_NUMBER]_uploadfolder/big/[YourShell] to access your shell 8. Successful reproduce of the vulnerability! PoC: Exploitation $GET: http://127.0.0.1/wordpress/wp-admin/admin.php?page=levoslideshow_manage&view=manage_album&album_id=1 --- PoC Session Logs [POST] --- $POST: -----------------------------13856199112125898801554614298rn Content-Disposition: form-data; name="task"rn rn lvo_single_image_uploadrn -----------------------------13856199112125898801554614298rn Content-Disposition: form-data; name="album_id"rn rn 1rn -----------------------------13856199112125898801554614298rn Content-Disposition: form-data; name="image_title"rn rn Okaiern -----------------------------13856199112125898801554614298rn Content-Disposition: form-data; name="image_description"rn rn Hackedrn -----------------------------13856199112125898801554614298rn Content-Disposition: form-data; name="image_file"; filename="aadityaa.jpg.php"rn Content-Type: image/jpegrn rn Garbaged PNG codes.... <?php phpinfo(); ?> again Garbage Png code.. .... Note: I am Uploading a Real png image first, intercepting it's request, Sending to Repeater and adding PHP Backdoor withing the chunks of PNG image as i shown in image of above PNG. and access shell : site.com/wp-content/uploads/levoslideshow/[ALBUM_NUMBER]_uploadfolder/big/[Shell.png.php] Solution - Fix & Patch: ======================= The vulnerability can be patched by a secure validation of the file extension. Restrict the extensions and strip codes out of all image files. After validation force the script to use an image extension. Security Risk: ============== The security risk of the arbitrary file upload web vulnerability in the wordpress plugin is estimated as high. (CVSS 7.5) Credits & Authors: ================== Aaditya Purani - (https://aadityapurani.com) [http://www.vulnerability-lab.com/show.php?user=Aaditya%20Purani] Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="ddbcb9b0b4b39daba8b1b3b8afbcbfb4b1b4a9a4f0b1bcbff3beb2b0">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script> - <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="47352234222635242f0731322b29223526252e2b2e333e6a2b26256924282a">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script> - <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="0b6a6f6662654b6e7d64677e7f62646526786e6825686466">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script> Section: magazine.vulnerability-lab.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@ or <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="f08295839591829398b086859c9e95829192999c998489dd9c9192de939f9d">[email protected]</a><script data-cfhash='f9e31' type="text/javascript">/* <![CDATA[ */!function(t,e,r,n,c,a,p){try{t=document.currentScript||function(){for(t=document.getElementsByTagName('script'),e=t.length;e--;)if(t[e].getAttribute('data-cfhash'))return t[e]}();if(t&&(c=t.previousSibling)){p=t.parentNode;if(a=c.getAttribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).toString(16)).slice(-2);p.replaceChild(document.createTextNode(decodeURIComponent(e)),c)}p.removeChild(t)}}catch(u){}}()/* ]]> */</script>) to get a ask permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™ </BODY></HTML>

 

TOP