Rose debug info
---------------

how human behavior affects security

Later Ctrl + ↑

Programmer’s Digest #116

01/03/2025-01/08/2025 Fake Hardhat npm Packages, Critical Flaws in Mitel and Oracle Systems, Nuclei Flaw, High-Severity Vulnerabilities in Cellular and Secure Routers.

1. Fake Hardhat npm Packages Target Ethereum Developers

A malicious campaign is targeting Ethereum developers using fake Hardhat npm packages to steal private keys, as reported by the Socket.dev Research Team. This supply chain attack exploits developers’ trust by mimicking legitimate Hardhat plugins, claiming similar functionalities like gas optimization and smart contract testing.

Hosted on npm, the fake packages appear trustworthy but steal sensitive data, including private keys and mnemonics, from the Hardhat environment. The stolen data is encrypted and sent to attacker-controlled endpoints. Attackers could also deploy malicious contracts, potentially disrupting the Ethereum mainnet.
Socket.dev researchers identified 20 malicious packages from three authors, including one with over 1,000 downloads, highlighting the campaign’s reach.
To protect against such threats, developers should implement strict security monitoring and auditing measures. Carefully scrutinizing npm packages and maintaining vigilant development practices are crucial to safeguarding Ethereum projects.

2. CISA Flags Critical Flaws in Mitel and Oracle Systems Amid Active Exploitation

CISA added three vulnerabilities affecting Mitel MiCollab and Oracle WebLogic Server to its Known Exploited Vulnerabilities (KEV) catalog due to active exploitation evidence.

The flaws include:

  • CVE-2024-41713 (CVSS 9.1): A Mitel MiCollab path traversal flaw allowing unauthorized access.
  • CVE-2024-55550 (CVSS 4.4): A Mitel MiCollab path traversal issue enabling an admin to read local files.
  • CVE-2020-2883 (CVSS 9.8): An Oracle WebLogic vulnerability exploitable via IIOP or T3.

CVE-2024-41713 and CVE-2024-55550 can be chained to allow remote attackers to read arbitrary server files. WatchTowr Labs reported these Mitel flaws in efforts to replicate another critical vulnerability (CVE-2024-35286).

Exploitation details, attackers, and targets remain unclear. Federal agencies must patch these flaws by January 28, 2025, per Binding Operational Directive 22-01.

3. Nuclei Flaw Lets Malicious Templates Bypass Signature Verification

A now-fixed vulnerability in the open-source vulnerability scanner Nuclei (CVE-2024-43405)  could potentially allow attackers to bypass template signature verification and execute malicious code on local systems.

Nuclei uses over 10,000 YAML templates to scan websites for vulnerabilities. Each template includes a digest hash for signature verification, ensuring integrity. However, researchers at Wiz discovered flaws in how Nuclei’s Go regex-based verification and YAML parser handle line breaks and multiple # digest: lines.
Attackers could exploit these mismatches to bypass verification by injecting malicious # digest: payloads that evade detection but execute when processed. Wiz demonstrated this by crafting a template using mismatched newline interpretations. Users should update to the latest version and run Nuclei in isolated environments to mitigate risks from malicious templates.

4. Moxa Alerts Users to High-Severity Vulnerabilities in Cellular and Secure Routers

Taiwan-based Moxa has disclosed two critical vulnerabilities in its routers and network appliances that could enable privilege escalation and command execution:

  • CVE-2024-9138 (CVSS 8.6): Hard-coded credentials allowing authenticated users to gain root access, leading to system compromise and service disruption.
  • CVE-2024-9140 (CVSS 9.3): Exploitation of special characters to bypass input restrictions, enabling unauthorized command execution.

These flaws, reported by researcher Lars Haulin, affect several product lines, including EDR-810, EDR-8010, EDR-G902, EDR-G9004, and TN-4900 Series with specific firmware versions.

Moxa has issued patches for most products (firmware version 3.14 or later). For NAT-102 and TN-4900 Series, users are advised to contact Moxa Technical Support.
Mitigations include avoiding internet exposure, restricting SSH access to trusted IPs, and employing firewalls and detection mechanisms to prevent exploitation attempts.

3 mo   digest   programmers'

Programmer’s Digest #115

12/25/2024-01/03/2025 Severe Security Flaws Patched in Microsoft Dynamics 365, Malicious Obfuscated NPM Package, Apache MINA CVE-2024-52046.

1. Critical Deadline: Update Old .NET Domains Before January 7, 2025 to Avoid Service Disruption

Microsoft has announced a change to how .NET installers and archives are distributed, requiring developers to update their infrastructure. This change follows Akamai’s acquisition of assets from Edgio, which is shutting down its service on January 15, 2025. .NET binaries are currently hosted on Edgio’s CDN, but Microsoft is migrating to Azure Front Door CDNs. If no action is taken, Microsoft will automatically migrate customers by January 7, 2025. However, automatic migration won’t be possible for some endpoints, and users migrating to other CDNs must set a feature flag by the same date. Configuration changes to Azure CDN by Edgio profiles will freeze on January 3, 2025. Microsoft recommends migrating to a custom domain to avoid future risks. Users must also update their codebases to avoid relying on *.azureedge[.]net.

