Bug #21638

IP-lock not aware of IPv6

Added by Bas v.d. Wiel about 11 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Locking / Session Handling
Target version:
-
Start date:
2010-08-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

When locking a session to an IP with less than 4 parts, the core attempts to do IPv4 things to a potentially IPv6 address.

The attached patch adds a simple check for IPv6 addresses and keeps TYPO3 from wrongly assuming IPv4. It just returns the full IP, assuming this choice will lock the session to the individual address (reproducing the default strictest behaviour for IPv4).

The patch is against class.t3lib_userauth.php, being the first actual patch I ever contributed to another project.. please go easy on me if I did it wrong. ;-)
(issue imported from #M15379)


Files

userauth_ipv6.patch (239 Bytes) userauth_ipv6.patch Administrator Admin, 2010-08-06 18:49
15379_v2.diff (565 Bytes) 15379_v2.diff Administrator Admin, 2010-08-08 12:50

Related issues

Related to TYPO3 Core - Feature #25336: Add support for IPv6Closed2011-03-16

Actions
Related to TYPO3 Core - Bug #89226: Removed IPlock properties are still assignedClosedBenni Mack2019-09-23

Actions
Has duplicate TYPO3 Core - Bug #58699: IPv6 completely ignored by FE/BE lockIPClosed2014-05-11

Actions
Has duplicate TYPO3 Core - Feature #62375: IPv6 session lock Closed2014-10-21

Actions
Has duplicate TYPO3 Core - Bug #44109: ses_iplock IPv6Closed2012-12-19

Actions

Also available in: Atom PDF