Go crypto/tls Config.Clone session resumption pitfalls (CVE-2025-68121)

Posted on Wed 25 February 2026 in Tech • Tagged with go, security, tls, cve

CVE-2025-68121 涉及 Go crypto/tls 的两个会话恢复(session resumption)问题:Config.Clone 复制了自动生成的 session ticket keys,导致不同 tls.Config 之间意外共享会话票据;以及服务端在判断会话是否可恢复时,只检查 leaf 证书过期而忽略完整证书链,可能让过期链条下的会话继续被恢复。


Continue reading

什么是时序攻击(Timing Attack)?

Posted on Thu 12 February 2026 in Journal • Tagged with security, timing-attack, constant-time, authentication, crypto

==strings.Compare 比较密钥、密码或 HMAC 时,比较时间会随「猜对多少」变化,攻击者可以按响应时间逐字节猜出秘密;一文说清原理与常数时间比较的用法。


Continue reading

微服务的三大安全威胁

Posted on Thu 12 February 2026 in Journal • Tagged with microservices, security, service-mesh, privilege-escalation, injection, SSRF

在微服务与服务网格环境下,最常被利用的往往不是「高大上」的零日漏洞,而是权限提升、注入与 SSRF;本文用具体例子说明这三类威胁及应对思路。


Continue reading

在 EKS 上给 Pod 绑 IAM Role:IRSA(ServiceAccount + OIDC)到底怎么回事

Posted on Sun 25 January 2026 in Kubernetes • Tagged with Kubernetes, EKS, AWS, IAM, IRSA, OIDC, Security, STS

Node Role 像一把“万能钥匙”。IRSA 让你把权限精确绑定到 Pod:用 Kubernetes 的 ServiceAccount token 走 OIDC 联邦,去 STS 换临时凭证。


Continue reading

密码存储的艺术

Posted on Sun 14 September 2025 in Journal • Tagged with journal, blog, security, encryption, aes-gcm, envelope-encryption

聊聊如何安全存储密码和密钥,从基础概念到实际实现,让你告别"123456"时代


Continue reading