Skip to main content
Security Test : If web application has create user / register user functionalities:
- In this type of scenario we can try many tricks and can learn about application’s create user mechanism.
- First scenario
- Check what type of cookies application holds.
- If application has a cookie on the username then we can simply replace username with admin in the cookies and it will give us the admin session.
- Second scenario:
- Sometimes application has cookies encrypted with weak algorithm (MD5).
- Decrypt the cookies and if it holds username then encrypt admin with same algorithm (MD5) and paste in the cookies.
- It will give the admin session.
- Third scenario:
- While creating username in the application we can directly try to create admin user sometimes.
- Sometimes database does not compare the case sensitive values so if we create user “aDMin” instead of admin (which is already exist), it will give us “admin” login.
- Fourth scenario:
- We can also check for one more improper username validation.
- If admin user is already available in the application and application does not allow you to create admin user.
- Try to create user “admin ” (admin with whitespace), database again will provide admin to you.
Comments
Post a Comment