# CVE-2024-0787: Improper Restriction of Excessive Authentication Attempts in phpipam/phpipam

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-15T10:57:05.410Z
- Modified: 2026-06-17T06:54:17.190Z
- Weaknesses: CWE-307
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- phpipam phpipam/phpipam: from unspecified before 1.7.0
- phpipam phpipam: before 1.70; before 1.7.0

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/840cb582-1feb-43ab-9cc4-e4b5a63c5bab> (exploit, third-party-advisory)
- <https://github.com/phpipam/phpipam/commit/55c2056068be9f1359e967fcff64db6b7f4d00b5> (patch)

## Sources

- CVE List: [CVE-2024-0787](https://www.cve.org/CVERecord?id=CVE-2024-0787), CVE Terms of Use, modified 2024-11-15
- NVD: [CVE-2024-0787](https://nvd.nist.gov/vuln/detail/CVE-2024-0787), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-0787 · Whole record: https://cve.day/CVE-2024-0787.json · Rebuilt by cve.day 2026-11-25T22:58:48.291Z
