View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17903 | Bug reports | Security | public | 2022-02-18 19:26 | 2022-02-28 12:58 |
Reporter | tassoman | Assigned To | galads | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.x | ||||
Summary | 17903: getIPAddress() helper wrongly parse multiple forward from proxies | ||||
Description | HTTP_X_FORWARDED_FOR header can be a string of comma separated IP addresses [1]. This is wrong when you run Limesurvey behind a proxy, inside kubernetes environment (also inside docker, i guess) Also 3.x-LTS branch is affected. I'm going to push two different pull requests on the Github This issue affects ip address validation, blacklisting EVERYONE for maximum attemps [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For | ||||
Steps To Reproduce | Steps to reproduce
Expected resultresponse's logged ip-address is 192.193.194.195 instead of client's ip or localhost Actual resultActually limesurvey fails and returns REMOTE_HOST value | ||||
Tags | No tags attached. | ||||
Bug heat | 258 | ||||
Complete LimeSurvey version number (& build) | 5.x 3.x-LTS | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | all | ||||
Database type & version | mysql | ||||
Server OS (if known) | linux | ||||
Webserver software & version (if known) | apache 2.4 | ||||
PHP Version | 7.4 | ||||
Pull request 5.x |
|
Pull request for 3.x-LTS branch |
|
Those pull requests needs approval because this is my first contribution. |
|
Ehm, yes, that's not a good commit, to lint everything. :) It should be linted, PSR-12, but that should happen in a separate PR. |
|
Indeed, I'm going to make a correction. |
|
https://github.com/LimeSurvey/LimeSurvey/pull/2257 � |
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33229 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33230 |
|
Fixed in Release 5.3.0+220228 |
|
LimeSurvey: 3.x-LTS 3f03ba8d 2022-02-22 22:55 Committer: GitHub Details Diff |
Fixed issue 17903: Incorrect IP address used when having multiple forward from proxies |
Affected Issues 17903 |
|
mod - application/helpers/common_helper.php | Diff File | ||
LimeSurvey: master 12fc718c 2022-02-22 22:58 Committer: GitHub Details Diff |
Fixed issue 17903: Incorrect IP address used when having multiple forward from proxies |
Affected Issues 17903 |
|
mod - application/helpers/common_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-02-18 19:26 | tassoman | New Issue | |
2022-02-18 19:29 | tassoman | Note Added: 68332 | |
2022-02-18 19:29 | tassoman | Bug heat | 250 => 252 |
2022-02-18 19:48 | tassoman | Note Added: 68333 | |
2022-02-21 10:11 | tassoman | Note Added: 68334 | |
2022-02-21 10:29 | ollehar | Note Added: 68335 | |
2022-02-21 10:29 | ollehar | Bug heat | 252 => 254 |
2022-02-21 12:01 | galads | Assigned To | => galads |
2022-02-21 12:01 | galads | Status | new => acknowledged |
2022-02-21 12:02 | galads | Zoho Project Synchronization | => |Yes| |
2022-02-21 13:17 | tassoman | Note Added: 68340 | |
2022-02-21 15:38 | tassoman | Note Added: 68343 | |
2022-02-22 21:55 | tassoman | Changeset attached | => LimeSurvey 3.x-LTS 3f03ba8d |
2022-02-22 21:55 | guest | Note Added: 68364 | |
2022-02-22 21:55 | guest | Bug heat | 254 => 256 |
2022-02-22 21:58 | tassoman | Changeset attached | => LimeSurvey master 12fc718c |
2022-02-22 21:58 | guest | Note Added: 68365 | |
2022-02-22 22:00 | c_schmitz | Status | acknowledged => resolved |
2022-02-22 22:00 | c_schmitz | Resolution | open => fixed |
2022-02-28 12:58 | LimeBot | Zoho Project Synchronization | Yes => |Yes| |
2022-02-28 12:58 | LimeBot | Note Added: 68423 | |
2022-02-28 12:58 | LimeBot | Status | resolved => closed |
2022-02-28 12:58 | LimeBot | Bug heat | 256 => 258 |