/

CVE-2025-71434

Severity:

HIGH RISK

(8.2)

SQL Injection (CWE-89) in Weaver E-cology API Endpoint

CVE-2025-71434

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Unauthorized Database Access and Information Disclosure

Severity:

HIGH RISK

(8.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Weaver E-cology contains an unauthenticated SQL injection vulnerability in the document listing API when a specific request mode processes attacker-controlled date fields.

A remote attacker may inject database queries and retrieve database information through related API responses without authenticating.

Weaver E-cology contains an unauthenticated SQL injection vulnerability in the document listing API when a specific request mode processes attacker-controlled date fields.

A remote attacker may inject database queries and retrieve database information through related API responses without authenticating.

Affected context

The vulnerability affects Weaver E-cology 8.0, 9.0, and 10.0 deployments before the stated 10.76 release. It occurs in the /api/doc/out/more/list endpoint when the elementmore parameter is used with srcType=2 and values from doc_datefrom or doc_dateto reach database query construction without adequate parameterization.

The vulnerability affects Weaver E-cology 8.0, 9.0, and 10.0 deployments before the stated 10.76 release. It occurs in the /api/doc/out/more/list endpoint when the elementmore parameter is used with srcType=2 and values from doc_datefrom or doc_dateto reach database query construction without adequate parameterization.

Exploit preconditions

  • Attack surface: Network-accessible Weaver E-cology document-listing API
  • Required access: No authentication may be required
  • Trigger point: Processing of elementmore requests with srcType=2
  • Attacker-controlled input: doc_datefrom and doc_dateto fields
  • Observation channel: Related responses from /api/ec/dev/table/counts
  • Why exploitation is possible: Input may influence SQL query construction without sufficient separation between data and query syntax
  • Attack surface: Network-accessible Weaver E-cology document-listing API
  • Required access: No authentication may be required
  • Trigger point: Processing of elementmore requests with srcType=2
  • Attacker-controlled input: doc_datefrom and doc_dateto fields
  • Observation channel: Related responses from /api/ec/dev/table/counts
  • Why exploitation is possible: Input may influence SQL query construction without sufficient separation between data and query syntax

Why this happens

The underlying bug is SQL injection caused by incorporating externally supplied values into database queries without consistently using parameterized statements or equivalent safe query-building mechanisms.

This maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command, where input is interpreted as part of SQL syntax rather than treated strictly as data.

The underlying bug is SQL injection caused by incorporating externally supplied values into database queries without consistently using parameterized statements or equivalent safe query-building mechanisms.

This maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command, where input is interpreted as part of SQL syntax rather than treated strictly as data.

Potential impact

  • An unauthenticated attacker may read database information
  • Database metadata or application records could be disclosed
  • Query behavior could be altered, potentially affecting data integrity
  • Sensitive credentials or configuration values may be exposed if stored in accessible tables
  • The vulnerability could support further compromise of connected application services
  • An unauthenticated attacker may read database information
  • Database metadata or application records could be disclosed
  • Query behavior could be altered, potentially affecting data integrity
  • Sensitive credentials or configuration values may be exposed if stored in accessible tables
  • The vulnerability could support further compromise of connected application services

General mitigation guidance

Mitigation generally centers on removing SQL interpretation from request-controlled values and reducing the privileges available to application database accounts.

Defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlisted validation and strict type handling to date fields and request modes
  • Avoid dynamically concatenating request values into SQL fragments
  • Return only the minimum data required by each endpoint
  • Restrict database accounts to the operations and tables required by the application
  • Apply authentication and authorization controls to diagnostic or data-counting endpoints where appropriate
  • Avoid exposing detailed database errors or query results through API responses

Mitigation generally centers on removing SQL interpretation from request-controlled values and reducing the privileges available to application database accounts.

Defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlisted validation and strict type handling to date fields and request modes
  • Avoid dynamically concatenating request values into SQL fragments
  • Return only the minimum data required by each endpoint
  • Restrict database accounts to the operations and tables required by the application
  • Apply authentication and authorization controls to diagnostic or data-counting endpoints where appropriate
  • Avoid exposing detailed database errors or query results through API responses

How teams detect issues like this

Detection approaches can include:

  • Static analysis rules that identify string concatenation or interpolation in SQL construction
  • Code review checks for request parameters passed to database APIs without bind variables
  • Dynamic testing of date and filter parameters using benign metacharacter and type-boundary cases
  • Web application firewall or API gateway policies that monitor suspicious SQL syntax in relevant parameters
  • Database audit logging for unexpected queries originating from the application account
  • Alerting on unauthenticated access patterns involving /api/doc/out/more/list and /api/ec/dev/table/counts

Automated code review and security testing tools may help identify unsafe query-building patterns during development.

Detection approaches can include:

  • Static analysis rules that identify string concatenation or interpolation in SQL construction
  • Code review checks for request parameters passed to database APIs without bind variables
  • Dynamic testing of date and filter parameters using benign metacharacter and type-boundary cases
  • Web application firewall or API gateway policies that monitor suspicious SQL syntax in relevant parameters
  • Database audit logging for unexpected queries originating from the application account
  • Alerting on unauthenticated access patterns involving /api/doc/out/more/list and /api/ec/dev/table/counts

Automated code review and security testing tools may help identify unsafe query-building patterns during development.

Sources

SourceLink
1diot9.github.io1diot9.github.io/2026/05/13/%E6%B3%9B%E5%BE%AEe9%E5%88%86%E6%9E%90%E6%80%9D%E8%B7%AF/
blog.csdn.netblog.csdn.net/murphysec/article/details/149236904
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/weaver/weaver-ecology9-doc-list-sqli.yaml
vulncheck.comvulncheck.com/advisories/weaver-e-cology-10.76-unauthenticated-sql-injection-via-doc-out-more-list
weaver.com.cnweaver.com.cn/cs/security/edm20250704_opiurutjvmopimdwytdc.html
y4tacker.github.ioy4tacker.github.io/2025/07/09/year/2025/07/%E5%A6%82%E4%BD%95%E4%BB%8E%E7%81%B0%E7%9B%92%E8%A7%92%E5%BA%A6%E5%BF%AB%E9%80%9F%E5%A4%8D%E7%8E%B0Weaver-SQL%E6%B3%A8%E5%85%A5/

Frequently asked

questions

Yes. The affected API is network-accessible, and the described issue does not require authentication when the endpoint is exposed.

An attacker generally needs only network reachability to the vulnerable Weaver E-cology API. No valid account may be necessary.

Use parameterized database queries, validate date inputs according to a strict schema, and ensure the application account has only required database privileges.

Combine secure query APIs, code review rules, automated SQL injection testing, least-privilege database accounts, and monitoring of unusual API and database activity.

Yes. The affected API is network-accessible, and the described issue does not require authentication when the endpoint is exposed.

An attacker generally needs only network reachability to the vulnerable Weaver E-cology API. No valid account may be necessary.

Use parameterized database queries, validate date inputs according to a strict schema, and ensure the application account has only required database privileges.

Combine secure query APIs, code review rules, automated SQL injection testing, least-privilege database accounts, and monitoring of unusual API and database activity.

Find out what's already
exploitable in your codebase.