ph7software/ph7builder is vulnerable to Use of Hard-coded Credentials
87
CVE Score
High
Use of Hard-coded Credentials
Tool::checkAccess() reads private_api_key and url from untrusted request input, and isApiKeyValid() accepts the hard-coded key dev772277 when Server::isLocalHost() returns true. isLocalHost() compares the request Host header against localhost, 127.0.0.1 and ::1, so a spoofed Host header bypasses the configured private API key for any allow-listed url, granting API access. The route that calls checkAccess() is unverified, so the exposed data is unconfirmed. The fix removes the hard-coded key and compares a non-empty configured key with hash_equals().
Upgrade the ph7software/ph7builder package to version 18.6.0 or later.
You are affected if you are using a version that falls within the vulnerable range and use a release where Tool::isApiKeyValid() accepts the hard-coded development key on local-host requests.
10.0.8 - 18.5.1
Fixed in 18.6.0ph7software/ph7builder is vulnerable to Use of Hard-coded Credentials in versions 10.0.8 - 18.5.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.