CVE-2025-0561

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in itsourcecode Farm Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the 'pigno' parameter in the /add-pig.php file. Successful exploitation could lead to data theft, modification, or deletion. All users running version 1.0 of this farm management software are affected.

💻 Affected Systems

Products:
  • itsourcecode Farm Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation and requires no special configuration to be exploitable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data exfiltration, data destruction, and potential remote code execution if database permissions allow.

🟠

Likely Case

Unauthorized access to sensitive farm management data, including animal records, financial information, and user credentials.

🟢

If Mitigated

Limited impact with proper input validation and database permission restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit details are publicly available on GitHub, making this easily weaponizable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://itsourcecode.com/

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries in the /add-pig.php file.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests to /add-pig.php

Input Validation Filter

all

Implement server-side input validation to sanitize the 'pigno' parameter before processing

🧯 If You Can't Patch

  • Restrict network access to the application using firewall rules to only trusted IP addresses
  • Implement database user permission restrictions to limit potential damage from SQL injection

🔍 How to Verify

Check if Vulnerable:

Test the /add-pig.php endpoint with SQL injection payloads in the 'pigno' parameter and observe database errors or unexpected behavior

Check Version:

Check the application's version information in the admin panel or configuration files

Verify Fix Applied:

Test with SQL injection payloads after implementing fixes to confirm they are properly blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in web server logs for /add-pig.php requests
  • Multiple failed login attempts following SQL injection patterns

Network Indicators:

  • HTTP requests to /add-pig.php containing SQL keywords like UNION, SELECT, INSERT in parameters

SIEM Query:

source="web_server" AND uri="/add-pig.php" AND (param="pigno" AND value MATCHES "(?i)(union|select|insert|delete|drop|--|;)")

🔗 References

📤 Share & Export