Page MenuHomePhabricator

Blanket reject request which may have been poisoned by a "Proxy" header to mitigate the httpoxy vulnerability
ClosedPublic

Authored by epriestley on Jul 22 2016, 12:25 AM.
Tags
None
Referenced Files
F19236506: D16318.diff
Sun, Dec 21, 7:12 PM
F19098879: D16318.id39239.diff
Dec 4 2025, 6:30 PM
F18898695: D16318.id.diff
Nov 7 2025, 7:05 PM
F18878636: D16318.diff
Nov 6 2025, 5:28 PM
F18827738: D16318.id.diff
Oct 24 2025, 11:51 AM
F18821704: D16318.id39240.diff
Oct 23 2025, 1:19 AM
F18821422: D16318.id39239.diff
Oct 22 2025, 10:59 PM
F18807700: D16318.diff
Oct 19 2025, 3:03 AM
Subscribers
None

Details

Summary

See accompanying discussion in T11359.

As far as I can tell we aren't vulnerable, but subprocesses could be (now, or in the future). Reject any request which may have a Proxy: header.

This will also do a false-positive reject if HTTP_PROXY is defined in the environment, but this is likely a misconfiguration (cURL does not read it). I'll provide guidance on this.

Test Plan
  • Made requests using curl -H Proxy:..., got rejected.
  • Made normal requests, got normal pages.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Blanket reject request which may have been poisoned by a "Proxy" header to mitigate the httpoxy vulnerability.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, avivey.
avivey edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jul 22 2016, 2:39 AM
This revision was automatically updated to reflect the committed changes.