Urgent.News

What's breaking now, across thousands of outlets.

Tech

Squid forward-proxy security depends on ACL order and a closed default

Squid forward-proxy security depends on ACL order and a closed default A Squid forward proxy can be a controlled egress gateway or an open relay into internal networks. The difference is configuration. Squid evaluates http_access rules in order, and the first matching rule decides the request. An early allow for a broad source network can make a later authentication check irrelevant. Build the…

Squid forward-proxy security hinges on the order of Access Control Lists (ACLs) and a default deny-all policy. A forward proxy can function as a controlled egress gateway or an open relay into internal networks, with the configuration dictating its role. Squid processes http_access rules sequentially; the first rule that matches the request determines the outcome. An overly permissive initial allow rule for a wide source network can render subsequent authentication checks futile.

To fortify the proxy's security posture, begin by instituting a final deny-all rule, followed by targeted allow rules for specific networks, authenticated user groups, and necessary destinations. Maintain succinct rules to ensure clarity.

The proxy_auth ACL triggers authentication when the request reaches this rule, hence authentication should precede any expansive allowance that could circumvent it. The http_port documentation features an NP option to disable authentication on a designated listening port. While this may suit a tightly regulated reverse-proxy listener, it is ill-advised as a default for a forward proxy accessible to general users or untrusted workloads.

Validate which listener handles CONNECT requests and ascertain if the authenticated identity is accessible to subsequent ACLs. Restrict HTTP and HTTPS destinations to business requirements, blocking cloud metadata endpoints, loopback addresses, management networks, and link-local ranges. For CONNECT requests, confine destination ports rather than permitting arbitrary tunneling.

An allowlist of hostnames, validated at request time without client-controlled alt-destination post-check, proves more robust than a simple allow rule.

Scrutinize any helper programs that provide external ACL decisions. Tackle their inputs and outputs as security-critical, restrict their file and network access, and evaluate their failure modes. If the helper stalls, the prudent response is denial rather than a lenient fallback.

Catalog each proxy listener, source network, authentication helper, allowed destination group, cache policy, and log destination. Examine anonymous access from both approved and unapproved networks, as well as valid users attempting to access blocked destinations and invalid users accessing permitted ones. Confirm that the final deny rule remains reachable.

Log retention and access should be restricted to prevent storage of URLs, hostnames, or content metadata in proxy logs, and credentials should not be exposed in URLs or custom headers recorded by the proxy. If authenticated responses are cached, verify access controls to these caches.

Following an open-proxy incident, expunge the broad rule, rotate exposed helper credentials, and scrutinize logs for requests targeting metadata, internal administration, or anomalous CONNECT destinations. Finally, repeat the testing procedures from outside the expected network, as this is where the practical implications of the policy become evident.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Catch Overlapping Labels Before Rendering With a Sweep Over X

First published on Homingo Learn . A label that fits today can land on its neighbor tomorrow when someone renames a metric or adds a series, and you may not notice until the chart is on screen.

  • Labels' boxes calculated based on text length and size
  • Overlapping detection via sequential processing and active list
  • Method efficient without full chart rendering

Email, SMS, and In-App Alerts Do Different Jobs. Stop Scoring Them as Rivals.

Dunning channel debates usually start with open rates, which is a little like choosing a vehicle by top speed. The question is never which channel is best in the abstract.

  • Email provides explanations and context in failed-payment sequence
  • SMS grabs attention with concise, urgent notifications
  • In-app alerts leverage active user engagement for seamless solutions

Python Data Structures Explained: Lists, Tuples, Sets and Dictionaries

Originally published on CodingCush . Python data structures are the built-in containers that hold groups of values in your program: lists for ordered, changeable collections; tuples for ordered, fixed…

  • Lists are ordered, changeable collections written in square brackets
  • Tuples are immutable, ordered collections written in round brackets
  • Dictionaries store key-value pairs with keys labeling values

What Is Webflow? Explained Simply for Beginners

Originally published on CodingCush . Webflow is a visual website builder that lets you design, build and host websites by dragging and arranging elements on a canvas, while it writes clean HTML, CSS…

  • Webflow is a visual platform to create websites without coding
  • Offers drag-and-drop builder, responsive design, CMS and ecommerce
  • Hosts sites with fast, secure environment for marketing sites and shops

Compress Images Without Uploading: How Browser-Only Tools Protect Your Files

Compress images without uploading: the short answer Yes, you can compress an image without uploading it. A browser can read a file you choose, resize or re-encode it on your device, and generate a…

  • Browser-based tools compress images without uploading to servers.
  • Image processing occurs within the device using browser APIs.
  • Metadata handling is user-controlled, with default off for photo metadata.

More from Saturday 7 November →