SShortSingh.
Back to feed

Developer runs browser automation in disposable VMs to isolate security and kernel conflicts

0
·1 views

A developer built a browser automation system that runs inside disposable virtual machines launched on demand and destroyed after each job, hosted on a Raspberry Pi rather than a GPU machine to avoid competing for memory. The VM approach was originally motivated by a kernel page-size mismatch between Chromium's 4 KB expectation and the Pi's 16 KB kernel, since patching the host kernel broke Ethernet and took down the local DNS. Beyond the technical fix, the VM boundary also provides a security layer, containing any browser-level exploit within the guest and preventing it from affecting the host system. However, since NAT alone does not block a compromised guest from reaching the local network, a host-side firewall rule tied to the guest process's user ID is used to deny its traffic access to LAN address ranges. Separate VM profiles are maintained for anonymous and authenticated browsing sessions to avoid triggering session-security heuristics that flag accounts alternating between a home IP and a VPN exit.

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 ·

Road511 Links Real-Time Weather Data to Traffic Incidents for Smarter Dispatch

Road511, a traffic data platform, has developed a system that automatically attaches roadside weather conditions to incident reports the moment they appear, giving dispatchers immediate environmental context. The platform draws on 4,082 active roadside weather stations across 37 U.S. states and Canadian provinces, capturing data such as road surface state, visibility, wind speed, and precipitation type. Previously, dispatchers had to mentally cross-reference separate incident and weather panels under time pressure, a process prone to error especially during overnight or severe-weather shifts. When a new incident is logged, Road511 identifies the nearest active weather station within 50 km and permanently links its most recent reading to the event record. The goal is to help operators distinguish between a minor, wait-and-see incident and one where dangerous conditions remain active and may cause further crashes nearby.

0
ProgrammingDEV Community ·

Docker port conflict silently split one app's database traffic across two PostgreSQL instances

A developer running a FastAPI app inside Docker discovered that their app and pgAdmin were each connecting to a different PostgreSQL database, despite both appearing to use localhost:5432. The app communicated with its containerised PostgreSQL directly over Docker's internal network using the service name, never touching the host machine's ports. Meanwhile, pgAdmin — running on Windows outside Docker — was quietly connecting to a forgotten PostgreSQL installation that had claimed port 5432 as a Windows background service at boot. The conflict was confirmed using netstat to identify which process owned the port, and resolved by remapping the container's published port to 5433 on the host side. Once pgAdmin was pointed at localhost:5433, the correct containerised database with all its tables appeared immediately, while the FastAPI app required no changes at all.

0
ProgrammingDEV Community ·

Next.js Patches Two Critical Security Flaws in Versions 15.5.24 and 16.3.3

The Next.js team released security patches in August 2026 addressing two critical vulnerabilities affecting a wide range of versions. CVE-2026-75604 targets Next.js applications hosted on Windows filesystems, while a separate flaw involves remote code execution through malicious AVIF images processed via Next.js image optimization. Developers are advised to upgrade to version 15.5.24 or 16.3.3 depending on their release branch and verify the patched version is actually running in production, not just updated in package.json. A post-upgrade checklist includes running production builds, executing existing tests, and manually testing critical user flows such as login, uploads, and image-heavy pages. A CI script using the semver package is also recommended to automatically block deployments running vulnerable Next.js versions.

0
ProgrammingDEV Community ·

Beginner Developer Paralyzed by Too Many 'Learn This First' Opinions on Web Dev

A beginner aspiring to learn web development shared their experience of being overwhelmed by conflicting advice on where to start. Despite opening numerous tabs and watching multiple videos comparing front-end and back-end development, they ended up more confused than before. Reading community posts on DEV proved most helpful, as seeing that experienced developers all started differently eased the pressure of making a 'perfect' first choice. The writer settled on HTML and CSS as a starting point, reasoning that immediate visual feedback makes it beginner-friendly and that countless others recommend it as an entry point. They concluded that the real obstacle is not picking the wrong language but failing to commit to any choice at all.

Developer runs browser automation in disposable VMs to isolate security and kernel conflicts · ShortSingh