HabrJuly 28, 2026🇷🇺Translated from Russian

Pilcrow Publishes Free Comprehensive Guide on Web Authentication

Pilcrow has released a personal handbook on authentication that serves as a free collection of guides, recommendations, and code examples for implementing secure authentication in web applications.

The book focuses primarily on authentication and authorization systems for web apps and directs readers to the OWASP Cheat Sheets series for broader security topics. It is available without cost or advertising and includes both JavaScript and Go examples hosted on GitHub.

Authentication Methods

The simplest approach uses a username and password, yet the text details multiple risks including weak or reused passwords, phishing, and database compromise. Email addresses are presented as globally unique identifiers that also enable password recovery through time-limited links or codes.

For stronger protection, the guide covers two-factor and multi-factor authentication using SMS codes or authenticator apps. It notes that these methods should be viewed as rate-limiting mechanisms rather than absolute security and advises against reusing email verification as a second factor when it is also used for password resets.

Passwordless options receive detailed treatment, including one-time codes or magic links sent via email. Passkeys based on public-key cryptography are highlighted for resistance to brute-force attacks and phishing while offering convenience through device biometrics or a master password. External hardware tokens such as YubiKey devices are discussed for both passkey support and corporate second-factor use.

The author recommends supporting both email-based and passkey authentication so users can select their preferred method, with passkeys enforced for high-security accounts.

Session Management

Because HTTP is stateless, the book explains the necessity of server-side session records paired with client tokens. Session secrets must be generated from cryptographically secure random sources, hashed with SHA-256, and combined with an identifier into a single token using encodings such as hex or base64url.

Recommended practices include setting reasonable expiration times, optionally binding sessions to geographic regions derived from IP addresses, and invalidating sessions on logout or password change. The guide stresses that session invalidation is a privileged operation and that operation-specific sessions should be used for sensitive actions such as password updates or passkey registration.

Email Addresses and Final Advice

Email addresses are endorsed as reliable account identifiers because of their uniqueness and familiarity, provided domain validation is performed. The book concludes that authentication method selection must balance security requirements, user behavior, and platform expectations, favoring stronger methods implemented from the start rather than relying on post-login detection.

Related articles

HabrOther

Incident Reconstruction Fails When Logs Lack Time Zone Offsets and Proper Synchronization

Reconstructing security incidents from multiple log sources often collapses when timestamps lack time zone information or consistent synchronization. Events from web servers, load balancers, applications, and mail gateways can appear in physically impossible order, such as responses preceding requests or sessions closing before they open. The root causes include clock drift without NTP, mismatched reference points like UTC versus local time, and timestamps recorded at message processing rather than event occurrence. Classic BSD syslog (RFC 3164) omits both year and offset, forcing investigators to consult potentially unavailable source systems. Modern RFC 5424 provides full timestamps with offsets, making normalization possible without external context. Organizations must enforce offset-inclusive formats at ingestion, monitor actual synchronization status rather than service uptime, and document external sources whose timestamps cannot be controlled.

SecuritylabOther

HTTP Methods Explained: GET, POST, PUT, PATCH, DELETE and the New QUERY Standard

HTTP methods define the actions a client requests from a server regarding a resource. The core semantics are outlined in RFC 9110, with extensions for specialized protocols. A new standardized method called QUERY was introduced in June 2026 via RFC 10008 to handle complex queries that include a request body while remaining safe and idempotent. The article details safe and idempotent properties, compares each method including GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE, CONNECT, and QUERY, and explains their correct usage to avoid breaking caches, proxies, and infrastructure expectations. It also covers WebDAV extensions and other registered methods in the IANA registry.

SecuritylabOther

From Web Perimeter Breaches to Domain Takeover: How Standoff Hackbase Trains Pentesters on Real Corporate Infrastructure

wr3dmast3r, a senior pentester and BSCP certification guide author, rose to first place on the Standoff Hackbase ranking by shifting focus from initial perimeter access to full internal infrastructure compromise. The platform replicates large-scale corporate networks from various industries, forcing participants to map service relationships, harvest credentials, escalate privileges, and chain pivots across segments. Unlike CTF challenges that end with a single flag, Hackbase tasks require building complete attack paths that can lead to data theft, process disruption, or cross-domain movement. The interview highlights practical techniques such as time-boxing hypotheses, manually modeling infrastructure after automated scans, and using AI only as an information accelerator rather than an autonomous operator. wr3dmast3r also details a memorable chain that began with a bot, moved through VPN and Outlook access, leveraged SCCM tokens for privilege escalation, and ended with compromise of a second domain containing the target system.

HabrOther

OTUS Publishes September Digest of Free Lessons on Linux Administration, PostgreSQL, CI/CD and Infrastructure Security

OTUS has released a new digest listing free September webinars aimed at infrastructure engineers, DevOps specialists and system administrators. The program covers practical topics including Linux server configuration, PostgreSQL 18 performance tuning, high-availability clusters with Patroni, CI/CD pipelines in GitLab, eBPF observability and infrastructure security practices. All sessions are delivered by practicing OTUS instructors who share real-world production experience. Separate tracks address RAID and LVM management, GPO policies, release management in 1C environments, Go profiling, mitmproxy traffic analysis and responsible use of AI tools for incident investigation and code review. The webinars run throughout September at 19:00 or 20:00 Moscow time and require only free registration. The digest also includes sessions on career growth from tech lead to CTO and effective responsibility distribution for team leads.