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

nette / http / 29305851508
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: v3.3
DEFAULT BRANCH: master
Ran 14 Jul 2026 04:23AM UTC
Jobs 1
Files 19
Run time 1min
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

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

Uncovered Changes

Lines Coverage ∆ File
1
96.0
-0.28% src/Http/RequestFactory.php
Jobs
ID Job ID Ran Files Coverage
1 29305851508.1 14 Jul 2026 04:23AM UTC 19
83.29
GitHub Action Run
Source Files on build 29305851508
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 677e7401 on github
  • Prev Build on v3.3 (#29286068641)
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