Jump to content

New malware ps 1.7.8.2


ploaie

Recommended Posts

I noticed that ps 1.7.8.2 was infected with some kind of malware. There is h.php file in modules/ps_linklist wich is injected in payment page to steal data. Also, they are sending all customer and employee data to some ip 196.251.69.100

Any ideea about this problem?

See attach.

Screenshot 2025-05-21 194358.jpg

Link to comment
Share on other sites

11 hours ago, ploaie said:

I noticed that ps 1.7.8.2 was infected with some kind of malware. There is h.php file in modules/ps_linklist wich is injected in payment page to steal data. Also, they are sending all customer and employee data to some ip 196.251.69.100

Any ideea about this problem?

See attach.

Screenshot 2025-05-21 194358.jpg

We did not find h.php in PrestaShop 1.7.8.2 in modules/ps_linklist.

Can you please share the specific path of the file?

Link to comment
Share on other sites

1 hour ago, Webkul Solutions said:

We did not find h.php in PrestaShop 1.7.8.2 in modules/ps_linklist.

Can you please share the specific path of the file?

You are lucky then. I still have no clue how my prestashop was compromised. I suspect a module, but I found nothing in logs. Still searching. Attached are the injected files, just clasic malware to stay in control and steal credit card info.

malware.zip

Link to comment
Share on other sites

Posted (edited)
il y a une heure, ploaie a dit :

I suspect a module, but I found nothing in logs.

Very hard to find where the issue is. You can analyse web server logs for POST request (most of the time, the way attackers use a hole), but very long and difficult. That the reason we made a simple small script which alert you for any file creation or change. Here is the free script.

Edited by Prestashop Addict (see edit history)
Link to comment
Share on other sites

immediate action I would recommend

download h.php

edit production h.php, delete all code

set permissions for h.php readonly (444)

ok, so download your zip files.  

  • Search your installation for recently modified files and files containing suspicious code such as:
  • base64_decode
  • eval
  • gzinflate
  • file_put_contents with encoded payloads

you can also try pc antivirus sfw to check your base code

long term...or maybe short term and best solution

Update and Patch PrestaShop

  • Upgrade to the latest PrestaShop version. PrestaShop 1.7.8.2 has multiple known security holes; current versions have patched these.
  • Update all modules, especially third-party and custom modules.
  • Remove any unused or suspicious modules.

normally when I do this for customers, I do not use ps upgrade but use a migrator to move catalog  into a fresh ps version 8.1.2 for example.  then install new theme, new modules....this reduces totally bringing into new shop untrusted files.

in interim or after you sorted hack...this module will monitor your filesystem and alert you when a change has been detected...trusted change can be stored in vault, untrusted  change can be restored from vault....

https://prestaheroes.com/collections/all-modules/products/prestavault-malware-trojan-virus-protection?variant=40653346603215

 

good luck!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...