S4E just found a high top 10 tcp port service scan
high·Misconfiguration·Updated May 27, 2026

Laravel Passport Oauth2 Keys Exopose Security Misconfiguration Scanner

This scanner detects the use of Laravel Passport Security Misconfiguration in digital assets. Public exposure of OAuth2 RSA keys may allow attackers to forge access tokens.

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
3.1k
Times Used
continuous scan runs
3.4k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
Detail

Laravel Passport is commonly used for API authentication using OAuth2 with Laravel applications. Developers integrate Passport to simplify API authentication processes and implement secure access control. It is popular among web developers seeking to enhance the security of API endpoints. However, improper configuration could lead to public exposure of sensitive keys. Ensuring keys are well protected is paramount for developers and system administrators. Misconfigured Laravel Passport can be a vector for unauthorized access and potential data breaches.

The security misconfiguration vulnerability detected here involves the exposure of Laravel Passport's OAuth2 RSA keys. These are typically found at default storage paths if not properly secured. Publicly accessible keys can lead to significant security issues. They allow attackers to forge OAuth2 access tokens. Hence, it's crucial to ensure the storage directory is appropriately protected. Misconfigurations of this sort are a common oversight during the deployment phase.

In technical details, Laravel Passport keys are stored in default paths like /storage/oauth-private.key and /storage/oauth-public.key. If these directories are publicly accessible, attackers can retrieve the keys. The scanner checks for HTTP responses with RSA private or public key signatures. A 200 status response with key signatures indicates improper configuration. This could facilitate attackers impersonating users on a connected platform. Checking and rectifying access controls is vital to prevent exploitation.

The possible effects of exploiting this vulnerability include unauthorized data accesses and user impersonation. Attackers could create fake access tokens, allowing them to exploit user data. They could access, modify, or delete sensitive information illicitly. Unauthorized access potentially extends to other connected systems. Additionally, it could facilitate further attacks, compromising the integrity and confidentiality of user data. Such vulnerabilities highlight the need for robust configuration management.

REFERENCES

Solution Advice
  • Move the Passport keys outside the web root directory.
  • Configure your web server to deny access to the storage directory.
  • Ensure proper access controls on directories hosting sensitive files.
  • Regularly audit systems to identify potential security misconfigurations.
  • Educate developers and system administrators on secure storage practices.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

Laravel Passport Oauth2 Keys Exopose Security Misconfiguration Scanner S4E