Skip to content
Heist/ feed
Back to feed
Medium

Improper Restriction of Excessive Authentication Attempts in phpipam/phpipam

Type: advisorySources: OSV

phpIPAM version 1.5.1 contains a vulnerability where an attacker can bypass the IP block mechanism to brute force passwords for users by using the 'X-Forwarded-For' header. The issue lies in the 'get_user_ip()' function in 'class.Common.php' at lines 1044 and 1045, where the presence of the 'X-Forwarded-For' header is checked and used instead of 'REMOTE_ADDR'. This vulnerability allows attackers to perform brute force attacks on user accounts, including the admin account. The issue is fixed in version 1.7.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-0787
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:33 UTC · Revision 1

Source evidence

Improper Restriction of Excessive Authentication Attempts in phpipam/phpipam

core-osv · Original source

Published 15 Nov 2024, 10:57 UTC

phpIPAM version 1.5.1 contains a vulnerability where an attacker can bypass the IP block mechanism to brute force passwords for users by using the 'X-Forwarded-For' header. The issue lies in the 'get_user_ip()' function in 'class.Common.php' at lines 1044 and 1045, where the presence of the 'X-Forwarded-For' header is checked and used instead of 'REMOTE_ADDR'. This vulnerability allows attackers to perform brute force attacks on user accounts, including the admin account. The issue is fixed in version 1.7.0.

osv:CVE-2024-0787
Complete source record
{
  "id": "3d3ddd50d752102b30753c96760fa2475a4b847f97399e07bbbfeec386701214",
  "url": "https://osv.dev/vulnerability/CVE-2024-0787",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Restriction of Excessive Authentication Attempts in phpipam/phpipam",
    "summary": "phpIPAM version 1.5.1 contains a vulnerability where an attacker can bypass the IP block mechanism to brute force passwords for users by using the 'X-Forwarded-For' header. The issue lies in the 'get_user_ip()' function in 'class.Common.php' at lines 1044 and 1045, where the presence of the 'X-Forwarded-For' header is checked and used instead of 'REMOTE_ADDR'. This vulnerability allows attackers to perform brute force attacks on user accounts, including the admin account. The issue is fixed in version 1.7.0.",
    "evidence": "osv:CVE-2024-0787",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-0787",
      "aliases": [
        "CVE-2024-0787"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/phpipam/phpipam",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3271d956a581a00a7d4080426d5ca8f2c4b06102"
                },
                {
                  "fixed": "55c2056068be9f1359e967fcff64db6b7f4d00b5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:phpipam:phpipam:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.7.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "55c2056068be9f1359e967fcff64db6b7f4d00b5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.6.0",
            "v1.5.0",
            "v1.3.2",
            "v1.3.0",
            "v1.2.0_beta2",
            "v1.19.008",
            "v1.16.003"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-0787.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.403352531Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/840cb582-1feb-43ab-9cc4-e4b5a63c5bab",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/0xxx/CVE-2024-0787.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-0787",
        "https://github.com/phpipam/phpipam/commit/55c2056068be9f1359e967fcff64db6b7f4d00b5"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-307"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/0xxx/CVE-2024-0787.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-0787",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488562,
  "published_at": "2024-11-15T10:57:05.41+00:00"
}