idealyard icon indicating copy to clipboard operation
idealyard copied to clipboard

TODO:一些需要继续推进的进度

Open imoyao opened this issue 5 years ago • 9 comments

看到一个别人写的博客,前端不错,有机会了解一下。或者持续改进? https://frostming.com/2019/08-11/flask-blog

imoyao avatar Jan 08 '20 01:01 imoyao

参考项目:Fblog 源码

演示地址

备用demo


CB-ysx源码 演示

imoyao avatar Mar 04 '20 13:03 imoyao

编写系列文章介绍教程 https://stackabuse.com/single-page-apps-with-vue-js-and-flask-setting-up-vue-js/

imoyao avatar Mar 04 '20 15:03 imoyao

参考项目:Fblog 源码

演示地址

备用demo

CB-ysx源码 演示

上面的主要看i18n

imoyao avatar Mar 05 '20 14:03 imoyao

一个tornado写的渲染静态博客的项目: 谈谈这个博客程序 MiniAkio - I'm SErHo

imoyao avatar Aug 06 '20 01:08 imoyao

文档教程怎么写?Django搭建个人博客:前言 - 杜赛的博客

imoyao avatar Sep 17 '20 17:09 imoyao

发现一个越权漏洞,解决方案:authorId需根据article_id查询出来,因为前端的数据除了token,都不可信。

json_data = request.json
current_user_id = json_data.get('authorId')
if g.user.id != current_user_id:  # or  g.current_user.can(Permission.ADMINISTER):
    return forbidden('Insufficient permissions')

AlbertChanX avatar Apr 21 '21 12:04 AlbertChanX

发现一个越权漏洞,解决方案:authorId需根据article_id查询出来,因为前端的数据除了token,都不可信。

json_data = request.json
current_user_id = json_data.get('authorId')
if g.user.id != current_user_id:  # or  g.current_user.can(Permission.ADMINISTER):
    return forbidden('Insufficient permissions')

好的,暂时没有时间修复这个问题。 当时对token这方面的理解和认识还不够深,鉴权这一块有好几处应该都是有漏洞的。其实现在前端请求后端API都不是通过token来认证的。如果你有兴趣可以继续开发,欢迎PR.

imoyao avatar Apr 22 '21 01:04 imoyao