Magento Credit Card Stealer Disguised in an <img> Tag
Essential information
- Published
- 13/02/2025 01:13
- Modified
- 13/02/2025 10:12
- Tags
- 2025-02-13 <img> tag base64 encoding credit card theft ecommerce javascript injection magecart magento web security
- Related entities
- 10 techniques (mitre), 1 malware, 1 others
Description
A sophisticated credit card stealing malware, disguised within an <img> tag, was discovered on a Magento-based eCommerce website. The malware uses Base64 encoding to hide its malicious JavaScript code, making it difficult to detect. It activates on the checkout page, waiting for user interaction before collecting credit card information. The script creates a hidden form to capture card details and sends the data to a remote server. This technique allows the malware to avoid detection by security scanners and remain unnoticed by users. The article emphasizes the importance of keeping eCommerce platforms updated, using web application firewalls, enforcing strong passwords, and implementing additional security measures to protect against such attacks.