CacheControl / CacheControl/json-rules-engine

OnSuccess/OnFailure properties as part of the rule - Security Issue

未关闭
#323 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
3.1k
派生
507
PR 合并指标
30 天内没有已合并 PR

描述

There are 2 properties like Onsuccess and Onfailure property which can be a javascript function delegate and it is part of the rule right?

onSuccess: function(event,almanac) { console.log('hello success') },
onFailure : function(event,almanac) { alert('hello failed') }

Is it safe to store this as part of the rule in the database. Because the rule comes from the server to the client this script can be tampered by the hacker and we would end up executing a malicious script. Is that right?

Or Is my understanding wrong? Please confirm

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先跟踪函数属性 onSuccess 和 onFailure 如何进入规则、从服务器传到客户端并被执行。检查规则存储和客户端执行的入口点,以确定安全边界;完成的标准是记录这种行为是否安全,以及适用哪些处理指导。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
security
Issue 类型
文档
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
15/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。