I have an HTML page with this bit of code in it:
<div>
<div id="login-container"
class="login-container">
<login-page params="{"redacted":"redacted"}"></login-page>
</div>
So where it says redacted, there are a lot of parameters, and one of them is modifiable using a URL parameter, meaning I can change this parameter in the URL to abc and it will put abc into those JSON brackets. Using this, I found that it does not properly filter braces, meaning that in this parameter I can put braces that are parsed as a new JSON area within the braces already there.
It's hard to explain but for example, I can make the URL parameter "{test}", and those above parameters will look like the following (assuming one of the redacted areas was the URL parameter's output:
{"redacted":"{test}"}
It seems that being able to put my own JSON brackets in here should allow me to run my own JSON code, but is this possible, and is there any risk associated with the fact that they don't filter braces at all?
Thanks
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+=-[]'/.,<>?
, and show us the results.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@
is the result in the page when I put in exactly what you put above, but$%^
are also allowed, I just had to test them separately since it's treating the # and the & as part of the URL. Additionally, when I tested these characters:*()_+=-[]'/.,<>?
, it returned this in the page:*()_ =-[]'/.,<>?
so it converted some to unicode and left others.