S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Oct 22, 2024

CVE-2024-2961 Scanner

CVE-2024-2961 Scanner - Local File Inclusion (LFI) vulnerability in PHP

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
2.2k
Times Used
continuous scan runs
5.9k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-2961
7.3
CVSShigh
Requires local system access · no authentication required.

The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4 bytes when converting strings to the ISO-2022-CN-EXT character set, which may be used to crash an application or overwrite a neighbouring variable.

Attack Vector
Local
Privileges Req.
None
User Interaction
None
Affected
glibcby The GNU C Library
AFFECTED< 2.40SAFE ✓≥ 2.40
glibcby gnu
AFFECTED< 2.40SAFE ✓≥ 2.40
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPby Siemens
AFFECTED< *SAFE ✓≥ *
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPby Siemens
AFFECTED< *SAFE ✓≥ *
Updated Sep 10, 2026View on NVD →
Detail

PHP is a popular general-purpose scripting language especially suited to web development. PHP is fast, flexible and pragmatic, and powers everything from your blog to the most popular websites in the world. It is widely used by developers and companies for developing server-side web applications. The vulnerability checked by the scanner is found in PHP which is used in a plethora of web applications globally. This vulnerability can allow unauthorized actions if not properly checked. This emphasizes the need for careful management of user input and its processing in PHP.

Local File Inclusion (LFI) is a vulnerability that allows an attacker to include files on a server through the web browser. This vulnerability can lead to code execution on the server, depending on what files can be included. LFI can be used to include files such as /etc/passwd, which could give an attacker additional information about the server or its configuration. By exploiting the LFI vulnerability, attackers could escalate their privileges on the server. This vulnerability often arises due to insufficient input validation or sanitization mechanisms in the application.

The PHP LFI vulnerability exists when user input is not properly validated before being used in a file inclusion command. Attackers can exploit this vulnerability by supplying paths to sensitive files on the server, including PHP's own system files. This template checks for the presence of PHP's LFI via the payload specified, testing if system-critical files can be accessed. If successful, the vulnerability can grant attackers unauthorized access. The template's method employs HTTP communication to send crafted requests to a web server to determine the presence of the LFI vulnerability.

If exploited, the LFI vulnerability could result in significant consequences such as unauthorized access to sensitive information and potential remote code execution. This can allow attackers to alter server configurations, disclosure of user credentials, or even disrupt server functionality. It opens a dangerous attack vector whereby malicious software could be served as a response to requests. Attackers may leverage this vulnerability to launch further attacks against user accounts or the server itself. Ultimately, exploiting this vulnerability could lead to a complete compromise of the server.

REFERENCES

Solution Advice
  • Update PHP to the latest version to mitigate the vulnerability.
  • Implement strict input validation and sanitization to prevent potential LFI attacks.
  • Utilize security features such as disabling unnecessary PHP functions that can be exploited.
  • Regularly monitor and audit server logs to detect suspicious activities early.
  • Ensure proper permissions on server files to limit the inclusion of unauthorized files.

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.

CVE-2024-2961 Scanner - Local File Inclusion (LFI) vulnerability in PHP | S4E