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
F15584607: D16318.diff
Thu, May 8, 4:56 AM
F15568544: D16318.diff
Sat, May 3, 5:06 AM
F15563418: D16318.id39240.diff
Wed, Apr 30, 8:04 AM
F15561210: D16318.id.diff
Tue, Apr 29, 6:38 PM
F15556730: D16318.diff
Mon, Apr 28, 6:10 PM
F15491388: D16318.id39239.diff
Sat, Apr 12, 2:47 AM
F15467966: D16318.id39239.diff
Apr 3 2025, 6:53 PM
F15456332: D16318.id39240.diff
Mar 30 2025, 8:47 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
Branch
httpoxy1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 13116
Build 16775: Run Core Tests
Build 16774: arc lint + arc unit

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.