alexpechkarev/google-maps through 12.16 Disabled TLS Certificate Verification via ssl_verify_peer
Impact
The alexpechkarev/google-maps Laravel package through 12.16 disables TLS certificate verification by default because the bundled config sets ssl_verify_peer to FALSE, which is passed to CURLOPT_SSL_VERIFYPEER. On-path attackers can present any certificate to intercept Google Maps web-service requests, steal the API key from the query string, and tamper with responses.
Source excerpt · VulnCheckAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
alexpechkarev · google-maps
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 1.0.3 through 12.16 (inclusive) | affected |
Original source description
The alexpechkarev/google-maps Laravel package through 12.16 disables TLS certificate verification by default because the bundled config sets ssl_verify_peer to FALSE, which is passed to CURLOPT_SSL_VERIFYPEER. On-path attackers can present any certificate to intercept Google Maps web-service requests, steal the API key from the query string, and tamper with responses.
References
- Source reference github.com/alexpechkarev/google-maps/issues/123
- Source reference github.com/alexpechkarev/google-maps
- Source reference github.com/alexpechkarev/google-maps/blob/v12.16/src/config/googlemaps.php
- Source reference github.com/alexpechkarev/google-maps/blob/v12.14/src/WebService.php
- Security advisory www.vulncheck.com/advisories/alexpechkarev-google-maps-through-12.16-disabled-tls-certificate-verification-via-ssl-verify-peer