CVE details
CVE-2024-0787
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.
Matched ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| net-mgmt/phpipam | phpipam | 1.6.0 | unaddressed | jake@xz.cx |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>phpipam</name>
<range><lt>1.7.0</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2024-0787</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2024-0787</url>
</references>
<dates>
<discovery>2024-11-15</discovery>
<entry>2026-10-26</entry>
</dates>
</vuln>