Some thoughts on the security of Web services

Source: Internet
Author: User
First, the question:

When you develop a Web project, there are several issues with the security issue:

(1) Can the user forge a URL request to access it?

(2) The user does not log on the server, you can encapsulate the user name, password to access it?

(3) The parameters of the URL can be repeated attempts to brute force?

Second, the analysis of ideas:

First of all, what is security, the user's own stitching URL request must be wrong?

Our JS can write a request to the background, the user himself why not?

So, what is the security situation?

(1) The user has logged in the server session, and there is no time-out, can be normal request

(2) The requested user name password authentication is correct and has the requested permission

(3) The parameter format of stitching is correct, and the data matching is accepted in the background.

Third, the settlement:

(1) Use JWT, Shiro for security authentication, remove the user name password mismatch

(2) When a URL is accessed, the context of the specified access must be issued before the current request can be issued "the referrer property returns the URL of the document loaded into the current document"

(3) The URL request is encrypted, the user can not casually see the background request URL Information "feel encryption is not useful, to encrypt the text can also request, just can't judge the meaning of it"

Some thoughts on the security of Web services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.