<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>security | Bboysoul的博客</title><description>📢 频道公告欢迎关注我的推特： @bboysoulcn对频道有任何意见欢迎发邮件：📧 bboysoulcn@gmail.com</description><link>https://tg.bboy.app</link><item><title>#今天又看了啥 #security #CVE #dockerCVE-2026-33590 — Portainer 默认配置不安全导致宿主机接管CVSS 3.1 8.2 HIGHPortainer &lt; 2.38.0 的 Endpoint Security 默认配置过度宽松，允许普通用户（非管理员）在创建容器时启用 bind mount、privileged mode、host namespace 等高危能力，攻击者可借此挂载宿主机文件系统或以特权模式运行容器，实现从容器逃逸到宿主机的完全接管</title><link>https://tg.bboy.app/posts/12645</link><guid isPermaLink="true">https://tg.bboy.app/posts/12645</guid><pubDate>Tue, 16 Jun 2026 01:23:45 GMT</pubDate><content:encoded>&lt;div class=&quot;tgme_widget_message_forwarded_from accent_color&quot;&gt;Forwarded from &lt;a class=&quot;tgme_widget_message_forwarded_from_name&quot; href=&quot;https://t.me/MiaoTonyChannel/21324&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;span&gt;&lt;i class=&quot;emoji&quot; style=&quot;background-image:url(&apos;//telegram.org/img/emoji/40/F09F90B1.png&apos;)&quot;&gt;&lt;b&gt;🐱&lt;/b&gt;&lt;/i&gt;MiaoTony&apos;s Box | 困困困 zzz&lt;/span&gt;&lt;/a&gt; (&lt;span class=&quot;tgme_widget_message_forwarded_from_author&quot;&gt;MiaoTony &lt;i class=&quot;emoji&quot; style=&quot;background-image:url(&apos;//telegram.org/img/emoji/40/F09F90B1.png&apos;)&quot;&gt;&lt;b&gt;🐱&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;)&lt;/div&gt;&lt;a href=&quot;/search/result?q=%23%E4%BB%8A%E5%A4%A9%E5%8F%88%E7%9C%8B%E4%BA%86%E5%95%A5&quot; title=&quot;#今天又看了啥&quot;&gt;#今天又看了啥&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23security&quot; title=&quot;#security&quot;&gt;#security&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23CVE&quot; title=&quot;#CVE&quot;&gt;#CVE&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23docker&quot; title=&quot;#docker&quot;&gt;#docker&lt;/a&gt;&lt;br /&gt;&lt;b&gt;CVE-2026-33590 — Portainer 默认配置不安全导致宿主机接管&lt;/b&gt;&lt;br /&gt;CVSS 3.1 &lt;b&gt;8.2 HIGH&lt;/b&gt;&lt;br /&gt;Portainer &amp;lt; 2.38.0 的 Endpoint &lt;mark class=&quot;highlight&quot;&gt;Security&lt;/mark&gt; 默认配置过度宽松，允许普通用户（非管理员）在创建容器时启用 bind mount、privileged mode、host namespace 等高危能力，攻击者可借此挂载宿主机文件系统或以特权模式运行容器，实现从容器逃逸到宿主机的完全接管。&lt;br /&gt;&lt;div class=&quot;tg-expandable&quot;&gt;
      &lt;input type=&quot;checkbox&quot; id=&quot;expand-0-0&quot; class=&quot;tg-expandable__checkbox&quot; aria-label=&quot;Toggle hidden content&quot; aria-controls=&quot;expand-0-0-content&quot; /&gt;
      &lt;div id=&quot;expand-0-0-content&quot; class=&quot;tg-expandable__content&quot;&gt;&lt;b&gt;默认开启的危险配置项（共 7 项）&lt;/b&gt;：&lt;br /&gt;- allowBindMountsForRegularUsers — 允许挂载宿主机任意路径&lt;br /&gt;- allowPrivilegedModeForRegularUsers — 允许特权模式&lt;br /&gt;- allowHostNamespaceForRegularUsers — 允许共享宿主机 PID/IPC namespace&lt;br /&gt;- allowDeviceMappingForRegularUsers — 允许访问宿主机设备&lt;br /&gt;- allowContainerCapabilitiesForRegularUsers — 允许选择 root capabilities&lt;br /&gt;- allowSysctlSettingForRegularUsers — 允许 sysctl 操作&lt;br /&gt;- allowStackManagementForRegularUsers — 允许 compose stack 管理&lt;br /&gt;&lt;br /&gt;&lt;b&gt;PoC&lt;/b&gt;：以普通用户身份认证 → 找到本地 Docker endpoint → 用 alpine 镜像 bind mount 宿主机 /etc/ → 直接读取 /etc/shadow。&lt;br /&gt;&lt;br /&gt;&lt;b&gt;修复&lt;/b&gt;：升级至 2.38.0（STS）或 2.39.0（LTS），以上配置项默认改为 false（仅 stack 管理保留 true）。升级后需手动检查 Docker &lt;mark class=&quot;highlight&quot;&gt;Security&lt;/mark&gt; Settings。&lt;/div&gt;
      &lt;label for=&quot;expand-0-0&quot; class=&quot;tg-expandable__toggle&quot;&gt;&lt;span class=&quot;sr-only&quot;&gt;Toggle hidden content&lt;/span&gt;&lt;/label&gt;
    &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;说人话：&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;tg-expandable&quot;&gt;
      &lt;input type=&quot;checkbox&quot; id=&quot;expand-0-1&quot; class=&quot;tg-expandable__checkbox&quot; aria-label=&quot;Toggle hidden content&quot; aria-controls=&quot;expand-0-1-content&quot; /&gt;
      &lt;div id=&quot;expand-0-1-content&quot; class=&quot;tg-expandable__content&quot;&gt;Portainer 老版本有个问题：&lt;b&gt;管理员给你建了个普通账号，你能自己开个容器把整台宿主机的硬盘挂进去&lt;/b&gt;，然后随便翻文件、读密码、写 crontab——等于直接拿下宿主机 root。&lt;br /&gt;原因是 Portainer 默认把 7 个高危开关全部打开了，比如&quot;允许普通用户挂载宿主机目录&quot;&quot;允许特权模式&quot;。&lt;br /&gt;&lt;b&gt;你需要升级版本&lt;/b&gt;，然后去 Settings → Docker &lt;mark class=&quot;highlight&quot;&gt;Security&lt;/mark&gt; Settings 确认那些开关都关了。如果你是多人共用的 Portainer 实例，建议顺便审一下历史容器有没有被滥用过。&lt;/div&gt;
      &lt;label for=&quot;expand-0-1&quot; class=&quot;tg-expandable__toggle&quot;&gt;&lt;span class=&quot;sr-only&quot;&gt;Toggle hidden content&lt;/span&gt;&lt;/label&gt;
    &lt;/div&gt;&lt;br /&gt;&lt;i class=&quot;emoji&quot;&gt;&lt;b&gt;🔗&lt;/b&gt;&lt;/i&gt; &lt;a href=&quot;https://intwave.com/blog/2026/02/26/improving-portainer-security.html&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;技术分析博文&quot;&gt;技术分析博文&lt;/a&gt; · &lt;a href=&quot;https://intwave.com/advisory/2026/06/12/cve-2026-33590-portainer.html&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;安全公告&quot;&gt;安全公告&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;感觉这个漏洞本质上是个设计缺陷而非代码 bug，默认信任用户不会滥用容器特权，不过在多用户环境下还是有很大风险。&lt;a class=&quot;tgme_widget_message_link_preview&quot; href=&quot;https://intwave.com/blog/2026/02/26/improving-portainer-security.html&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;Product Security Services&quot;&gt;
  
  &lt;div class=&quot;link_preview_site_name accent_color&quot;&gt;Intwave&lt;/div&gt;
  
  &lt;div class=&quot;link_preview_title&quot;&gt;Improving Portainer &lt;mark class=&quot;highlight&quot;&gt;Security&lt;/mark&gt;&lt;/div&gt;
  &lt;div class=&quot;link_preview_description&quot;&gt;Product &lt;mark class=&quot;highlight&quot;&gt;Security&lt;/mark&gt; Services&lt;/div&gt;
&lt;/a&gt;</content:encoded></item></channel></rss>