Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9466

"Registered from IP" contains invalid IP address

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • 3.0.x
    • 3.0.6
    • Other
    • None
    • PHP Environment: 5.2.10
      Database: 5.0.77

    Description

      I recently found a registered user on my forum where the ACP claims the "registered from IP" is:

      10.216.6.118, 161.148.54.145

      The user_ip field in the database contains this exact string. When clicking the IP or Whois links in the ACP, PHP throws an error:

      [phpBB Debug] PHP Notice: in file /includes/acp/acp_users.php on line 925: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address

      and

      [phpBB Debug] PHP Notice: in file /includes/acp/acp_users.php on line 60: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address

      As another consequence, attempting to ban the user by IP fails with a green info block saying, "No IP addresses or hostnames defined".

      I have "Validated X_FORWARDED_FOR header" enabled, and I think this might be related.

      See attached screenshot for the IP appearing in ACP.

      This bug has been placed in the ACP component, since it is the one most affected, but probably stems from Sessions.

      Attachments

        Activity

          People

            Acyd Burn Meik Sievertsen [X] (Inactive)
            parasytic parasytic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: