Coder Social home page Coder Social logo

zip条目覆盖 about rapidview HOT 1 OPEN

tencent avatar tencent commented on May 21, 2024
zip条目覆盖

from rapidview.

Comments (1)

Earlonus avatar Earlonus commented on May 21, 2024

您好:
在ZipFileUtils.java文件中的uozip2Dir()方法是为了将zip包解压到指定文件夹中,但由于解压过程中没有对条目名做校验,导致攻击者可能通过构造带有../的zip文件,解压时会覆盖指定目录之外的敏感文件
图片

修复方法:
图片

和刚刚那个问题的情况是一样的,我们这里解压的是实时下拉的RuntimeView数据包,数据包的MD5是通过业务加密通道下行的,下拉的包会经过MD5校验后保存在私有目录(开源版本为了学习方便配置了SD卡目录,今天内会提交一个patch改成私有目录)。因此解压这个过程是发生在zip包进行了MD5校验之后,因此希望能了解到整个模拟攻击过程详情,以便于加强安全措施,修复漏洞。

from rapidview.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.