Habr•September 3, 2026•🇷🇺Translated from Russian

Bcrypt Password Hashing Silently Ignores Characters Beyond 72 Bytes, Breaking Verification Expectations

The bcrypt password hashing algorithm silently truncates inputs after the first 72 bytes, causing any characters beyond that limit to be ignored during both hashing and verification. This behavior has existed since the algorithm's introduction in 1999 and remains unchanged to preserve hash compatibility.

Developers discovered the issue when importing accounts from legacy systems. Passwords longer than 72 bytes verified successfully even when they differed in the ignored tail, leading to unexpected authentication results. Tests in PHP using PASSWORD_BCRYPT confirmed that a 72-character string and a 100-character string of the same prefix produce matching verification outcomes.

The root cause lies in Blowfish's P-table, which holds exactly 18 subkeys of 4 bytes each. The original specification fixed this 72-byte boundary, and any excess data is never fed into the key expansion function. Multibyte characters exacerbate the problem: 36 Cyrillic characters reach the limit, while 37 or more are truncated.

Practical risks appear in password managers that store full-length strings, during database migrations between libraries with differing truncation rules, and in corporate environments using long static prefixes. Python's bcrypt package version 4.x now raises an explicit error for inputs over 72 bytes, forcing developers to handle truncation manually or upgrade validation logic.

Mitigations include adding consistent 72-byte length checks on registration and login forms, pre-hashing passwords with SHA-256 encoded in base64 before passing to bcrypt, or migrating to algorithms without length limits such as Argon2id or scrypt. Systems should also audit all code paths that call the hashing function to ensure uniform enforcement.

Related articles

Habr•Vulnerabilities & Exploits

CTEM Without the Hype: Understanding Gartner's Continuous Threat Exposure Management Framework

The article explains the evolution of vulnerability management from basic scheduled scanning to risk-based approaches and finally to Continuous Threat Exposure Management (CTEM). It positions CTEM as a comprehensive program introduced by Gartner in 2022 that integrates asset management, EASM, CAASM, automated pentesting, and business-context prioritization. The five-stage cycle of Scoping, Discovery, Prioritization, Validation, and Mobilization is detailed with practical examples such as protecting customer databases in an e-commerce environment. Gartner predicts organizations prioritizing CTEM will suffer three times fewer breaches by 2026, though only 16% have reached operational maturity. The piece also covers common implementation pitfalls and the emergence of the first Magic Quadrant for Exposure Assessment Platforms featuring vendors like Tenable, Qualys, and Rapid7.

Security NEXT•Vulnerabilities & Exploits

Microsoft Patches Over 1,400 Vulnerabilities in October 2026 Security Update, Some Already Exploited

Microsoft released its October 2026 Patch Tuesday updates on October 13, 2026, addressing a total of 1,407 CVEs plus one additional advisory. The update covers a wide range of issues including 315 remote code execution flaws, 673 privilege escalation vulnerabilities, and 252 information disclosure problems. Severity ratings show 78 vulnerabilities classified as Critical and 1,329 as Important. Several of the addressed flaws have already been confirmed as exploited in the wild. The release aligns with the regular second Tuesday of the month schedule for coordinated vendor patching. Related security advisories from other vendors were also highlighted in the same reporting cycle.

Security NEXT•Vulnerabilities & Exploits

Google Chrome Update Patches 37 Vulnerabilities Including Seven Critical Flaws

Google has released a security update for its Chrome browser that addresses 37 vulnerabilities across Windows, macOS, and Linux platforms. Seven of the issues are rated Critical, the highest severity level, while 29 are rated High and one is rated Medium. The update brings Chrome to versions 155.0.8059.80 on Windows and macOS and 155.0.8059.79 on Linux and macOS. Among the critical fixes is a buffer overflow in the ANGLE graphics component tracked as CVE-2026-110152, plus six Use After Free flaws affecting Browser, PDF, Network, Core, SVG, and Media components. The High-severity issues primarily involve Use After Free problems in V8, WebRTC, PDF, DOM, and Media. The single Medium issue is also included in the advisory.

Security NEXT•Vulnerabilities & Exploits

Ivanti Connect Secure VPN Hit by Zero-Day Authentication Bypass Vulnerability CVE-2026-104935

Ivanti has disclosed a critical authentication bypass vulnerability in its Ivanti Connect Secure remote access product that allows remote attackers to execute arbitrary commands without authentication. The flaw, tracked as CVE-2026-104935, carries a CVSSv3.0 base score of 8.6 and has already been exploited in the wild against certain customer environments. Affected versions include 25.1.2.2, 25.1.1.1, and 22.8R2.4 along with earlier releases in those branches, while versions 22.7R2.14 and prior remain unaffected. Ivanti discovered the issue through its product security program and released the fix in version 25.1.3.0 during July. The company published its security advisory on October 13, 2026, confirming active exploitation of the zero-day in unpatched branches.