简体   繁体   English

Wamp服务器为PHP应用补丁

[英]Wamp server apply patches for the PHP

I am using WAMP server version 3.1.4 64 bit, having PHP version 7.2.10, Apache version 2.4.35, 我使用WAMP服务器版本3.1.4 64位,PHP版本7.2.10,Apache版本2.4.35,

There are Multiple Heap Buffer Overflow Vulnerabilities for PHP versions prior to 7.3.3. 对于7.3.3之前的PHP版本,存在多个堆缓冲区溢出漏洞

Vulnerabilities listed here 此处列出的漏洞

and patch for the Vulnerability available here 和漏洞补丁程序可在此处获得

Possible solution is i can download latest Wamp server(Which provide PHP version 7.3.4) and install it, but here is catch, my some of the applications requires SSH access to other remote server to run scripts on remote servers and some applications also requierd SFTP connections to remote servers,You can check here that php_ssh2.dll,php_ssh2.pdb is only available for PHP verion 7.2, not for PHP version 7.3, so if i upgrade WAMP server to latest verion, These applications will stop working, So i have to apply patch available to provide audit compliance. 可能的解决方案是我可以下载最新的Wamp服务器(提供PHP版本7.3.4)并安装它,但这里是catch,我的一些应用程序需要SSH访问其他远程服务器才能在远程服务器上运行脚本,而且一些应用程序也需要SFTP连接到远程服务器,您可以在这里检查php_ssh2.dll,php_ssh2.pdb仅适用于PHP版本7.2,而不适用于PHP版本7.3,因此如果我将WAMP服务器升级到最新版本,这些应用程序将停止工作,所以我必须应用可用的补丁来提供审计合规性。

I dont know how to apply these patch and also not able to find any article which helps/guide me for the same. 我不知道如何应用这些补丁,也无法找到任何帮助/指导我的文章。

Link of patch posted above and i am also mentioning content of patch file below 上面发布的补丁链接,我也在下面提到补丁文件的内容

diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index fe89b85471..0b5bb5ae21 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -2802,6 +2802,10 @@ static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * valu
        exif_error_docref("exif_read_data#error_ifd" EXIFERR_CC, ImageInfo, E_WARNING, "Illegal IFD size: 2 + 0x%04X*12 = 0x%04X > 0x%04X", NumDirEntries, 2+NumDirEntries*12, value_len);
        return FALSE;
    }
+   if ((dir_start - value_ptr) > value_len - (2+NumDirEntries*12)) {
+       exif_error_docref("exif_read_data#error_ifd" EXIFERR_CC, ImageInfo, E_WARNING, "Illegal IFD size: 0x%04X > 0x%04X", (dir_start - value_ptr) + (2+NumDirEntries*12), value_len);
+       return FALSE;
+   }

    for (de=0;de<NumDirEntries;de++) {
        if (!exif_process_IFD_TAG(ImageInfo, dir_start + 2 + 12 * de,

Can anyone help me with how can i apply this patch ? 任何人都可以帮助我如何应用此补丁?

WAMPServer 3 is completely easy to update in place. WAMPServer 3非常容易更新。

Go to the WAMPServer backup repo (only because it is easier to navigate that SourceForge) and download the latest WAMPServer UPDATE (Currently 3.1.8) This will NOT effect the versions of Apache/MySQL/PHP you are using, it will just update the WAMPServer core code. 转到WAMPServer备份仓库(仅因为它更容易导航SourceForge)并下载最新的WAMPServer UPDATE(目前3.1.8)这不会影响您正在使用的Apache / MySQL / PHP版本,它只会更新WAMPServer核心代码。

Then Pick any version of Apache - MySQL - mariaDB - PHP from the 100's of versions available in the repo. 然后从repo中提供的100个版本中选择任何版本的Apache - MySQL - mariaDB - PHP。 You may need to click the "See All Available Versions" button. 您可能需要单击“查看所有可用版本”按钮。

Click any one to download the installer. 单击任何一个以下载安装程序。 Run the installer. 运行安装程序。 That version of whatever you picked will be installed, BUT NOT ACTIVATED. 您选择的任何版本都将被安装,但不会被激活。 So use the WAMPServer menus to activate the version you want to use. 因此,使用WAMPServer菜单激活您要使用的版本。

Remember, if you are changing versions of MySQL or mariaDB, you should backup your databases in the current version before switching to the new versionj. 请记住,如果要更改MySQL或mariaDB的版本,则应在切换到新版本之前备份当前版本的数据库。 Then simply restore the databases. 然后只需恢复数据库。 This will avoid any version issues. 这将避免任何版本问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM