Coder Social home page Coder Social logo

Comments (4)

yushijinhun avatar yushijinhun commented on August 20, 2024

除上面所述外,浏览器也是一个攻击面。如果 Yggdrasil 服务端返回的图像没有指明 content-type,那么攻击者可以进行 content-type sniffing 攻击。

解决方法:服务端指明材质的 content-type 为 image/png

我会在 yggdrasil-mock 的测试样例中增加对此漏洞的检测。

参考:https://security.stackexchange.com/questions/8587/how-can-i-be-protected-from-pictures-vulnerabilities

from authlib-injector.

yushijinhun avatar yushijinhun commented on August 20, 2024

已在 1a94cd7f9578e6510425a2c470b5c4d246017dd8 中增加对用户上传材质安全性的说明。

from authlib-injector.

yushijinhun avatar yushijinhun commented on August 20, 2024

关于防止 content-type sniffing 攻击的提醒已添加到文档。a84d9f25383ca3b7ae65929113ff560b0ae0e5e2

from authlib-injector.

yushijinhun avatar yushijinhun commented on August 20, 2024

已在 yushijinhun/yggdrasil-mock@3d35c78 中添加对 Content-Type 的检查。

from authlib-injector.

Related Issues (20)

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.