• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nette / http
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: v3.3
DEFAULT BRANCH: master
Repo Added 25 Jan 2021 12:42AM UTC
Files 19
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH v3.3
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • master
  • v3.0
  • v3.0.6
  • v3.0.7
  • v3.1
  • v3.1.1
  • v3.1.2
  • v3.1.3
  • v3.1.4
  • v3.1.5
  • v3.1.6
  • v3.1.7
  • v3.1.8
  • v3.2
  • v3.2.0
  • v3.2.0-RC
  • v3.2.1
  • v3.2.2
  • v3.2.3
  • v3.2.4
  • v3.3
  • v3.3.0
  • v3.3.0-RC
  • v3.3.1
  • v3.3.2
  • v3.3.3
  • v3.3.4
  • v3.4
  • v3.4.0

14 Jul 2026 04:22AM UTC coverage: 83.289% (+0.09%) from 83.198%
29305851508

push

github

dg
RequestFactory: fixes client spoofing in trusted-proxy forwarding (security)

Backport of the proxy-resolution hardening to the 3.3 branch, without the
new configuration API.

The "Forwarded" branch trusted the leftmost "for" element, which a client can
forge by appending its own; it also merged the ',' and ';' separators with
preg_split, losing the hop structure. Both branches could return a non-IP
string from getRemoteAddress().

- Forwarded is now parsed per hop (RFC 7239): elements by ',', params by ';'.
- The client is the rightmost untrusted hop after stripping trailing trusted
  proxies (shared findClientHop()), not the spoofable leftmost one.
- host/proto are taken from the same hop as the client "for".
- The resolved address is validated as an IP; an obfuscated/invalid value or a
  fully trusted chain now yields null instead of a non-IP string.

BC: getRemoteAddress() returns null (not a non-IP string) when the innermost
forwarded value is not a valid IP; a Forwarded header carrying only proto/host
without a valid "for" no longer sets the scheme/host.

38 of 39 new or added lines in 1 file covered. (97.44%)

932 of 1119 relevant lines covered (83.29%)

0.83 hits per line

Relevant lines Covered
Build:
Build:
1119 RELEVANT LINES 932 COVERED LINES
0.83 HITS PER LINE
Source Files on master
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29305851508 v3.3 RequestFactory: fixes client spoofing in trusted-proxy forwarding (security) Backport of the proxy-resolution hardening to the 3.3 branch, without the new configuration API. The "Forwarded" branch trusted the leftmost "for" element, which a clie... push 14 Jul 2026 04:23AM UTC dg github
83.29
29305157373 master uses #Deprecated wip push 14 Jul 2026 04:07AM UTC dg github
83.11
29305138811 v3.4 HttpExtension: default to trusting X-Forwarded-For only (BC break!) Changes the configured default of `proxyHeaders` from "both" to "xForwarded", so an application behind a proxy no longer trusts a client-supplied "Forwarded" header by default (t... push 14 Jul 2026 04:06AM UTC dg github
84.28
29286068641 v3.3 phpstan: fixes push 13 Jul 2026 09:22PM UTC dg github
83.2
29282633795 v3.3 HttpExtension: default to trusting X-Forwarded-For only (BC break!) Changes the configured default of `proxyHeaders` from "both" to "xForwarded", so an application behind a proxy no longer trusts a client-supplied "Forwarded" header by default (t... push 13 Jul 2026 08:30PM UTC dg github
83.39
27922157098 master uses #Deprecated wip push 22 Jun 2026 12:15AM UTC dg github
82.96
27921299958 v3.4 added CLAUDE.md push 21 Jun 2026 11:44PM UTC dg github
84.14
27451919522 v3.4.0 added SameSite enum; setCookie() and Session accept it, IResponse::SameSite* constants deprecated push 13 Jun 2026 01:06AM UTC dg github
84.14
27451878080 v3.4 added CLAUDE.md push 13 Jun 2026 01:05AM UTC dg github
84.14
27451017397 v3.4 blog push 13 Jun 2026 12:33AM UTC dg github
84.07
See All Builds (389)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc