推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
gamexg
V2EX  ›  Python

python json 解析非信任数据有安全隐患吗? 需要解析 7 牛重定向回调的 json 来获得文件信息,客户可伪造,会不会造成命令执行?

  •  
  •   gamexg · Jan 8, 2015 · 2953 views
    This topic created in 4279 days ago, the information mentioned may be changed or developed.
    我印象中 json 解析有安全隐患,但是现在却没搜索到相关信息,python 文档上面也没有相关内容。
    3 replies  •  2015-01-19 13:34:33 +08:00
    est
        1
    est  
       Jan 8, 2015   ❤️ 1
    python的json解析库没有啥大bug。ruby的yaml 有。

    但是文件信息可能被伪造 ../../../etc/passwd 这种。
    virusdefender
        2
    virusdefender  
       Jan 8, 2015   ❤️ 1
    json没问题吧 你可能说的是pickle http://drops.wooyun.org/papers/66
    gamexg
        3
    gamexg  
    OP
       Jan 19, 2015
    感谢,是我记错了.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2687 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:32 · PVG 16:32 · LAX 01:32 · JFK 04:32
    ♥ Do have faith in what you're doing.