2. Severe Security Flaws Patched in Microsoft Dynamics 365 and Power Apps Web API

Three security vulnerabilities in Dynamics 365 and Power Apps Web API, discovered by Stratus Security, were patched in May 2024. Two flaws are in the OData Web API Filter, and one is in the FetchXML API. The first vulnerability allows unauthorized access to sensitive data, like password hashes, through a lack of access control. Attackers can exploit this by performing a sequential search to retrieve the complete password hash. The second flaw lets attackers use the orderby clause to extract data from columns like email addresses. The FetchXML vulnerability allows attackers to bypass access controls and retrieve restricted data using a crafted query. These flaws could enable attackers to steal or sell password hashes and emails. Stratus Security emphasizes the need for constant cybersecurity vigilance, especially for large data holders like Microsoft.

3. Malicious Obfuscated NPM Package Disguised as an Ethereum Tool Deploys Quasar RAT

Researchers found a malicious package on npm, named ethereumvulncontracthandler, disguised as an Ethereum vulnerability detection tool. Published on December 18, 2024, it has been downloaded 66 times. When installed, it retrieves a script from a remote server to deploy the Quasar RAT, a remote access trojan, on Windows systems. The trojan uses techniques like Base64 and XOR encoding to avoid detection and establishes persistence by modifying the Windows Registry. It then connects to a command-and-control server to exfiltrate data and receive instructions. The Quasar RAT has been used in cybercrime and espionage campaigns since 2014. This discovery highlights the growing issue of fake “stars” on GitHub, used to artificially inflate the popularity of malicious repositories. Researchers urge caution, noting that star counts alone are unreliable for assessing repository quality.

4. Palo Alto Networks Patches DoS Bug in PAN-OS Software

Palo Alto Networks released a patch on Dec. 26 for a high-severity DoS vulnerability (CVE-2024-3393) in the DNS security feature of its PAN-OS firewall software. The flaw allows unauthenticated attackers to send malicious packets that reboot the firewall, causing it to enter maintenance mode after repeated attempts. This issue affects PAN-OS versions 10.X and 11.X, as well as Prisma Access running PAN-OS 10.2.8 and later, or prior to 11.2.3. The company has issued patches for affected versions. Experts warn that the vulnerability could disrupt network operations, requiring manual intervention. Palo Alto Networks discovered this flaw in production, indicating potential active exploitation. Immediate patching is recommended to avoid service disruptions and ensure continued protection from DNS-based attacks.

5. Apache MINA CVE-2024-52046: CVSS 10.0 Flaw Enables RCE via Unsafe Serialization

The Apache Software Foundation (ASF) has released patches for a critical vulnerability in the MINA Java network framework, tracked as CVE-2024-52046, with a CVSS score of 10.0. The flaw affects versions 2.0.X, 2.1.X, and 2.2.X. It arises from the ObjectSerializationDecoder, which improperly handles Java’s native deserialization protocol, allowing remote code execution (RCE) if exploited with specially crafted data. The vulnerability is exploitable only when specific methods and classes are used. ASF advises upgrading and explicitly configuring the decoder to accept safe classes. This disclosure follows recent fixes for vulnerabilities in Tomcat, Traffic Control, HugeGraph-Server, and Struts, all with significant security implications. Users are urged to update to protect against potential threats.

3 mo   digest   programmers'

Programmer’s Digest #114

12/18/2024-12/25/2024 Critical Fortinet EMS Vulnerability, PyPI Packages Stealing Keystrokes, Rspack npm Packages Compromised, Thousands Download Malicious npm Libraries.

1. Sophos Patches Critical Firewall Vulnerabilities

Sophos has issued patches for a critical firewall vulnerability, CVE-2024-12727 (CVSS 9.8), which allows remote code execution (RCE) through an SQL injection in the email protection feature. This flaw impacts firewalls configured with Secure PDF eXchange (SPX) in High Availability (HA) mode and affects 0.05% of devices. The issue is resolved in Sophos Firewall version 21.0 MR1 (21.0.1). Additionally, CVE-2024-12728 (CVSS 9.8), involving weak SSH credentials in HA setups, affects 0.5% of devices. Users should restrict SSH access, use strong passphrases, and disable WAN access via SSH. Another vulnerability, CVE-2024-12729 (CVSS 8.8), allows authenticated attackers to execute remote code via the User Portal. To mitigate risks, users should disable WAN access to the User Portal and Webadmin. Sophos emphasizes there’s no evidence of exploitation yet, but urges immediate updates.

2. Hackers Exploiting Critical Fortinet EMS Vulnerability to Deploy Remote Access Tools

