Analyze a js backdoor of WordPress

Source: Internet
Author: User

Analyze a js backdoor of WordPress

We recently found a backdoor for collecting Administrator Logon creden on many WordPress sites. The victim website is inserted with hidden code. When the Administrator logs on, the code is triggered, the Administrator's login creden are encrypted and sent to the attacker's server through GET requests. Currently, we only find the domain name "conyouse.com" collecting logon creden。 for the affected website.

Credential Leakage

Attackers insert a piece of javascript code on the WordPress login page. when a user attempts to log on to the victim website, the code will steal the user's login creden. The detailed process and analysis are as follows:

We can see that the page is inserted with a malicious js Code from "conyouse [.] com". The content of wp. js is as follows:

 

After simple obfuscation, the code is encoded into the array "_ 0xdd75 ". The following is the content of the array:

 

Replace the array in the following function with the corresponding string

The wordpress loginform contains username and password. preventDefault cancels the current logon operation and submits the logon credendefault to conyouse [.] com/scr. js through ajax, as shown in:

Request format:

1 www. conyouse [.] com/scr. js? Callback = jQuery & Data = & _ =

 

Base64 decoded plaintext is as follows:

 

All http requests:

 

Of course, users generally do not notice this. After logon, the user will jump to the background normally, but the creden have been stolen.

Conclusion

Wordpress, as the world's most popular content management and blog publishing system, has a large user base and we cannot know how many websites have suffered such attacks. Therefore, it is very important to keep the wordpress version and patch updated.

 

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.