New research from PenTestPartners shows Scottish brewery BrewDog exposed data of over 200,000 shareholders a year by hardcoding authentication tokens associated with their API endpoints designed for BrewDog’s mobile application. Here’s the scope of this #EpicFail:
- BrewDog exposed the details of over 200,000 ‘Equity for Punks’ shareholders for over 18 months plus many more customers
- Every mobile app user was given the same hard coded API Bearer Token, rendering request authorisation useless
- It was therefore trivial for any user to access any other user’s PII, shareholding, bar discount, and more
- Disclosure was rather fraught. Instead of being ‘cool’ as we had hoped, given their reputation as being a bit counter-culture, BrewDog instead declined to inform their shareholders and asked not to be named. It took 4 failed fixes to properly resolve the problem.
- It’s public knowledge that BrewDog are considering an IPO. We are concerned for future investors if BrewDog’s wider approach to security and disclosure is this weak.
- But, best of all, shareholders get a free beer on the 3 days before or after their birthday under the terms of the Equity for Punks scheme. One would simply access an account with the required date of birth, generate the QR code and the beers are on BrewDog!
And how BrewDog handed this is even more of an #EpicFail:
It took several days for BrewDog to respond properly, which was a fail in itself. We had to escalate via LinkedIn, as their social media team didn’t know what to do with the report.
Top tip: A company who puts out an app should have a clear means to allow vulnerability reports to reach the right people. These clowns didn’t. Another #EpicFail. And while they did get the issue fixed…. eventually, there was this:
The vulnerability is fixed. As far as I know, BrewDog have not alerted their customers and shareholders that their personal details were left unprotected on the internet.
And what makes this really bad is that it isn’t clear if this vulnerability was exploited. This is wrong on so many levels and reflects poorly on BrewDog.
Yariv Shivek, VP of Product, Neosec had this to say about said #EpicFail:
“Hardcoding API credentials (API keys, tokens, etc.) into mobile apps is sadly a common mistake. Mobile applications — as well as single-page web applications (aka SPAs) — run in untrusted client environments, environments under the (ab)user’s control. Looking for API credentials in applications is easy, and when those credentials allow bypassing authentication or authorization, this can lead to data leaks and even complete account takeovers.”
“Secure coding and client-based security controls can and should be employed to prevent these things from happening. But as with all things, prioritization is key, and prioritization relies on knowing which API endpoints pass sensitive data, the types of sensitive data being passed, as well as what each service and endpoint’s risk posture is. This knowledge is actually at most organizations’ fingertips — in the form of unmined logs.”
Hopefully BrewDog suffers some repetitional damage from this #EpicFail as this coding decision and the response to it is completely unacceptable.
Ransomware Attack Written In Python Discovered
Posted in Commentary with tags Hacked on October 8, 2021 by itnerdSo this is a new one and a sure sign that the bad guys are evolving their attacks at a rapid place.
Earlier this week, threat researchers at Sophos discovered a new strain of ransomware, written in Python and designed to deploy ransomware unusually fast. The strain was used to compromise and encrypt virtual machines hosted on an ESXi hypervisor.
In what was one of the quickest attacks Sophos has investigated, from the time of the initial compromise until the deployment of the ransomware script, the attackers only spent just over three hours on the target’s network before encrypting the virtual disks in a VMware ESXi server.
That’s pretty scary. I’d read the full report as it’s pretty eye opening. But I did get this comment from Mieng Lim, VP of product management at Digital Defense by HelpSystems:
“Ransomware threats are constantly evolving. From the commoditization of ransomware through the recent availability of as-a-service tools, to increasingly sophisticated attack strategies, it is a threat landscape that demands constant monitoring and education from organizations and governments alike. This is perfectly illustrated by the new strain of ransomware discovered by Sophos this week.
Typically, hackers enter their victim’s systems and linger undetected, harvesting data and identifying targets before they deploy a targeted ransomware attack. However, this new python-based ransomware enters systems and initiates an attack within a few hours, making fast-acting threat detection and response absolutely essential for businesses.
The first step in building an effective ransomware mitigation strategy is always setting realistic expectations. Ransomware breaches are no longer fully preventable, so businesses must focus on layering defensive barriers between an attacker and their most sensitive data. Running regular penetration testing and vulnerability scanning can help an organization identify and repair possible attack vectors, closing backdoors before an attacker can enter them and minimizing an attacker’s ability to escalate their privileges once inside the system.
However, for any organization looking to improve its cyber threat response time, threat detection tools are a must. Network Traffic Analysis (NTA) works to monitor a network for any suspicious activity, detecting ransomware breaches and infection as quickly as possible. On top of these, active threat scans can give the organization peace of mind. If a breach is spotted, it is important to reassess the state of the IT environment to ensure that there isn’t a repeat attack. Unfortunately, we live in an era where preventing 100% of cyber risks is no longer possible, but constant vigilance, ongoing-cyber threat education, and a well-planned threat detection and response strategy will go a long way towards keeping your organization’s most sensitive data safe.”
The people responsible for securing critical IT infrastructure are really working hard to earn their money as this ransomware attack via Python shows that the attack surface that they have to secure is constantly growing. And will continue to grow.
Leave a comment »