CacheControl / CacheControl/json-rules-engine
OnSuccess/OnFailure properties as part of the rule - Security Issue
- 主要語言
- 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