CacheControl / CacheControl/json-rules-engine
OnSuccess/OnFailure properties as part of the rule - Security Issue
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.1k
- Forks
- 507
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.