# Proxy Auth Never Reached the Origin: A Six-Slot CONNECT and SOCKS5h Leak Test

Published 26 November 2026. Collection window: 24 to 26 November 2026, all times UTC. Category: Original Research.

## Answer

In six diary slots, proxy credentials stayed on the proxy leg. Across 90 HTTPS probes and 12 in-process tunnel inspections, no username, password, or Basic token appeared in the Host header an origin received, in a redirect `Location`, in an effective URL, or in the CONNECT authority or TLS server name we sent to a destination. `Proxy-Authorization` was sent on the HTTP CONNECT request to the proxy in all 30 residential HTTP probes, and it never reached a header echo at the origin. On the SOCKS5h path the destination field carried only the hostname, and no credential ever reached an origin.

That is the result for one client, one residential product, one source, and six slots. It is a narrow negative: we did not find a leak on these surfaces. It does not prove that no provider, client, or proxy anywhere leaks credentials.

## What the question was

The question was narrow on purpose: do `Proxy-Authorization` or username tokens appear in the upstream `Host`, the TLS server name (SNI), or redirect URLs when a client reaches HTTPS sites through an authenticated proxy? Two proxy modes were in scope: HTTP CONNECT and SOCKS5 with remote DNS (SOCKS5h).

This was not a stickiness study, a kill-switch study, or a VPN measurement. CometVPN was not run. It is also not a browser study, so it does not overlap with the [path-leak study](/blog/browser-path-leak-research/) or the [fingerprint work](/blog/browser-fingerprinting-research/). The [proxy encryption study](/blog/proxy-encryption-research/) looked at whether proxy bytes were protected on a local network. This diary asks a different question: once the request leaves the proxy, what does the destination see?

## Method

### Client and vantage

The source was a USA cloud agent virtual machine. The client was the system curl on that machine, run once per probe, HTTPS only. Each probe used a fresh process. Redirects were inspected through the `Location` header and were not followed on primary rows. Connect timeout was 10 seconds and total timeout 20 seconds.

