› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
hitrust
V2EX  ›  NGINX

Nginx 多个版本出现中危敏感信息泄露漏洞

  •  1
     
  •   hitrust · Jul 15, 2017 · 11744 views
    This topic created in 3403 days ago, the information mentioned may be changed or developed.

    2017 年 7 月 11 日,Nginx 官方发布最新的安全公告,在 Nginx 范围过滤器中发现了一个安全问题( CVE-2017-7529 ),通过精心构造的恶意请求可能会导致整数溢出并且不正确处理范围,从而导致敏感信息泄漏。

    当使用 Nginx 标准模块时,如果文件头从缓存返回响应,允许攻击者获取缓存文件头。在某些配置中,缓存文件头可能包含后端服务器 IP 地址或其他敏感信息。

    此外,如果使用第三方模块有潜在的可能导致拒绝服务。

    影响版本

    Nginx 0.5.6-1.13.2

    漏洞等级

    中危

    受影响网站:

    安全指数分析中国互联网共有 713651 个网站受到影响。

    修复建议

    升级 Nginx 到最新无漏洞版本,当前 1.13.3,1.12.1 版本中已修复了这个问题。

    http://mailman.nginx.org/pipermail/nginx-announce/2017/000200.html

    21 replies  •  2017-07-18 19:48:39 +08:00
    greenskinmonster
    greenskinmonster
    Jul 15, 2017
    1
    谢谢,updating ~~~
    zrj766
    zrj766
    Jul 15, 2017 via Android
    2
    前几天已更新
    kn007
    kn007
    Jul 15, 2017
    3
    在 11 号就更新过了。。
    zuolan
    zuolan
    Jul 15, 2017
    4
    敏感信息泄漏是指什么?
    hitrust
    hitrust
    OP
    Jul 15, 2017
    5
    @zrj766
    @kn007
    11 号发布的,因为看到 nginx 节点没有这条,所以就发了
    hitrust
    hitrust
    OP
    Jul 15, 2017
    6
    @zuolan
    allows an attacker to obtain a cache file header if a response was returned from cache. In some configurations a cache file header may contain IP address of the backend server or other sensitive information.
    thinker3
    thinker3
    Jul 15, 2017
    7
    怎么更新呢
    yvanhom
    yvanhom
    Jul 15, 2017
    8
    openresty 也得更进更新?
    DoraJDJ
    DoraJDJ
    Jul 15, 2017
    9
    惨了,已经安装原有 Nginx 的 Ubuntu,尝试从官方软件源更新 Nginx 失败。

    Unpacking nginx (1.12.1-1~xenial) over (1.10.3-0ubuntu0.16.04.2) ...
    dpkg: error processing archive /var/cache/apt/archives/nginx_1.12.1-1~xenial_amd64.deb (--unpack):
    trying to overwrite '/etc/nginx/uwsgi_params', which is also in package nginx-common 1.10.3-0ubuntu0.16.04.2
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/nginx_1.12.1-1~xenial_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    又不想丢失现有的配置文件,莫非真的要卸载重装?
    zjsxwc
    zjsxwc
    Jul 15, 2017
    10
    如何操作利用这个漏洞?
    privil
    privil
    Jul 15, 2017
    11
    @DoraJDJ ……你就不会先备份配置文件么
    elepover
    elepover
    Jul 15, 2017 via Android❤️2
    12
    @DoraJDJ 把 /etc/nginx 下的配置文件备份出来再重装啊...
    Arch 一路滚包的路过(
    DoraJDJ
    DoraJDJ
    Jul 15, 2017
    13
    @privil
    @elepover 好,现在是全新安装:
    Unpacking nginx (1.12.1-1~xenial) ...
    dpkg: error processing archive /var/cache/apt/archives/nginx_1.12.1-1~xenial_amd64.deb (--unpack):
    trying to overwrite '/etc/nginx/uwsgi_params', which is also in package nginx-common 1.10.3-0ubuntu0.16.04.2
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/nginx_1.12.1-1~xenial_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    一样报错,Ubuntu 你****
    MrMario
    MrMario
    Jul 15, 2017 via iPhone
    14
    慌不要慌,该漏洞需启用 cache alice,其次支持 Range 头,才会被利用
    mytsing520
    mytsing520
    PRO
    Jul 15, 2017
    15
    /t/374739
    之前已经发过了,不谢 @hitrust
    MrMario
    MrMario
    Jul 15, 2017❤️1
    16
    除了版本升级外,也有缓解措施
    1.在 http/server/location 配置
    max_ranges 1;
    该配置下 range 头会失效,无法正常获取需要的部分文件大小

    2.打补丁,自行编译
    补丁链接: http://nginx.org/download/patch.2017.ranges.txt

    3.不使用 Nginx 的 proxy_cache
    gongjianwei
    gongjianwei
    Jul 15, 2017 via Android
    17
    更新已滚
    bingkubei
    bingkubei
    Jul 15, 2017
    18
    感觉没什么用,要求苛刻,已现在的设置来讲很难暴露后端 IP
    Showfom
    Showfom
    PRO
    Jul 15, 2017 via iPhone
    19
    @DoraJDJ 用 nginx 的 ppa 呀
    hitrust
    hitrust
    OP
    Jul 16, 2017
    20
    @DoraJDJ
    try force overwrite
    notolddriver
    notolddriver
    Jul 18, 2017
    21
    如果没有开启 cache 是不是就不影响了呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1486 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 01:10 · PVG 09:10 · LAX 17:10 · JFK 20:10
    ♥ Do have faith in what you're doing.