PHPCMS V9 pass registration defects and repair solutions

Source: Internet
Author: User

Release date: 2011-03.24
Author: tenzy

Affected Version: PHPCMS.
Http://www.phpcms.cn

Vulnerability Type: design defect

Vulnerability Description: You can directly register a VIP member through a pass.
 

Detailed description:
 

If ($ action = member_add) {$ userinfo [phpssouid] = isset ($ arr [uid])? $ Arr [uid]: exit (0); $ userinfo [encrypt] = isset ($ arr [random])? $ Arr [random]: exit (0); $ userinfo [username] = isset ($ arr [username])? $ Arr [username]: exit (0); $ userinfo [password] = isset ($ arr [password])? $ Arr [password]: exit (0); $ userinfo [email] = isset ($ arr [email])? $ Arr [email]:; $ userinfo [regip] = isset ($ arr [regip])? $ Arr [regip]:; $ userinfo [regdate] = $ userinfo [lastdate] = SYS_TIME; $ userinfo [modelid] = 10; $ userinfo [groupid] = 6; $ userid = $ db-> insert ($ userinfo, 1); if ($ userid) {exit (1) ;}else {exit (0 );}} the $ userinfo array is not initialized. You can directly post a form such as userinfo [vip] to overwrite the array.


Vulnerability proof: The $ userinfo array is not initialized. You can directly overwrite the Array Using a form such as POST userinfo [vip] = 1.


Solution: Initialize the $ userinfo array.

Related Article

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.