The netizen "Xiao Hao" gave me a chat room ip address and asked me to check it out. I tried to intrude into its server. I probably didn't get into the system even after 10 minutes. So I was looking for any bugs in this chat room. The chat room can be seen that PHP + MySQL is used. Topics include user registration, password forgetting, data modification, user suicide, chat list, chat description, and refresh list. Then chat.
I registered a username and liked to open xxxxxx users according to my preferences. In this way, I registered a user with xxxxxx. Log in.
Where can I start? I 'd like to take a look at modifying the information first. There are always such vulnerabilities in the chat room. Click Modify information to go to the next screen and enter the user name and secret. After losing the information, go to the next step and modify the information. YES! There is a user nickname in the material modification, which is actually the user name. view the source file immediately and see the following HMTL statement:
========================================================== ========== Cut ==========
<Form name = "ezchat" action = "modifyed. php" method = "post" enctype = "multipart/form-data">
<Input type = "hidden" name = "active" value = "change">
<Input type = "hidden" name = "user_name" value = "xxxxxx">
<Input type = "hidden" name = "user_passwd_t" value = "xxxxx">
<Table cellspacing = 1 cellpadding = 2 width = "675" border = 0 align = center bgcolor = "# FFFFFF">
<Tr align = center bgcolor = "# FFD193">
<Td colspan = "4" height = "22"> User Information </td>
</Tr>
<Tr align = center bgcolor = "# FFEACE">
& Lt; td width = "20%" height = "22" & gt;
<Div align = "left"> nickname: <font color = "# FF0000"> <B> * </B> </font> </div>
</Td>
& Lt; td width = "30%" height = "22" & gt;
<Div align = "left">
<Input type = "text" name = "user_name_1" readonly class = "input" value = "xxxxxx">
</Div>
</Td>
========================================================== ===End ============================