{"id":"CVE-2024-0787","state":"PUBLISHED","title":"Improper Restriction of Excessive Authentication Attempts in phpipam/phpipam","description":"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.","publishedAt":"2024-11-15T10:57:05.410Z","updatedAt":"2024-11-15T19:09:48.262Z","severity":{"score":5.3,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["phpipam phpipam/phpipam"],"affected":[{"vendor":"phpipam","product":"phpipam/phpipam","versions":[{"version":"unspecified","status":"affected","lessThan":"1.7.0","versionType":"custom"}]}],"references":["https://huntr.com/bounties/840cb582-1feb-43ab-9cc4-e4b5a63c5bab","https://github.com/phpipam/phpipam/commit/55c2056068be9f1359e967fcff64db6b7f4d00b5"],"weaknesses":["CWE-307"],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/0xxx/CVE-2024-0787.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-0787","state":"PUBLISHED","datePublished":"2024-11-15T10:57:05.410Z","dateUpdated":"2024-11-15T19:09:48.262Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-01-22T17:00:17.923Z"},"containers":{"cna":{"title":"Improper Restriction of Excessive Authentication Attempts in phpipam/phpipam","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"phpipam","product":"phpipam/phpipam","versions":[{"version":"unspecified","status":"affected","lessThan":"1.7.0","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/840cb582-1feb-43ab-9cc4-e4b5a63c5bab"},{"url":"https://github.com/phpipam/phpipam/commit/55c2056068be9f1359e967fcff64db6b7f4d00b5"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-307","type":"CWE","lang":"en","description":"CWE-307 Improper Restriction of Excessive Authentication Attempts"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2024-11-15T10:57:05.410Z"},"source":{"advisory":"840cb582-1feb-43ab-9cc4-e4b5a63c5bab","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"phpipam","product":"phpipam","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.70","versionType":"custom"}],"cpes":["cpe:2.3:a:phpipam:phpipam:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-11-15T19:08:12.245566Z","id":"CVE-2024-0787","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-15T19:09:48.262Z"}}]}}}