CuteEditor Security
CuteEditor can display a stack trace in error information that might pose a security risk. To stop this possible security leak, you must edit the web.config files as explained in the following sections.
Editing the eWeb Web.Config File
To generate the error, use the following steps:
- Open eWeb
- Copy and paste the following example into the browser URL address field:
- Edit mywebsite to the address of your organization's specific eWeb site.
- Press Enter or use the browser go feature to navigate to the link you pasted in the URL address field.
http://mywebsite/eweb/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=<%25%20whs=21705%20%25>whscheck<%25=%20whs.to_s%20%25>&=SyntaxHighlighter.css
The eWeb site returns a detailed error with the stack trace.
To replace this error with a less verbose, security-neutral error message, use the following steps:
- Go to eWeb\CuteSoft_Client\web.config.
- Open the web.config file in a text editor.
- Search for the following tag: <system.web>. You'll find the following section:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
<compilation debug="true"/>
<customErrors mode="Off"/>
</system.web>
</configuration>
- Change the customErrors mode value to On.
- Save web.config. The application pool recycles.
Editing the iWeb Web.Config File
To enable the custom error mode in iWeb, edit the web.config file as follows:
- Go to .
- Open the web.config file in a text editor.
- Search for the <system.web> tag. You'll find the following section:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
<compilation debug="true"/>
<customErrors mode="Off"/>
</system.web>
</configuration>
- Change the customErrors mode value to On.
- Save web.config. The application pool recycles.