phpIPAM 1.4.4 - SQL Injection

4.7

Medium

Discovered by 

Oscar Uribe

Offensive Team, Fluid Attacks

Summary

Full name

phpIPAM 1.4.4 - SQL Injection

Code name

State

Public

Release date

Jan 18, 2022

Affected product

phpIPAM

Affected version(s)

1.4.4

Fixed version(s)

1.4.5

Vulnerability name

SQL injection

Vulnerability type

Remotely exploitable

Yes

CVSS v3.1 vector string

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L

CVSS v3.1 base score

4.7

Exploit available

No

Description

phpIPAM v1.4.4 allows an authenticated admin user to inject SQL sentences in the "subnet" parameter while searching a subnet via app/admin/routing/edit-bgp-mapping-search.php.

Proof of Concept

Steps to reproduce

  1. Go to settings and enable the routing module.

  2. Go to show routing.

  3. Click on "Add peer" and create a new "BGP peer".

  4. Click on the newly created "BGP peer".

  5. Click on "Actions" and go to "Subnet Mapping".

  6. Scroll down to "Map new subnet".

  7. Insert an SQL Injection sentence inside the search parameter, for example: " union select @@version,2,user(),4 -- -.

System Information

  • Version: phpIPAM IP address management v1.4.4.

  • Operating System: Linux.

  • Web Server: Apache

  • PHP Version: 7.4

  • Database and version: Mysql

Exploit

An exploit developed for another researcher can be found at ExploitDB.

Mitigation

An updated version of phpIPAM is available at the vendor page.

References

Timeline

Vulnerability discovered

Jan 6, 2022

Vulnerability patched

Jan 17, 2022

Vendor contacted

Jan 7, 2022

Vendor replied

Jan 7, 2022

Public disclosure

Jan 18, 2022

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.