A critical vulnerability, CVE-2023-48788 (CVSS 9.3), in Fortinet FortiClient EMS has been exploited in a cyber campaign to install remote desktop tools like AnyDesk and ScreenConnect. The SQL injection flaw enables unauthorized code execution via crafted data packets. Kaspersky reported the October 2024 attack on a company’s internet-exposed Windows server with open FortiClient EMS ports. The attackers used the flaw for initial access, installing ScreenConnect and uploading additional tools for credential theft, network scanning, and persistence. Dropped tools included Mimikatz, webbrowserpassview.exe (password recovery), and netscan.exe (network scanning). Targets spanned multiple countries, including Brazil, India, and Spain. Attackers used various ScreenConnect subdomains for lateral movement. Kaspersky also observed CVE-2023-48788 being exploited to execute PowerShell scripts via webhook[.]site domains, highlighting evolving attacker tactics. A similar campaign was uncovered earlier, using the vulnerability to deliver ScreenConnect and Metasploit payloads. 

3. Researchers Uncover PyPI Packages Stealing Keystrokes and Hijacking Social Accounts

Cybersecurity researchers have identified two malicious Python packages, zebo and cometlogger, uploaded to the PyPI repository. These packages, downloaded 118 and 164 times respectively before removal, were designed to exfiltrate sensitive data from compromised systems. The packages collected system metadata, network and Wi-Fi details, running processes, and clipboard content. They also incorporated checks to evade virtual environments and terminated browser-related processes for unrestricted file access.

Fortinet noted that the script operates asynchronously to efficiently steal large volumes of data. These findings underscore the ongoing risks posed by malicious packages in open-source repositories.

4. Apache Tomcat Vulnerability CVE-2024-56337

The Apache Software Foundation (ASF) has patched CVE-2024-56337, a vulnerability in Apache Tomcat that could lead to remote code execution (RCE) under specific conditions. This TOCTOU race condition affects Tomcat versions 11.0.0-M1 to 11.0.1, 10.1.0-M1 to 10.1.33, and 9.0.0.M1 to 9.0.97, stemming from incomplete mitigation of CVE-2024-50379 (CVSS 9.8).

Exploitation is possible on case-insensitive file systems with the default servlet write enabled (readonly initialization set to false). Proper configuration based on Java versions is critical:

  • Java 8/11: Set sun.io.useCanonCaches to false.
  • Java 17: Ensure the property is false (default).
  • Java 21+: No action required (property removed).

Future Tomcat versions (11.0.3, 10.1.35, 9.0.99) enforce these configurations. Researchers Nacl, WHOAMI, Yemoli, and Ruozhi discovered these flaws, with KnownSec 404 Team independently reporting CVE-2024-56337 along with a proof-of-concept.

5. CISA Adds Critical Flaw in BeyondTrust Software to Exploited Vulnerabilities Catalog

CISA added CVE-2024-12356, a critical command injection vulnerability (CVSS 9.8), in BeyondTrust Privileged Remote Access (PRA) and Remote Support (RS) products, to its KEV. This flaw allows unauthenticated attackers to inject and execute operating system commands as a site user via malicious client requests. BeyondTrust confirmed all versions of PRA and RS prior to 22.1.x are affected and has released patches to address the issue.

Federal agencies must fix this vulnerability by December 27, 2024, as per Binding Operational Directive (BOD) 22-01, which mandates mitigation of listed vulnerabilities to protect government networks. Private organizations are also urged to review the KEV catalog and secure their systems to prevent exploitation.

6.  Rspack npm Packages Compromised with Crypto Mining Malware in Supply Chain Attack

Rspack developers disclosed a supply chain attack compromising their npm packages, @rspack/core and @rspack/cli, which were replaced with malicious versions containing cryptocurrency mining malware. The affected versions, 1.1.7, were removed, and the latest safe release is 1.1.8. The rogue packages exploited a postinstall script to download and execute an XMRig miner on Linux hosts. They also exfiltrated sensitive data, including cloud credentials and IP details, targeting machines in specific countries like China and Russia. The malware activated automatically upon installation. Rspack, a high-performance JavaScript bundler written in Rust and adopted by major companies, sees over 300,000 weekly downloads for @rspack/core. Maintainers revoked all npm and GitHub tokens, secured permissions, and audited code to prevent further breaches. Another npm package, vant (41,000 weekly downloads), was similarly compromised via a stolen npm token. This incident underscores the urgent need for stricter safeguards in software package management.

7. Thousands Download Malicious npm Libraries Impersonating Legitimate Tools

Threat actors have uploaded malicious typosquats of npm packages like typescript-eslint and @types/node, which have accumulated thousands of downloads. These fake packages, named @typescript_eslinter/eslint and types-node, deliver trojans and second-stage payloads. Sonatype’s analysis revealed that @typescript_eslinter/eslint includes a file, prettier.bat, which installs itself in Windows Startup. Despite its name, it’s a disguised trojan executable. The package impersonates popular tools to deceive users. Similarly, types-node fetches malicious scripts from a Pastebin URL to execute a deceptive npm.exe payload. ReversingLabs also flagged malicious Visual Studio Code (VSCode) extensions, such as Ethereum.SoliditySupport and ZoomWorkspace.Zoom, targeting the crypto community and broader users. These extensions contained obfuscated JavaScript to download unknown second-stage payloads. These findings highlight the critical need for stronger supply chain security and vigilance when using open-source tools to avoid introducing malicious code into projects.

4 mo   digest   programmers'
Earlier Ctrl + ↓