HabrSeptember 13, 2026🇷🇺Translated from Russian

Why HTTP to HTTPS Redirects Fall Short: Risks of Exposed Requests and the Role of HSTS Preload

A common audit finding is that an internal service still answers over plain HTTP. Adding a redirect to HTTPS produces a 301 response and closes the ticket. Several weeks later, closer inspection reveals that the redirected request is a complete HTTP transaction containing the full path, query string, and Cookie header.

Who Still Sends Plaintext Requests

Contemporary browsers no longer initiate connections over HTTP by default. Chrome has inserted https:// since version 90 and strengthened the behavior in 115; Firefox and Safari follow similar logic. The first request is therefore sent over HTTPS, falling back to HTTP only when HTTPS fails.

Plaintext requests still originate from several sources: the HTTPS-fallback path itself, hard-coded http:// links in email, documentation, or bookmarks, non-browser clients such as curl and scripts, embedded web views, older devices, and long-forgotten integrations.

What Travels in the Open

The exposed request reveals the complete URL path, query parameters, session cookies without the Secure flag, and the mere fact of the connection. An on-path attacker can read this data or substitute a malicious response before TLS negotiation starts.

HSTS Closes Subsequent Visits

The Strict-Transport-Security header tells the browser to contact the host exclusively over HTTPS for the duration specified by max-age. When includeSubDomains is present, the rule applies to every subdomain. The header arrives only after a successful HTTPS response, leaving the very first visit from a new client or after cache clearance unprotected.

Preload Eliminates the First Visit

Domains listed in the HSTS preload list ship with the rule already present inside the browser binary. Entry requires a valid certificate, a max-age of at least one year, includeSubDomains, the preload directive, and a direct redirect from port 80 to HTTPS on the same host. Removal from the list takes months because the change propagates only with browser updates.

Practical Recommendations

Before enabling preload, confirm that every subdomain, including forgotten internal hosts, supports HTTPS. Test with a short max-age, then raise it gradually. Add the Secure flag to all cookies together with HttpOnly and SameSite. Replace multi-step redirects with a single jump from http://example.com directly to https://example.com. Replace any http:// links in documentation or email with https:// equivalents.

Neither HSTS nor preload protects against domain impersonation or clients that ignore the header. The only remaining defense for such clients is to ensure that http:// addresses are never published anywhere.

Related articles

HabrOther

OSINT for the Lazy Part 18: Extracting Value from Wayback Machine Archives for Bug Bounty and Security Research

The article explores passive reconnaissance techniques using web archive tools to uncover forgotten endpoints, configuration files, and sensitive parameters without directly interacting with target systems. It highlights three command-line utilities—waybackurls, gau, and waymore—that query public archives such as Wayback Machine, Common Crawl, AlienVault OTX, and URLScan to retrieve historical URLs. These tools help bug bounty hunters and penetration testers discover old API endpoints, admin panels, backup files, and JavaScript with hardcoded secrets that may still be exploitable. Installation instructions, usage examples, and filtering options are provided for each tool to maximize efficiency and reduce noise in results. The piece emphasizes that all methods remain fully passive, minimizing detection risk while requiring proper authorization before any active testing. Advanced users are advised to combine the tools for broader coverage and deeper analysis of archived responses.

HabrOther

OSINT Investigation Exposes Fraudulent Russian Garlic Investment Scheme Masquerading as Local Production

An in-depth OSINT probe into a Russian agricultural investment project promising 50-70% annual returns from garlic farming has revealed a likely import arbitrage operation sourcing produce from China and Uzbekistan. The project claimed ownership of over 300 hectares of fields, a proprietary seed fund, and guaranteed sales to major retailers including Magnit, Perekrestok, Pyaterochka, and Svetofor, yet public records show minimal profitability and heavy debt. Financial statements from linked cooperatives indicated just 2.2% net margin alongside loans exceeding annual revenue fourfold, pointing to reliance on continuous new investor capital. Registry checks confirmed no financial licenses, no seed-breeding status, and actual cultivated land far below advertised figures. Import declarations and equipment registrations further indicated the operation functions as a repackaging hub for foreign garlic sold under private labels. The parent group has been placed on the Bank of Russia blacklist, with related sites blocked by Roskomnadzor while Telegram channels continue aggressive marketing.

HabrOther

Deploying Self-Hosted Hysteria 2 Proxy on Debian-Based Linux VPS via Terminal

A detailed guide explains how to set up a personal Hysteria 2 proxy server on a KVM VPS running Debian or Ubuntu without any web panels. The process begins with generating ed25519 SSH keys, hardening the sshd_config file, and restricting access with ufw to only TCP port 22 and UDP port 443. Hysteria 2 is downloaded from GitHub, made executable, and configured using a TOML file that enables salamander obfuscation and a self-signed TLS certificate. A custom systemd unit ensures the service restarts on failure. The client configuration includes SHA256 pinning of the server certificate to prevent MITM attacks. The guide emphasizes manual CLI operations that apply equally to other services such as Nginx and stresses checking local laws before deployment.

AntiMalwareOther

Rostec Scales PCAT Platform Nationwide as Russia's First Industrial Marketplace

Rostec has expanded its PCAT platform to every organization within the state corporation that manufactures civilian products. Operating since 2025 and upgraded in September 2026, the platform now unites more than 180 enterprises and research organizations. Its catalog contains over 1,250 finished products along with 370 technological and manufacturing competencies. Visitors can locate not only equipment and components but also partners able to design, test, or produce required solutions. The portal receives more than 23,000 weekly visits, 60 percent of them from corporations and large enterprises. Rostec is extending the network into the regions through supply-chain agreements already signed with Krasnodar Krai and the oblasts of Tver, Tula, and Ryazan. In parallel the corporation launched the Robot Management System in November 2025 for centralized control of robots, sensors, and related IT services.