I create a web page where the user can interact and perform basic operations with the file system (create the / dir file, delete the / dir file, navigate the file system) on the remote computer. A web page is basic HTML (UTF-8 encoded) and Javascript. I need to make this web page proof of XSS.
Failed to avoid all non-alphanumeric characters in user input (for protection against XSS-based DSS) and file name information (for protection against stored XSS) using Javascript (this outputs six percent hexadecimal values)?
I use only alphanumeric input. Also, since I am using percentage encoded hexadecimal values, I assume that the UTF encoding vulnerability should not be present.
Can anyone think of any security loophole in this mechanism?
Ambrax
source
share