Security report for my WordPress site
-
Hi,
There are several vulnerabilities detected in WordPress Core while performing code quality and code security check by SonarQube. The environment information is below:
WordPress: 5.7.1
PHP: 7.3
Web Server: Apache 2.4
OS: Ubuntu 18xHow can we get rid of them? Kindly suggest.
FilePath: wp-includes/ID3/getid3.lib.php
Vulnerability Reported by tool: Enable server certificate validation on this SSL/TLS connection.
This is reported because in php code CURLOPT_SSL_VERIFYPEER is set to false.public static function getResponseObject($url) { $output = ''; if (function_exists('curl_init')) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $output = curl_exec($ch); curl_close($ch); } else { $file_headers = get_headers($url); if (strpos(strtolower($file_headers[0]), '200 ok') !== false) { $output = file_get_contents($url); } } return $output; }
Best
Ankit
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Security report for my WordPress site’ is closed to new replies.