Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
306
WebSpellChecker security risk
posted

I've just discovered what I consider to be a security risk with the WebSpellChecker control.  Our web app uses the WebSpellChecker control with the U.K version of the dictionary.  We therefore have to set the dictionary in code as follows:

this.WebSpellChecker1.Dictionary = System.IO.Path.Combine( Request.PhysicalApplicationPath,"_dictionary\uk-english-v2-whole.dict");

When viewing the source of the rendered page I was shocked to find that the Javascript ig_CreateWebSpellChecker function generated by the control contains the full physical path to the .dict file e.g. E:\MyWebApp\WebApp1\_dictionary\uk-english-v2-whole.dict

This sucks.  Any potential hacker can simply navigate to one of the web pages that contains a spell checker control, examine the Javascript on the rendered page source, and hey presto they now know the physical path of the web app.

Why does the full physical path of the .dict file need to be included in a client side function?

M.Johnson