Rule Category

SERVER-WEBAPP -- Snort has detected traffic exploiting vulnerabilities in web based applications on servers.

Alert Message

SERVER-WEBAPP Gitea diffpatch remote code execution attempt

Rule Explanation

This rule looks for multiple HTTP requests to the Gitea diffpatch API endpoint that attempt to write an executable Git hook. Successful exploitation allows an attacker to write a malicious hook script that can be executed by the server, leading to remote code execution.

What To Look For

This rule fires on attempts to exploit a remote code execution vulnerability in Gitea web applications.

Known Usage

Attacks/Scans seen in the wild

False Positives

Known false positives, with the described conditions

This rule may alert on multiple quickly succeeding diffpatch requests targeting Git hooks.

Contributors

Cisco Talos Intelligence Group

Rule Groups

Rule Categories::Server::Web Applications

MITRE::ATT&CK Framework::Enterprise::Initial Access::Exploit Public-Facing Application

Vulnerability::Severity::High

Vulnerability::Severity::Critical

CVE

Additional Links

Rule Vulnerability

Remote File Inclusion

Remote File Inclusion (RFI) attacks occur when a webserver takes a file crafted by an attacker as input and runs or stores it in an unsafe manner. For instance, the webserver could accept an image file that is actually code, then call it to execute after uploading. RFI attacks happen on web applications that dynamically include external files or scripts. A successful RFI can lead to data leaks, remote code execution, or cross site scripting. Avoid dynamic inclusion of user input files, or whitelist files that may be included. Keep the PHP allow_url_include option set to off; this will not protect against Local File Inclusion attacks.

CVE Additional Information

This product uses data from the NVD API but is not endorsed or certified by the NVD.
CVE-2026-60004
Loading description