Bug #72048 [NEW]: No way to disable peer name verification
| From: | michal at cihar dot com | Date: | Mon, 18 Apr 2016 14:11:18 +0000 |
| Subject: | Bug #72048 [NEW]: No way to disable peer name verification | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200627@lists.php.net to get a copy of this message | ||
From: michal at cihar dot com
Operating system:
PHP version: 7.0Git-2016-04-18 (Git)
Package: MySQLi related
Bug Type: Bug
Bug description:No way to disable peer name verification
Description:
------------
Currently the MySQLi driver only allows to validate SSL certificate and
whether it matches provided CN or skip both of these. This leads to
insecure setup in many cases as you have to disable SSL verification in
order to workaround CN/hostname mismatch (which is quite usual with
cloud providers as CN contains name of the instance and you connect
using IP address, this is true for example for Google Cloud SQL), what
makes using SSL pretty much useless as you're open to MITM attacks.
What is missing is separate control to disable only ssl.verify_peer_name
as you still want to verify the server certificate.
See also https://bugs.php.net/bug.php?id=68344
--
Edit bug report at https://bugs.php.net/bug.php?id=72048&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72048&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72048&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72048&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72048&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72048&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72048&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72048&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72048&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72048&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72048&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72048&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72048&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72048&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72048&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72048&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72048&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72048&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72048&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72048&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72048&r=mysqlcfg