I need to delete this form but having gone through checkout.php, templates, stylesheets etc. I can't find it's location.
Can anyone advise from the screenshots?
Many thanks.
Attachments
Scam payment method.jpg (83.72 KiB) Viewed 823 times
paypal direct code -partial.jpg (311.64 KiB) Viewed 823 times
Does your hosting provide backups or do you do any backups? If yes, the easiest would be to restore to an earlier backup.Lilwood wrote: ↑Thu Nov 28, 2024 6:28 pmI was just checking out my payment pages on my website when this form appears as you get to Payment Method Stage 5. It wants the customer to enter payment details, then it'll go to the correct payment choices page. I've attached screenshots. I don't think the form submits anything as the rest of the malware has been deleted I believe.
I need to delete this form but having gone through checkout.php, templates, stylesheets etc. I can't find it's location.
Can anyone advise from the screenshots?
Many thanks.
I've encountered a couple of these before. From the looks of it, it's probably a malicious script injecting the payment fields in the page. The malicious code can be trickily placed in a file, therefore when opening your files in a code editor, check if there is a horizontal scroll bar - I've encountered malicious code being placed at the far end of the line so that when you first open up the file, you don't actually see the malicious code but if you scroll to the far-right, you will see it.
Other than that, malicious scripts can also be placed in random directories like in your image directory, stylesheet directories, javascript library directories, etc.
If you have access to the terminal, you can try running a search to search for keywords like "eval".
Otherwise, you'd probably be better off hiring a third-party to get rid of the malicious code/script(s). Even so, the attackers might have placed a backdoor somewhere so sometimes it can be really difficult to get rid of persistent malware. Good luck!
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
But if you have been hacked and you can't find it, might be better to hire someone.
Otherwise to try and help you find it, if on an flavor of unix for a webserver, you could try sshing over and use something like this:
find . -type f -name "*" -exec grep -H -i "paypal_direct_cc_number" {} \;
And see if it gives you a file that is in.
Mike
cue4cheap not cheap quality
Beside this, when you are using third party extensions, are all these from official sources (another door for hackers)!
And finally, use no obfuscated extensions - no one knows what they are really doing in the background.
It's important to mention here (guess some are reading this discussion), because OpenCart itself is one of the most secure systems.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
One of website had similar JS injected through custom theme field where you can enter the JS emebed code.
I started by scanning the website URL using free website malware and security checker https://sitecheck.sucuri.net and find out the js that had been injected and then I search that file in the database in the PHPmyadmin and find out where those files were and removed them.
Then, asked to change all username and password both for the opencart admin and hosting providers etc after that we have not seen those custom injection.
https://webocreation.com/25-opencart-se ... rce-users/
Opencart 4 book for developers
Opencart 4 User Manual Book
Blog free tips and tricks
Free extensions
OpenCart Tutorials
OpenCart Tutorials Youtube Video for developers
And, who added that code into the "custom theme field"?webocreation.com wrote: ↑Fri Nov 29, 2024 11:04 amOne of website had similar JS injected through custom theme field where you can enter the JS emebed code.
...
An admin user or visitor ? ?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
I will try all your suggestions, especially the online search suggested.
Fingers crossed.
Thank You
Probably in the database then?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
The word "paypal" must not be written as "paypal"!
It couild be also a javscript (or even a php-script) which "constructs" something in the background.
Means also: a simple scan for the word "paypal" (inside the files, scripts and database entries) maybe fine .. but at the end useless.
@Lilwood: you are playing with the security of shour shop visitors!
Better you hire a professional, or build the shop from the ground up new.
Beside this: you wrote that you have Wordpress also on this account.
Are you sure that WP is safe?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
To be honest, there are countless scans and attacks targeting WordPress-based websites. I've dealt with hacked WordPress sites before, and it's likely that the OP may have inadvertently left a backdoor, making it easier for hackers or attackers to exploit.
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
On our servers we see hundred of thousand attacks each day.
Wouldn't we have e.g. Fortigate as one measure (beside many others), our clients (and our servers) would have been troubles over troubles.
It's a shame since "developing" websites with such tools made by noobs and after then no updates a long time can be made.
It's so easy, you will find anything on the "web" .. and too many are using those scripts (e.g. to save a few Cents).
That's why we scan each day each instance of each customer to avoid such practice!
Never forget: BUIFOS are everwhere!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
If you are interested in site cleaning with a 1-year guarantee, you can read the description of this service here.
Upon completion, a detailed report with recommendations. + I will install a free module to track changes in files (FSMonitor).
Regards,
Talgat
My FREE extensions in marketplace. [ security | flexibility | speedup ]
100% agree.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: No registered users and 1 guest