韵达快递某站命令执行直入内网

admin 2017年5月1日08:27:44评论394 views字数 192阅读0分38秒阅读模式
摘要

2016-04-28: 细节已通知厂商并且等待厂商处理中
2016-04-28: 厂商已经确认,细节仅向厂商公开
2016-05-08: 细节向核心白帽子及相关领域专家公开
2016-05-18: 细节向普通白帽子公开
2016-05-28: 细节向实习白帽子公开
2016-06-12: 细节向公众公开

漏洞概要 关注数(8) 关注此漏洞

缺陷编号: WooYun-2016-202582

漏洞标题: 韵达快递某站命令执行直入内网

相关厂商: 韵达快递

漏洞作者: 卡卡

提交时间: 2016-04-28 09:44

公开时间: 2016-06-12 19:20

漏洞类型: 命令执行

危害等级: 高

自评Rank: 20

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: 无

0人收藏


漏洞详情

披露状态:

2016-04-28: 细节已通知厂商并且等待厂商处理中
2016-04-28: 厂商已经确认,细节仅向厂商公开
2016-05-08: 细节向核心白帽子及相关领域专家公开
2016-05-18: 细节向普通白帽子公开
2016-05-28: 细节向实习白帽子公开
2016-06-12: 细节向公众公开

简要描述:

好久没冒泡了

详细说明:

漏洞站点

code 区域
http://soa.dongputech.com:7010/

存在weblogic反序列化漏洞

韵达快递某站命令执行直入内网

cat /usr/local/nginx/conf/nginx.conf

code 区域
worker_processes  4;
google_perftools_profiles /tmp/tcmalloc;
events {
worker_connections 8192;
}
http {
# 1 ip
geo $limited {
default 1;
127.0.0.1/32 0;
10.0.0.0/16 0;
10.3.0.0/16 0;
10.4.0.0/16 0;
10.10.0.0/16 0;
192.168.1.0/24 0;
192.168.105.0/24 0;
58.40.18.71/32 0;
218.83.242.38/32 0;
116.228.72.131 0;
222.72.45.34 0;
211.103.142.2/32 0;
}
map $limited $limit {
1 $binary_remote_addr;
0 "";
}
limit_req_zone $limit zone=one:10m rate=300r/m;
limit_req zone=one burst=20;

# 2 config
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server_tokens off;

# 3 zip
gzip on;
gzip_min_length 4096;
gzip_buffers 4 8k;
gzip_types text/* text/css application/javascript application/x-javascript;
gzip_comp_level 1;
gzip_vary on;
gzip_http_version 1.1;

# 4 server
server {
listen 11113;
server_name localhost;
root /yd;
access_log /dev/null;
error_log /dev/null;
index index.php;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# 5 filter
if ($request_uri ~* "(cost/()|(concat/()") {
return 404;
}
if ($request_uri ~* "[+|(%20)]union[+|(%20)]") {
return 404;
}
if ($request_uri ~* "[+|(%20)]and[+|(%20)]") {
return 404;
}
if ($request_uri ~* "[+|(%20)]select[+|(%20)]") {
return 404;
}
if ( $query_string ~* ".*[/;'/</>].*" ){
return 404;
}

# 6 match
location ~ /.jsp$ {
proxy_set_header Host $host:11113;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:7001;
}

location ~ /.(js|htm|html|xml|txt|jpg|gif|png|css|ico|xsl|swf|zip|exe|doc|docx|xls|xlsx)$
{
expires 1h;
}

# 7 status
location /nginx_status {
stub_status on;
access_log off;
allow 10.0.2.0/24;
deny all;
}

}
}

系统自带nmap,可直接进行扫描。架设socks可进一步对内网进行渗透,就不深入了

漏洞证明:

韵达快递某站命令执行直入内网

cat /usr/local/nginx/conf/nginx.conf

code 区域
worker_processes  4;
google_perftools_profiles /tmp/tcmalloc;
events {
worker_connections 8192;
}
http {
# 1 ip
geo $limited {
default 1;
127.0.0.1/32 0;
10.0.0.0/16 0;
10.3.0.0/16 0;
10.4.0.0/16 0;
10.10.0.0/16 0;
192.168.1.0/24 0;
192.168.105.0/24 0;
58.40.18.71/32 0;
218.83.242.38/32 0;
116.228.72.131 0;
222.72.45.34 0;
211.103.142.2/32 0;
}
map $limited $limit {
1 $binary_remote_addr;
0 "";
}
limit_req_zone $limit zone=one:10m rate=300r/m;
limit_req zone=one burst=20;

# 2 config
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server_tokens off;

# 3 zip
gzip on;
gzip_min_length 4096;
gzip_buffers 4 8k;
gzip_types text/* text/css application/javascript application/x-javascript;
gzip_comp_level 1;
gzip_vary on;
gzip_http_version 1.1;

# 4 server
server {
listen 11113;
server_name localhost;
root /yd;
access_log /dev/null;
error_log /dev/null;
index index.php;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# 5 filter
if ($request_uri ~* "(cost/()|(concat/()") {
return 404;
}
if ($request_uri ~* "[+|(%20)]union[+|(%20)]") {
return 404;
}
if ($request_uri ~* "[+|(%20)]and[+|(%20)]") {
return 404;
}
if ($request_uri ~* "[+|(%20)]select[+|(%20)]") {
return 404;
}
if ( $query_string ~* ".*[/;'/</>].*" ){
return 404;
}

# 6 match
location ~ /.jsp$ {
proxy_set_header Host $host:11113;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:7001;
}

location ~ /.(js|htm|html|xml|txt|jpg|gif|png|css|ico|xsl|swf|zip|exe|doc|docx|xls|xlsx)$
{
expires 1h;
}

# 7 status
location /nginx_status {
stub_status on;
access_log off;
allow 10.0.2.0/24;
deny all;
}

}
}

修复方案:

程序猿懂得

版权声明:转载请注明来源 卡卡@乌云


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2016-04-28 19:13

厂商回复:

感谢指出,我们将及时修复

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

  1. 2016-04-28 20:23 | sqlfeng ( 普通白帽子 | Rank:721 漏洞数:86 | 江山父老能容我,不使人间造孽钱)

    0

    66666

  2. 2016-06-13 08:59 | ( 普通白帽子 | Rank:105 漏洞数:37 | 凡人皆有一死)

    0

    javafx

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin