{"id":136479,"date":"2019-03-07T10:36:33","date_gmt":"2019-03-07T02:36:33","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=136479"},"modified":"2019-02-18T15:37:22","modified_gmt":"2019-02-18T07:37:22","slug":"apt-linux-rce","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/apt-linux-rce.html","title":{"rendered":"APT Linux \u5305\u7ba1\u7406\u5668\u4e2d\u7684 RCE \u6f0f\u6d1e\u7ec8\u4e8e\u88ab\u4fee\u590d"},"content":{"rendered":"
\u72ec\u7acb\u987e\u95ee\u517c\u5b89\u5168\u5408\u540c\u5de5 Max Justicz \u5728 Debian\u3001Ubuntu\u548c\u5176\u5b83\u76f8\u5173 Linux \u53d1\u884c\u7248\u672c\u4f7f\u7528\u7684 APT \u9ad8\u7ea7\u522b\u5305\u7ba1\u7406\u5668\u4e2d\u53d1\u73b0\u4e86\u4e00\u4e2a\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u95ee\u9898\u3002<\/p>\n
Justicz \u8868\u793a\uff0c\u8fd9\u4e2a APT \u6f0f\u6d1e\u5b58\u5728\u4e8e\u7248\u672c 0.8.15 \u53ca\u4ee5\u540e\u7684\u5305\u7ba1\u7406\u5668\u7248\u672c\u4e2d\uff0c\u201c\u53ef\u5141\u8bb8\u4e2d\u95f4\u4eba\u7f51\u7edc\uff08\u6216\u6076\u610f\u5305\u955c\u50cf\uff09\u5728\u673a\u5668\u4e0a\u4ee5\u6839\u6743\u9650\u6267\u884c\u4efb\u610f\u4ee3\u7801\u5b89\u88c5\u4efb\u610f\u5305\u3002\u8be5 bug \u5df2\u4e8e\u6700\u65b0\u7684 APT \u7248\u672c\u4e2d\u4e88\u4ee5\u4fee\u590d\u3002\u201d<\/p>\n
\u53e6\u5916\uff0c\u5982 Yves-Alexis Perez \u5728 Debian \u5b89\u5168\u516c\u544a DSA-4371-1 \u4e2d\u8be6\u8ff0\u5f97\u90a3\u6837\uff1a\u201c\u5904\u7406 HTTP \u4f20\u8f93\u65b9\u6cd5\u4e2d HTTP \u91cd\u5b9a\u5411\u7684\u4ee3\u7801\u5e76\u672a\u6b63\u786e\u6e05\u6d01\u7ecf\u7531\u65e0\u7ebf\u4f20\u8f93\u7684\u5b57\u6bb5\u3002\u653b\u51fb\u8005\u53ef\u5229\u7528\u8be5\u6f0f\u6d1e\u4f5c\u4e3a API \u548c\u955c\u50cf\u4e4b\u95f4\u7684\u4e2d\u95f4\u4eba\uff0c\u5728 HTTP \u8fde\u63a5\u4e2d\u6ce8\u5165\u6076\u610f\u5185\u5bb9\u3002\u8be5\u5185\u5bb9\u4e4b\u540e\u88ab API \u8bc6\u522b\u4e3a\u6709\u6548\u5305\uff0c\u653b\u51fb\u8005\u5728\u540e\u7eed\u4ee5\u6839\u6743\u9650\u5728\u76ee\u6807\u673a\u5668\u4e0a\u6267\u884c\u4ee3\u7801\u3002\u201d<\/p>\n
\u7531\u4e8e\u8be5\u6f0f\u6d1e (CVE-2019-3462) \u88ab\u63cf\u8ff0\u4e3a Ubuntu Launchpad \u5b58\u50a8\u5e93\u4e0a\u201chttp \u65b9\u6cd5\u4e2d\u7684\u5185\u5bb9\u6ce8\u5165\u201d\uff0c\u5f71\u54cd\u7528\u4e8e\u66f4\u65b0 OS \u7ec4\u4ef6\u7684\u5de5\u5177\u5305\u7ba1\u7406\u5668\uff0c\u56e0\u6b64 Debian \u5b89\u5168\u516c\u544a\u5efa\u8bae\u7528\u6237\u5728\u5c06 APT \u66f4\u65b0\u81f3\u6700\u65b0\u7248\u672c\u4e4b\u524d\uff0c\u91c7\u53d6\u989d\u5916\u63aa\u65bd\u907f\u514d\u7cfb\u7edf\u906d\u5229\u7528\u3002<\/p>\n
\u5b89\u5168\u516c\u544a\u6307\u51fa\uff0c\u201c\u7531\u4e8e\u6f0f\u6d1e\u5b58\u5728\u4e8e\u5305\u7ba1\u7406\u5668\u672c\u8eab\uff0c\u56e0\u6b64\u5efa\u8bae\u7981\u7528\u91cd\u5b9a\u5411\u4ee5\u4fbf\u963b\u6b62\u4ec5\u5728\u6b64\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u7684\u5229\u7528\uff0c\u65b9\u6cd5\u662f\u4f7f\u7528<\/p>\n
apt -o Acquire::http::AllowRedirect=falseupdate<\/p>\n
apt -o Acquire::http::AllowRedirect=false upgrade<\/p>\n
\u5982\u5728 security.debian.org \u4e0a\u4f7f\u7528\u8fd9\u79cd\u64cd\u4f5c\uff0c\u5c06\u5bfc\u81f4\u67d0\u4e9b\u4ee3\u7406\u5d29\u6e83\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u5c06\u5b89\u5168 APT \u6e90\u8f6c\u6362\u4e3a\u4f7f\u7528\uff1adebhttp:\/\/cdn-fastly.deb.debian.org\/debian-security stable\/updates main\u3002\u201d<\/p>\n
\u5982\u5fc5\u987b\u542f\u52a8\u91cd\u5b9a\u5411\u4e4b\u540e\u624d\u80fd\u66f4\u65b0 APT\uff0c\u7528\u6237\u4e5f\u53ef\u6839\u636e DSA-4371-1 \u5b89\u5168\u516c\u544a\u4e2d\u7684URL \u624b\u52a8\u4e0b\u8f7d\u66f4\u65b0\u7248\u672c\uff0c\u68c0\u67e5\u54c8\u5e0c\u786e\u4fdd\u5305\u672a\u906d\u7be1\u6539\uff0c\u5e76\u5728 dpkg-i \u7684\u5e2e\u52a9\u4e0b\u5b89\u88c5\u3002<\/p>\n
APT 1.2.29ubuntu0.1\u30011.7.0ubuntu0.1\u30011.0.1ubuntu2.19 \u548c 1.6.6ubuntu0.1 \u5305\u4ee5\u53ca Debian \u53d1\u884c\u7248\u672c APT 1.4.9 \u4e2d\u5df2\u4fee\u590d\u8be5 RCE \u6f0f\u6d1e\u3002<\/p>\n
2016\u5e7412\u6708\uff0c\u8c37\u6b4c Project Zero \u56e2\u961f\u7684 Jann Horn \u4e5f\u53d1\u73b0\u4e86\u7c7b\u4f3c\u95ee\u9898\uff0c\u540e\u7eed\u5df2\u5728 APT \u7248\u672c 1.0.9.8.4 \u4ee5\u53ca 1.4~beta2 \u4e2d\u4fee\u590d\u3002<\/p>\n
Horn \u5728\u62a5\u544a\u4e2d\u6307\u51fa\uff0c\u6613\u53d7\u653b\u51fb\u7684 APT \u7248\u672c\u201c\u5728\u9a8c\u8bc1 InRelease \u6587\u4ef6\u4e0a\u7684\u7b7e\u540d\u65f6\u672a\u6b63\u786e\u5904\u7406\u51fa\u9519\u4fe1\u606f\u3002\u80fd\u591f\u4f4d\u4e8e\u4f7f\u7528 InRelease \u6587\u4ef6\uff08\u6e05\u9664\u7b7e\u540d\u7684 Release \u6587\u4ef6\uff09\u7684\u653b\u51fb\u8005\u80fd\u591f\u5229\u7528\u8be5\u7f3a\u9677\u89c4\u907f InRelease \u6587\u4ef6\u7684\u7b7e\u540d\uff0c\u4ece\u800c\u5bfc\u81f4\u4efb\u610f\u4ee3\u7801\u6267\u884c\u95ee\u9898\u3002\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"
\u72ec\u7acb\u987e\u95ee\u517c\u5b89\u5168\u5408\u540c\u5de5 Max Justicz \u5728 Debian\u3001Ubuntu\u548c\u5176\u5b83\u76f8\u5173 Linux \u53d1\u884c\u7248\u672c\u4f7f […]<\/p>\n","protected":false},"author":1903,"featured_media":136480,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-136479","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1903"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=136479"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136479\/revisions"}],"predecessor-version":[{"id":136665,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136479\/revisions\/136665"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/136480"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=136479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=136479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=136479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}