服务网格Istio自身服务的安全风险

Health Check服务如下:

curl http://127.0.0.1:15021/healthz/ready -v

*   Trying 127.0.0.1:15021…

  • Connected to 127.0.0.1 (127.0.0.1) port 15021 (#0)

GET /healthz/ready HTTP/1.1

Host: 127.0.0.1:15021

User-Agent: curl/7.69.1

Accept: /

  • Mark bundle as not supporting multiuse

< HTTP/1.1 200 OK

< date: Tue, 16 Mar 2021 05:31:43 GMT

< content-length: 0

< x-envoy-upstream-service-time: 0

< server: envoy

<

  • Connection #0 to host 127.0.0.1 left intact

Debug 服务

========

15000端口提供了Envoy admin API,该端口绑定在本地环回地址上,只能在Pod内访问。当攻击者控制了某容器,即可请求该服务来获取敏感信息。

curl http://127.0.0.1:15000/help

admin commands are:

/: Admin home page

/certs: print certs on machine

/clusters: upstream cluster status

/config_dump: dump current Envoy configs (experimental)

/contention: dump current Envoy mutex contention stats (if enabled)

/cpuprofiler: enable/disable the CPU profiler

/drain_listeners: drain listeners

/healthcheck/fail: cause the server to fail health checks

/healthcheck/ok: cause the server to pass health checks

/heapprofiler: enable/disable the heap profiler

/help: print out list of admin commands

/hot_restart_version: print the hot restart compatibility version

/init_dump: dump current Envoy init manager information (experimental)

/listeners: print listener info

/logging: query/change logging levels

/memory: print current allocation/heap usage

/quitquitquit: exit the server

/ready: print server state, return 200 if LIVE, otherwise return 503

/reopen_logs: reopen access logs

/reset_counters: reset all counters to zero

/runtime: print runtime values

/runtime_modify: modify runtime values

/server_info: print server version/status information

/stats: print server stats

/stats/prometheus: print server stats in prometheus format

/stats/recentlookups: Show recent stat-name lookups

/stats/recentlookups/clear: clear list of stat-name lookups and counter

/stats/recentlookups/disable: disable recording of res

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值