thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server

Home Page:https://oauth2.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Private key is shown in Error message on invalid pass phrase

MHC03 opened this issue · comments

commented

CryptKey.php allows the private key to either be a file or its contents directly. When I pass in the contents and give it the wrong pass phrase the private key is shown through the LogicException message. This might be a security issue.

throw new LogicException('Unable to read key from file ' . $keyPath);

Thanks for this. Great spot. Fixed in PR #1353. Cheers for reporting

commented

Thank you very much for this quick fix and release!