SShortSingh.
Back to feed

Developer explains how a deliberately delayed public data page nearly leaked paid content

0
·3 views

A developer selling a live data stream built a public page showing the same day's figures with a deliberate time delay, positioned between a free historical archive and a paid real-time feed. The design rule adopted was that the free page introduces no new category of data — every field shown is already available for free the next morning, with timing being the only thing that is metered. Two security bugs emerged only in production, including a path-normalisation flaw where alternate URL spellings like double slashes or different letter cases bypassed access controls and resolved directly to the protected file. To prevent the delay from shrinking to zero during pipeline stalls, the developer measured lag against the data itself rather than the system clock, ensuring failures make the page older rather than fresher. The trim logic was written as a pure function with its own test suite before being wired into any route, keeping the paid file accessible through exactly one controlled code path.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

React Native Developers Are the New Target: A Guide to Securing Your Own Machine

A detailed security guide highlights that React Native developers themselves—not just end users—have become the primary targets of supply chain attacks. The guide warns that routine commands like yarn install execute untrusted code with full user privileges, capable of accessing SSH keys, keychains, and environment files without any sandboxing. Configuration files such as metro.config.js, Podfile, and build.gradle are actually executable programs that run automatically on build or project open, creating silent attack surfaces. Real-world incidents like nx/s1ngularity, Shai-Hulud, and GlassWorm demonstrate that these threats are active, with one attack hiding malicious payloads in invisible Unicode characters that evaded code review entirely. The guide also flags AI agent MCP servers as an emerging risk, with over 30% found to carry exploitable vulnerabilities that have already been used to steal private SSH keys.

0
ProgrammingDEV Community ·

Hermes Agent Builds Persistent Skills to Cut Costs for Long-Running AI Tasks

Nous Research released Hermes Agent in February 2026 as an open-source MIT-licensed runtime designed to address a core weakness in AI agent frameworks: the inability to retain and reuse knowledge across sessions. Unlike conventional frameworks that discard reasoning after each task, Hermes logs decision points and tool calls, then enters a reflective phase to assess what worked and convert successful approaches into structured 'skill documents.' These documents are indexed using SQLite FTS5, allowing future similar tasks to query the skill library before invoking the model, with community benchmarks showing up to 40 percent speed gains after around 50 accumulated skills. The architecture is built on five pillars — memory, skills, a persistent behavioral config called 'Soul', scheduled cron jobs, and a self-improvement meta-layer — all designed to compound efficiency over time. Deployment options range from a $59/month managed service to self-hosted builds costing as little as $6–$9 per month, with local inference on an 8B model reportedly achieving 91 percent tool call accuracy on just 8GB of VRAM.