The residential endpoints were from [ProxySeller](https://freepolicytools.com/proxyseller/), which is an affiliate link, and CometVPN was not part of the run. Three conditions used the same frozen URLs and the same client:

| Condition | Path | Credentials |
| --- | --- | --- |
| `direct` | No proxy. Process proxy environment variables removed. | None |
| `residential-http` | ProxySeller residential HTTP proxy, CONNECT for HTTPS | Passed to curl through a private config file |
| `residential-socks5h` | Same product, SOCKS5 with remote DNS | Passed to curl through a private config file |

Credentials came from runtime secrets. They were never placed on the command line, printed, or committed. The private config and the hash salt live in a gitignored directory. Every committed JSON file was scanned for usernames, passwords, proxy hostnames, Basic tokens, and raw IP addresses before it was written.

### Frozen hosts

A Day 0 screen probed candidates in a fixed priority order, using residential HTTP only. A candidate was accepted when the transport succeeded and its role check passed. The screen froze four URLs with three roles:

| Order | URL | Role | Screen status |
| --- | --- | --- | --- |
| 1 | `https://httpbingo.org/redirect-to?url=https://example.com/&status_code=302` | redirect | 302 |
| 2 | `https://postman-echo.com/headers` | header echo | 200 |
| 3 | `https://postman-echo.com/redirect-to?url=https://example.com/` | redirect | 302 |
| 4 | `https://example.com/` | clean host | 200 |

`https://httpbingo.org/headers` ranked first for the echo role but failed the screen with no HTTP response, so the next echo candidate was used. The candidate order was not changed after any outcome.

Because the frozen list has only one header echo service, the origin-side header evidence rests on one third party. That is a real limit, and it is discussed below.

### What was checked on each probe

Each slot ran 15 curl probes: the four frozen URLs plus one Cloudflare trace path check, under each of the three conditions. Each proxy condition also ran one in-process tunnel inspection to `example.com:443`. The inspection opened a CONNECT or a SOCKS5h tunnel by hand, performed a TLS handshake with that server name, and recorded whether the destination field and SNI matched and whether any credential token appeared in them.

The leak surfaces were:

| Surface | What was checked |
| --- | --- |
| CONNECT authority | Equals `target:443` with no username, password, or Basic token |
| Origin `Host` | Equals the target hostname |
| Origin header echo | `Proxy-Authorization` and `Authorization` absent from what the origin received |
| Redirect `Location` and curl redirect URL | No username, password, Basic token, or userinfo |
| Effective URL | No userinfo |
| SNI or SOCKS destination (tunnel inspect) | Equals `example.com` and carries no credential token |

Expected placement is not a leak. On residential HTTP, `Proxy-Authorization` is expected on the CONNECT request to the proxy. The check is that it does not appear past the proxy. On the SOCKS5h and direct conditions, no CONNECT `Proxy-Authorization` is expected.

### Schedule and what was counted

The first slot ran on 24 November, the same day the target list was frozen. Slots ran at about 06:00 and 18:00 UTC, with one immediate slot on the first day. The last slot was collected at 17:50 UTC on 26 November, inside its window and before the planned stop at 18:30 UTC. No slot was added after that.

Every slot's collection time falls inside its declared window. No slot was re-run.

## Results

### Coverage

| Condition | Probes | Transport completed | Tunnel inspections OK | Notes |
| --- | --- | --- | --- | --- |
| `direct` | 30 | 30 of 30 | Not applicable | Baseline |
| `residential-http` | 30 | 28 of 30 | 6 of 6 | Two timeouts, both on 24 November |
| `residential-socks5h` | 30 | 29 of 30 | 6 of 6 | One client-side SOCKS error |

Three probes failed at the transport layer and returned no HTTP status. They were a residential HTTP path check on 24 November (curl exit 28), a residential HTTP redirect on the 24 November evening slot (curl exit 28), and a SOCKS5h redirect on the final slot (curl exit 97, a proxy-level handshake failure). Those rows contribute no leak evidence. They were counted as transport failures, not as clean or dirty surfaces.

### Origin header echo

Only the header echo role can show what an origin actually received. Across all three conditions, the header echo was reached 6 times, and the origin's `Host` matched the target in 6 of 6 echoes for each condition.

| Condition | Echoes | Host matched target | `Proxy-Authorization` at origin | `Authorization` at origin |
| --- | --- | --- | --- | --- |
| `direct` | 6 | 6 | 0 | 0 |
| `residential-http` | 6 | 6 | 0 | 0 |
| `residential-socks5h` | 6 | 6 | 0 | 0 |

The set of header names the origin received was the same in every condition. It was `accept`, `accept-encoding`, `host`, `user-agent`, and `x-forwarded-proto` in each case. The `x-forwarded-proto` header appeared on direct requests too, so it comes from the origin's own edge rather than the proxy. No `Via` or `X-Forwarded-For` header appeared at the origin on any proxied probe.

### Redirect targets and effective URLs

Redirect rows were inspected through their `Location` header without being followed.

| Condition | Completed redirects | `Location` clean | Effective URL with userinfo |
| --- | --- | --- | --- |
| `direct` | 12 | 12 | 0 |
| `residential-http` | 11 | 11 | 0 |
| `residential-socks5h` | 11 | 11 | 0 |

The one missing redirect per proxy condition is the transport failure above, not a dirty result. Every completed `Location` pointed to `example.com` with no credential material.

### CONNECT authority, SOCKS destination, and SNI

For the residential HTTP path, the CONNECT authority equalled `target:443` in all 30 probes, including the two that later timed out. In the tunnel inspection, the destination field and the SNI matched `example.com` in 6 of 6 inspections on each proxy condition, and no credential token was found in either. The inspected TLS version was TLSv1.3 in all 12.

Username and password tokens were counted separately from the Basic token form, and none appeared in any surface. There was no effective-URL userinfo in any row.

### Where Proxy-Authorization went

On the residential HTTP path, `Proxy-Authorization` appeared on the CONNECT request in all 30 probes, as expected. It did not appear on any origin header echo. It did not appear on the direct or SOCKS5h rows, where it was not expected.

In other words, the proxy-facing request carried the credential, and the origin-facing request did not. The credential was consumed at the proxy hop.

### Exits, slot by slot

The table below uses the path-check trace for each condition. Exit country is what the Cloudflare trace reported. The `ip_hash` values are a salted hash of the observed address, used only to tell exits apart. No raw address is published.

| Slot (UTC) | Direct | Residential HTTP | Residential SOCKS5h | HTTP probes completed | SOCKS probes completed | Leak in any surface |
| --- | --- | --- | --- | --- | --- | --- |
| 24 Nov, immediate | US, IAD | Path check timed out | US, IAD | 4 of 5 | 5 of 5 | No |
| 24 Nov, 18:00 | US, IAD | UZ, WAW | UZ, WAW | 4 of 5 | 5 of 5 | No |
| 25 Nov, 06:00 | US, IAD | NL, AMS | NL, AMS | 5 of 5 | 5 of 5 | No |
| 25 Nov, 18:00 | US, IAD | RU, ARN | RU, ARN | 5 of 5 | 5 of 5 | No |
| 26 Nov, 06:00 | US, IAD | TW, TPE | TW, TPE | 5 of 5 | 5 of 5 | No |
| 26 Nov, 18:00 | US, IAD | RU, ARN | RU, ARN | 5 of 5 | 4 of 5 | No |

In every slot where both proxy path checks completed, the residential HTTP and SOCKS5h traces reported the same hashed exit. In the first slot the SOCKS5h trace reported US, IAD, but its hashed address differed from the direct one, so it was not simply the VM's own address passing through. The direct address also changed between slots, so the cloud source is not a fixed IP.

Exit countries changed across slots as the product rotated. That is useful for coverage and makes the single-exit reading of any one slot unsafe. The leak result does not depend on which country the exit was in: no slot showed a credential token on any surface.

## What this does and does not show

The strongest claim the data supports is this: on these probes, from this source, through this residential product, in HTTP CONNECT and SOCKS5h, we saw no credential token in the upstream surfaces we could observe. The origin's view of `Host` and of its received headers matched the target and carried no proxy credential. The redirect targets and the destination names were clean.

The second claim is about placement: credentials appeared on the proxy-facing CONNECT and never past it. That is the expected design, and it is what a leak-free proxy hop looks like from the client side.

What the data does not show:

- It does not show what a proxy does on the wire to the origin. We recorded the client's SNI and destination fields, and the origin's echoed headers. We did not capture packets on the proxy-to-origin leg, so a transparent rewrite of the TLS ClientHello on that leg is outside this vantage.
- It does not show behaviour for providers, plans, or protocols other than the one tested. A different residential product, a datacenter proxy, or a SOCKS server with a different auth method could behave differently.
- It does not test the SOCKS5 username and password exchange itself. That exchange happens between client and proxy, and it is not sent to the origin. We checked the destination field the client sent, not the authentication bytes.
- It does not measure how often a credential would leak if a leak existed. Six slots of 15 probes is a diary, not a rate with a confidence interval.

## Limits

One curl binary on one cloud source. One residential product. One header echo service for origin-side headers. Four frozen URLs, of which two were redirects to the same destination and one was a clean host. Three transport failures, which were not leak evidence.

The check for `Proxy-Authorization` on CONNECT relies on the verbose output of curl. That output was not saved, because it contains the proxy authorization header. Each parsed result is therefore a boolean recorded from a scratch-space process, not a stored log.

Exits rotated across slots. One path check per condition does not prove that every request in the slot shared an exit.

Header names observed at the origin are reported. Header values are not published in these files.

This is not a stickiness study, a kill-switch study, or a VPN measurement, and it does not rank providers.

## Evidence and reproducibility

The protocol, the frozen host list, the Day 0 screen summary, and every slot summary and result file are in the repository:

- Protocol: `research/proxy-auth-header-leak-3day/protocol.md`
- Frozen hosts: `research/proxy-auth-header-leak-3day/hosts.frozen.json`
- Day 0 screen summary: `research/proxy-auth-header-leak-3day/evidence/day0-screen/summary.json`
- Slot summaries: `research/proxy-auth-header-leak-3day/evidence/<slot>/summary.json`
- Slot results with boolean leak flags: `research/proxy-auth-header-leak-3day/evidence/<slot>/results.json`
- Status log: `research/proxy-auth-header-leak-3day/STATUS.md`

Proxy hostnames, usernames, passwords, the private curl config, the hash salt, and raw addresses are not in any committed file.

## Affiliate disclosure

This article links to [ProxySeller](https://freepolicytools.com/proxyseller/) and [CometVPN](https://freepolicytools.com/cometvpn/). FreePolicyTools may earn a commission if you buy through those links. The residential HTTP and SOCKS5h probes used ProxySeller residential endpoints. CometVPN was not used or measured in this study. The links are not a comparative test, and they do not change the methods, the counts, or the limits.

## Questions

**Did any credential reach the target site?**
Not in these probes. The origin's received headers, redirect targets, effective URLs, and destination names carried no username, password, or Basic token, across six slots.

**Where did Proxy-Authorization go?**
It was sent on the CONNECT request to the proxy in every residential HTTP probe. It never appeared in an origin header echo.

**Does this prove a proxy is safe?**
No. It is one product, one source, and a diary of six slots. It rules out a leak on these surfaces for this setup, nothing more.

**Why were there transport failures?**
Three probes timed out or failed a proxy handshake. The client did not get a response, so there was nothing to inspect on those rows.

**Is this about VPNs?**
No. There is no VPN arm. CometVPN was not run.

## Sources

- [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110), HTTP semantics, including the CONNECT method and the `Host` field.
- [RFC 7235](https://www.rfc-editor.org/rfc/rfc7235), HTTP authentication, including `Proxy-Authorization`.
- [RFC 1928](https://www.rfc-editor.org/rfc/rfc1928), SOCKS protocol version 5.
- [RFC 1929](https://www.rfc-editor.org/rfc/rfc1929), username and password authentication for SOCKS V5.
- [RFC 6066](https://www.rfc-editor.org/rfc/rfc6066), TLS server name indication.

Cite as FreePolicyTools, "Proxy Auth Never Reached the Origin: A Six-Slot CONNECT and SOCKS5h Leak Test" (2026).
