Recently, when fixing a system vulnerability, using the new AppScan Scan IIS site (WebForm) has a serious vulnerability "decrypted login request".
The scan tool fixes the recommendation to not use controls with the "password" type or encrypt input parameters at the login interface. In accordance with the advice given, I made the following modifications: Modify the password control to a TextBox control. Use JS to replace the input content. and input the results into the hidden control when committed to hide the value of the control.
Modifying a post-deployment update site Rescan does not resolve the issue.
Two solutions were found by Baidu, Bing and other search tools:
1. Site login using SSL method
2. Encrypt the data of the login request
Due to site requirements, and can not use SSL, so only encrypted way to solve the problem.
I used the reversible encryption Method des encryption. After the front-end encryption, the data is submitted to the server for decryption. When modified in this way, the result of updating the site and then scanning it will still not solve the problem. So I took a serious look at the record of the AppScan submission data request. The data that I submitted the request was found and not encrypted as I asked. Instead, it configures the data that AppScan logs on. This indicates that the AppScan request login will only be based on your configuration information to the landing, do not control whether your landing did other processing. Is there a problem with this? You configure the AppScan when you need to configure the site login information, but he decrypted the data submitted by the original is you configured. This is the configuration data, why did you say you decrypted it? Here I have questioned the AppScan scanning (AppScan in deceptive, you have to use SSL access to the site landing!! )。
Because the site can not use the SSL method, so I find colleagues to discuss. Get another solution: Login submit data using the hidden control (including login user and password), before the submission of the original login user, password entry box to empty the contents. Background judgment if the contents of the input box indicates that "Login operation Error!" ”。 This configuration after re-scanning, the problem is resolved, but there is a problem appscan can no longer log on the system (scanning is prompted not to log in properly, please make sure the login configuration is correct).
DES encryption and decryption (JS and C # package) can refer to: http://www.cnblogs.com/luowanli/archive/2013/03/08/DES-Base64%E5%8A%A0%E5%AF%86%E8%A7%A3% E5%af%86.html
IBM Scan Tool AppScan Vulnerability "decrypted login request" fix solution