当 str.lower() 是 Python 中的安全漏洞时 – Seth Larson

Python的str.lower()方法看似无害,但在安全敏感场景中可能引入漏洞,如认证、加密密钥处理等。不当使用会导致大小写敏感数据失效,引发安全问题。