Small note: Web security testing-fixed Session vulnerability

Source: Internet
Author: User

Today, because of the project background, it is necessary to detect the Web interface for some security risks.
But has never mastered the knowledge of systematic permeability, had to do some exploration according to the personal understanding of the network protocol and the Web, finally found a session fixation attacks loophole.

Scene review:
Using the capture tool to monitor the login log out interface of the business, found that after the login Jsessionid is a, log out after the Jsessionid is still A;
However, since background development uses Apache's Shiro component, it will assign a new sessionid after each login;
So, based on the understanding of cookies, this place is very likely to be problematic.
The real content of the Cookie is always unchanged, which is equivalent to recording the user's account information completely.

Thus, when the user logs in, the intercepted header message is replayed by the capture tool-making any business request
There's going to be a fatal flaw.

The nature of the vulnerability is:

JSESSIONID 在登录前后不产生变化,使用了固定 cookie。

Principle Reference
Https://www.owasp.org/index.php/Session_fixation
Implementation can be referenced
50380997

Small note: Web security testing-fixed Session vulnerability

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.