K-111219: Reflected XSS

This commit is contained in:
Aleksandr Gichkalov 2021-11-11 19:07:45 +04:00
parent 6a7f743fb7
commit 0ed674c4be
3 changed files with 26 additions and 1 deletions

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -244,12 +244,31 @@ THE SOFTWARE.
// Ensure there is a default path
'$props.data.path': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
if (!data.computed.trim()) {
data.computed = `/var/www/${this.$props.data.domain.computed}`;
}
},
deep: true,
},
'$props.data.documentRoot': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
'$props.data.listenIpv4': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
'$props.data.listenIpv6': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
},
};
</script>

View File

@ -372,6 +372,12 @@ THE SOFTWARE.
},
deep: true,
},
'$props.data.letsEncryptCertRoot': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
},
};
</script>