The password retrieval function of codoon allows you to modify the password of any user if you know the registered email address.
Step 1: Click forgot password. You will be asked to enter the registered email address. Enter and click "retrieve password" to receive an email.
You can see that the password retrieval url is mainly composed of a mailbox and a four-digit verification code, and is valid 24 hours a day. Next we will use burpsuite to access the packet capture intruder! Access the retrieval password url, capture the packet, send it to the intruder, mark the verification code to generate a 4-digit random dictionary file (points are randomly added to the test): Then start, determine whether the returned package is successful based on the size of the returned package! You can see that the correct package size is 10190. You can change the password if you know the registered email address!Solution:
1. Add a time limit to the password retrieval URL, which is too long for 24 hours. 2. Use a combination of numbers, letters, and other characters to verify the code. 3. Determine whether to reset the email address in the password url, if you make multiple reset_password requests in the same mailbox, You can restrict them!