S4E just found a high top 10 tcp port service scan
critical·Product Based Web Vulnerabilities·Updated Nov 20, 2024

CVE-2024-42640 Scanner

CVE-2024-42640 scanner - Remote Code Execution (RCE) vulnerability in Angular Base64 Upload

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
1
Times Used
by S4E users
1
Assets Scanned
domains & IPs
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-42640
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.

angular-base64-upload prior to v0.1.21 is vulnerable to unauthenticated remote code execution via demo/server.php. Exploiting this vulnerability allows an attacker to upload arbitrary content to the server, which can subsequently be accessed through demo/uploads. This leads to the execution of previously uploaded content and enables the attacker to achieve code execution on the server. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
n/aby n/a
n/a
angular-base64-uploadby angular-base64-upload-project
AFFECTED< 0.1.21SAFE ✓≥ 0.1.21
Updated Aug 19, 2026View on NVD →
Detail

Angular Base64 Upload is a library designed to simplify the process of uploading base64 encoded files in AngularJS applications. It is commonly used by developers integrating file upload functionalities into web applications. The library supports customizable and easy-to-implement file handling for modern web applications. While efficient for its purpose, it has been deprecated and no longer maintained. Developers in search of alternative upload solutions often rely on this library in legacy projects.

The CVE-2024-42640 vulnerability in Angular Base64 Upload allows an unauthenticated attacker to execute remote code on the server. The issue stems from a misconfigured demo server endpoint (server.php) that permits arbitrary content upload. Exploited successfully, it enables attackers to upload executable files and subsequently execute them. This critical flaw poses severe risks, especially in unsupported systems that still utilize the library.

The vulnerability lies in the demo/server.php endpoint, which accepts file uploads without authentication or validation. Attackers can send a base64-encoded payload alongside a crafted file name to this endpoint. Uploaded files are stored in the demo/uploads directory, where they remain executable by default. The lack of validation on file types and the absence of access restrictions further exacerbate the risk. Successful exploitation allows the attacker to execute PHP scripts, gaining complete control over the server.

Possible Effects:

  • Full server compromise due to unauthorized remote code execution.
  • Deployment of malware or backdoors on the server.
  • Extraction of sensitive data from the compromised server.
  • Possible pivoting to other parts of the network, escalating the attack scope.

With S4E, protect your digital assets from critical vulnerabilities like CVE-2024-42640. Gain peace of mind with proactive monitoring, automated scanning, and in-depth reports tailored to your organization's security needs. By becoming a member, you access a comprehensive cybersecurity toolkit that helps mitigate risks effectively. Stay ahead of potential threats and safeguard your systems with our easy-to-use platform.

References:

Solution Advice
  • Upgrade the library: Update to a supported alternative or secure version.
  • Disable the vulnerable endpoint: Remove or restrict access to demo/server.php.
  • Harden file upload handling: Enforce file type validation and sanitize file names.
  • Apply server restrictions: Disable script execution in upload directories.
  • Monitor logs: Regularly review access logs to detect abnormal activities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.