当前位置: 首页 > article >正文

[Meachines] [Easy] Sea WonderCMS-XSS-RCE+System Monitor 命令注入

信息收集

IP AddressOpening Ports
10.10.11.28TCP:22,80

$ nmap -p- 10.10.11.28 --min-rate 1000 -sC -sV

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
|   3072 e3:54:e0:72:20:3c:01:42:93:d1:66:9d:90:0c:ab:e8 (RSA)
|   256 f3:24:4b:08:aa:51:9d:56:15:3d:67:56:74:7c:20:38 (ECDSA)
|_  256 30:b1:05:c6:41:50:ff:22:a3:7f:41:06:0e:67:fd:50 (ED25519)
80/tcp open  http    Apache httpd 2.4.41 ((Ubuntu))
| http-cookie-flags:
|   /:
|     PHPSESSID:
|_      httponly flag not set
|_http-server-header: Apache/2.4.41 (Ubuntu)
|_http-title: Sea - Home
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

Wonder-CMS && XSS-RCE

image.png

$ feroxbuster --url http://10.10.11.28/

image-3.png

image-2.png

https://github.com/prodigiousMind/CVE-2023-41425

http://10.10.11.28/contact.php

image-1.png

复制xss载荷到字段website发送

image-4.png

获取反向shell后在/var/www/sea/data/database.js 存在hash

image-5.png

$ john –wordlist=/usr/share/wordlists/rockyou.txt hash

john破解后密码是:mychemicalromance

User.txt

5b1f824a93b0ea7e012b0a84fdbac2cc

权限提升 - System Monitor 命令注入

amay@sea:~$ netstat -lnput

image-6.png

$ ssh -L 8888:127.0.0.1:8080 amay@10.10.11.28

http://127.0.0.1:8888

输入amay账户密码后进入

image-7.png

把命令chmod u+s /bin/bash进行url编码并且对字段log_file命令注入

image-8.png

amay@sea:~$ /bin/bash -p

提升至root权限特权模式

image-9.png

Root.txt

4c0c7c21e39e202983ecab6d8c15f493


http://www.kler.cn/news/333244.html

相关文章:

  • (六)Shell 脚本应用(1):基础与环境变量详解
  • 《深度学习》【项目】OpenCV 发票识别 透视变换、轮廓检测解析及案例解析
  • 最新版本SkyWalking【10.1.0】部署
  • 服务器使用了代理ip,遇到流量攻击,会对服务器有影响吗
  • ROS报错The target name “test“ is reserved when CTest testing is enabled
  • NLP任务之翻译
  • 封装了一个iOS水平方向动态宽度layout
  • 反调试—1
  • websockets库使用(基于Python)
  • 【AI学习】Mamba学习(二):线性注意力
  • Qt系统学习篇(6)-QMainWindow
  • 新闻推荐系统:Spring Boot的可扩展性
  • Linux:Linux进程概念
  • 前端Vue项目的自动打包、上传与部署
  • 数据结构-链表笔记
  • PostgreSQL的pglz使用限制
  • 【递归】12. leetcode 1448 统计二叉树中好节点的数目
  • CSS画出三角形的做法
  • CNI(Container Network Interface)机制是一种用于容器网络的标准化接口,旨在为容器提供一致的网络插件模型。
  • Ps:将画板导出到 PDF