We are using a form field for search on the website. (umbraco 7.9.2)
Testers came back with a problem, since its possible to execute javascript in the form field. It's AngularJS itself.
If one writes: {{constructor.constructor('alert(1)')()}} it's executed in the browser.
I have tried to make a kind of filter in angularjs, but I was wondering if anyone know if it would be possible to fix this backend/server site/razor/C#. ??
AngularJS Injection problem
Hi there.
We are using a form field for search on the website. (umbraco 7.9.2) Testers came back with a problem, since its possible to execute javascript in the form field. It's AngularJS itself.
If one writes: {{constructor.constructor('alert(1)')()}} it's executed in the browser.
I have tried to make a kind of filter in angularjs, but I was wondering if anyone know if it would be possible to fix this backend/server site/razor/C#. ??
Or even just where to begin..
/Cheers
Peter
I think I got it kind of stopped by putting this into the cshtml.
is working on a reply...