/

CVE-2026-37604

Severity:

CRITICAL RISK

(9.8)

IP Spoofing (CWE-444) in pH7Builder Admin Login Controls

CVE-2026-37604

Deferred

Vulnerability type

Category:

HTTP Request Interpretation Confusion

CWE:

CWE-444

Impact:

Authentication Throttling Bypass

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

pH7Builder trusts client IP addresses supplied through the HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR headers without confirming that the request came through a trusted proxy. An unauthenticated remote attacker can submit a different forwarded address for each login attempt, bypassing IP-based throttling and lockout protections.

Affected context

This issue occurs in pH7Builder deployments through version 18.2.0 when the application derives the client address from user-controlled proxy headers. It is especially relevant to the administrator login flow, where failed-attempt counters and lockout decisions depend on the resolved IP address and the deployment does not enforce a trusted-proxy boundary.

Exploit preconditions

  • Attack surface: Publicly reachable administrator login endpoint
  • Required access: No authentication is required
  • Trigger point: Repeated failed login attempts that invoke IP-based throttling or lockout logic
  • Why exploitation is possible: The application accepts attacker-controlled HTTP_CLIENT_IP or HTTP_X_FORWARDED_FOR values as the client identity without validating the proxy that supplied them

Why this happens

The underlying bug is an inconsistent and unsafe interpretation of HTTP request metadata. The application treats forwarding-related headers as authoritative client identity data even when requests may originate directly from untrusted clients.

This maps to CWE-444: Inconsistent Interpretation of HTTP Requests, because application security controls interpret attacker-controlled request headers differently from the actual network path. As a result, each request can be associated with a different apparent source address, undermining controls keyed to that value.

Potential impact

  • Attackers may bypass IP-based login throttling
  • Attackers could reduce the effectiveness of administrator account lockout controls
  • Automated password-guessing attempts may become more difficult to detect and contain
  • Increased login abuse could contribute to administrator account compromise
  • Security monitoring based on client IP addresses may become less reliable

General mitigation guidance

Mitigation generally focuses on establishing a clear trust boundary for client IP resolution and ensuring authentication controls do not rely solely on untrusted headers.

Common defensive patterns include:

  • Accepting forwarding headers only from explicitly configured, trusted reverse proxies
  • Ignoring client-supplied proxy headers when requests do not traverse an approved proxy
  • Deriving rate-limit identity from a trustworthy network-layer source or a stable authenticated account identifier
  • Applying throttling and lockout controls across multiple dimensions rather than relying only on source IP
  • Limiting administrative access through network controls, strong authentication, and least privilege
  • Recording both the network peer and interpreted forwarding chain for security review

How teams detect issues like this

Organizations can look for:

  • Static analysis or code review findings where HTTP_CLIENT_IP or X-Forwarded-For directly influences authentication, authorization, rate limiting, or lockout decisions
  • Proxy configuration that forwards client-supplied address headers without replacing or validating them
  • Requests containing rapidly changing forwarding-header values during repeated login failures
  • Authentication logs where the network peer differs consistently from the application-resolved client address
  • Security policies requiring trusted-proxy configuration and prohibiting security decisions based solely on unvalidated request headers

Automated application security and code review tools may help identify direct header-to-security-control data flows.

Sources

SourceLink
cybermapgroup.comcybermapgroup.com/en/blog/admin-brute-force-protection-bypass-chain-in-ph7builder
github.comgithub.com/pH7Software/pH7-Social-Dating-CMS
ph7builder.comph7builder.com

Frequently asked

questions

Yes. The affected login endpoint can be reached remotely, and exploitation does not require prior authentication when the application accepts attacker-controlled forwarding headers.

No. The issue arises when the application treats headers supplied by an untrusted client as authoritative. Direct access to the public login endpoint may be sufficient.

Configure the application to trust forwarding headers only from explicitly identified reverse proxies, and use a trustworthy identity source for throttling and lockout decisions.

Define and enforce proxy trust boundaries, validate request metadata at the edge, avoid using untrusted headers for security decisions, and monitor for inconsistent network and application client addresses.

Find out what's already
exploitable in your codebase.