US Local Government Services Targeted by New Magecart Credit Card Skimming Attack


Malware

Eight cities across three states in the United States have fallen victim to a Magecart card skimming attack. In these attacks, their websites were compromised to host credit card skimmers which passed on the credit card information of residents to cybercriminals.

These sites all appear to have been built using Click2Gov, a web-based platform meant for use by local governments. It is used to provide services such as community engagement, issues reporting, and online payment for local goverments. Residents can use the platform to pay for city services, such as utilities. Breaches in these sites, however, are not new: In 2018 and 2019, the websites of several towns and cities using Click2Gov were compromised.

click2gov 1

Figure 1. Credit card skimming attack chain

Our research identified eight cities whose websites had been compromised with a JavaScript-based skimmer, as expected from a Magecart attack. The information exfiltrated included:

  • Credit card information (card number, expiration date, CVV)
  • Personal information (Name and contact address)

Our analysis of both the skimmer and the infrastructure used could not find any connections between this breach and the incidents in 2018 and 2019. Nevertheless, five of the eight cities were also affected in the previous breaches; we believe that these attacks started on April 10 of this year, and are still active.

Analysis of the card skimming attack

The attack occurs when victims make an online payment on the compromised Click2Gov website. JavaScript code was injected into the payment page which loads a credit card skimmer when victims browse the payment page.

Unlike other skimmers which grab data on various types of payment forms, the skimmer used here is rather simple and only works on a Click2Gov payment form. No obfuscation or anti-debugging techniques were used. The skimmer hooks the submit event of the payment form; when a victim clicks the button to send the payment information, the skimmer will grab the information from the selected columns inside the payment form and immediately send the collected information to remote server via a HTTP POST request.

click2gov 2Figure 2. Screenshot of credit card skimmer injected on Click2Gov payment page

Exfiltrated Data TypeTargeted Column IDExfiltration Request Schema
Credit card numberaccountNumberaccountNumber
Credit card CVV numbercvv2cvv
Credit card expiration yearexpirationDate.yearyear
Credit card expiration monthexpirationDate.monthmonth
Credit card expiration dateexpirationDate.datedate
First name of cardholderfirstNamefirstName
Middle name of cardholdermiddleInitialmiddleInitial
Last name of cardholderlastNamelastName
Contact address 1contact.address1address1
Contact address 2contact.address2address2
City of contact addresscontact.citycity
State of contact addresscontact.stateState
Zip code of contact addresscontact.zipZipCode

Table 1. Details of exfiltrated information

 We were able to identify two of the exfiltration servers used in the attack. Both hosted the actual JavaScript skimmer, as well as a .JSP file used to receive the exfiltrated data. One of the servers was used for three sites, while the other server used for the remaining five sites. The two skimmers used are identical, save for the change in the hostname of the exfiltration servers.

click2gov 3Figure 3. Screenshot of the credit card skimmer script

click2gov 4Figure 4. Example of exfiltration request

Background and attribution

Click2Gov has been hit by various breaches and attacks in the past. CentralSquare Technologies, its developer, released a 2018 statement concerning security issues on various locally hosted sites. Other researchers uncovered a breach of around 300,000 records from Click2Gov sites

Click2Gov at the end of that year. Another 2018 report showed a similar case where a site built using Click2Gov was targeted by an attacker to exfiltrate credit card information from its users. In 2019, another breach was discovered, where it became apparent that data from eight cities was being sold in the underground market.

It is not clear at this time if this attack which we identified is connected to the earlier breaches, since nothing about their technical details indicate a connection. The only connection is that five of the affected cities in the current incident were also affected in 2018; while two were included in the 2019 incident.

Conclusion

Credit card skimming attacks are still a major threat to online merchants. Victims not limited to only typical e-commerce sites. During 2019, we also saw that academic institutions and hotel chains were targeted by similar attacks. This time, the attacker targeted the websites of various local governments. This shows the importance of keeping payment portals secure to protect both an organization and its customers.

The following Trend Micro solutions protect users and businesses by blocking the scripts and preventing access to the malicious domains:

Indicators of Compromise (IoC)

SHA256 Hash/URLType
99840885c7f248779838b08559a9f3feb16e646fad7a3d36015e4b4ca4b4173b

 

Credit Card Skimmer (detected as TrojanSpy.JS.MAGECART.G)
a7db455dc25d107caf8f74f7d4c492541c5d37c38bf68604a6e85b06b61af26aCredit Card Skimmer (detected as TrojanSpy.JS.MAGECART.G)
https[:]//cdns-static[.]com/recurring.jsCredit Card Skimmer URL
https[:]//renew-analytics[.]com/recurring.jsCredit Card Skimmer URL
https[:]//cdns-static[.]com/validate/index.jspExfiltration URL
https[:]//renew-analytics[.]com/validate/index.jspExfiltration URL
cdns-static[.]comCredit Card Skimmer Domain
renew-analytics[.]comCredit Card Skimmer Domain

 



Source link

Recent articles

BlendNet free addon to simplify the cloud rendering

Rabit writes: The new BlendNet v0.2 was released and could be quite useful for everyone who wants to save money on the render farm...

What’s New on Netflix UK: July 8th, 2020

Stateless is now available to stream on Netflix UKA quiet Wednesday on Netflix UK with three 3 additions to the library. Of the...

Save time at the command line with HTTPie instead of curl

Ah, curl. While widely-loved and wildly powerful, its ergonomics leave something to be desired. Although it should not replace curl in your automation,...

Creditor payment scheme allows Blue Air to rebuild network | News

Romanian budget airline Blue Air has entered a financial restructuring process to protect the company from creditors and enable it to restart routes. Blue...

1990 FIFA World Cup™ – News – A magical night in Rome

​Matthaus and Voller were West Germany's first-choice penalty-takers Brehme found himself under a 700-something-kilogram pile-up! An emperor reigned in Rome for...

Disney World Draws Excitement and Incredulity as Reopening Nears

Walt Disney World in Orlando, Fla., will reopen on Saturday, and Disney has been posting marketing videos online to highlight the safety procedures...

Leave a reply

Please enter your comment!
Please enter your name here