Prepare Knowledge
Burpsuite Tools – Security test usage
Security Design Essentials access to login page password entry box with HTTPS protocol associated password Control & keyboard-sensitive information encrypted transmission to the background to prevent interception of intercepted login page add one-time graphics verification code-only verify once, after verification from the session immediately delete the key Prohibit multiple logins in the same account-take the Shiro framework as an example, the realization way reference my another article "Shiro framework to achieve single sign-on" SessionID can not fix –shiro framework has sessionid fixed problems, there are security risks, the solution is as follows
Discard the old session, login to generate SessionID, solve the session fixed problem
session.stop ();
User.login (token);SMS to prevent frequent transmission (SMS anti-replay)
The malicious user obtains the short message interface, may through the replay data packet, realizes the text message unrestricted transmission, may cause the serious consequence.
Solution: Put the mobile phone number into the cache, set the expiration of one minute (the specific period of validity to business requirements) permissions design to the button level
Avoid not too coarse, as far as possible to refine the permissions to the button level, easy to control the rights of different roles in business attention to prevent ultra vires operation
Verify that the data ownership needs to be manipulated is consistent with the current logged-on user to avoid storage-type XSS
For example, upload Excel file, malicious user in Excel several fields add JS code:, can cause serious consequences.
WORKAROUND: Use regular expressions and other methods to strictly verify that the user input conforms to the parameter format & content requirements. Prevent CSRF
For example, to modify the password function: A malicious user can construct the corresponding HTML page for users to access, once the user access to the URL, they will use the cookie in their own browser to send the server to modify the password request.
For example:
After a user logged in to the account, visit our constructed website
The page source code is as follows:
After clicking Submit request, you can successfully modify your password: