Showing posts with label Security. Show all posts
Showing posts with label Security. Show all posts

Cookie Not Marked as Secure

when session cookie not marked as secure, and transmitted over HTTPS. This means the cookie could be stolen by attacker who can successfully intercept the traffic.
This cookie will be transmitted over a HTTP connection, therefore an attacker might intercept it and hijack the session.
If the attacker can carry out a attack, the he can force the user to make an HTTP request to your website in order to steal the cookie.

So you should mark all cookies used within the application as secure.

htaccess rule -

Header set Set-Cookie Secure

Similary, rule for web.config  - 

<rule name="Add Secure">
 <match serverVariable="RESPONSE_Set_Cookie" pattern=".*" />
 <conditions>
<add input="{R:0}" pattern="; Secure" negate="true" />
</conditions>
<action type="Rewrite" value="{R:0}; Secure" />
</rule>

Web Authentication


Website authentication and poor session management generates several security issues.using session is to maintain the user identity. If user credentials and session data are not protected every time, then attacker can break these security and will get the user details.

Here are the possible loop holes where an attacker can attack on website.

1. If the password is not strong as it should be. i.e. password must contain capital letter, small letter, numbers, special character combination.

2. The password should be stored in encrypted format.

3. The session id name should not be common type. It should be typical as to guess.

4. There is possibility URL might contain session id. So this type of practice should be avoided.

5. Session timeout to be implemented to prevent the session hijacking.

What are the Website Vulnerability

The website vulnerability is the inability, weakness, loophole or misconfiguration by which any attacker can access the website code, web server, data etc.By getting these access, attacker can inject spam data, content into the website.
There are lots of automated scripts, scanners, tools by which weak websites are exploited.

So, we should check the our website vulnerability timely, by having the same website can be protect from attackers.

Few Common Web Security Vulnerabilities are -

1. Authentication

2. SQL injection

3. Cross Site Scripting

4. Cross Site Request Forgery