PT-2019-19328 · Couchbase · Couchbase Sync Gateway
Denis Werner
·
Published
2019-06-26
·
Updated
2022-02-15
·
CVE-2019-9039
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Couchbase Sync Gateway version 2.1.2
Description
The issue allows an attacker with access to the Sync Gateway's public REST API to extract sensitive data or call arbitrary N1QL functions through the parameters
startkey and endkey on the " all docs" endpoint. By issuing nested queries with CPU-intensive operations, they may cause increased resource usage and denial of service conditions.Recommendations
For Couchbase Sync Gateway version 2.1.2, update to version 2.1.3 or 2.5.0 to resolve the issue. As a temporary workaround, consider blocking external access to the " all docs" REST endpoint to mitigate the risk of exploitation. Restrict access to the
startkey and endkey parameters in the " all docs" endpoint to minimize the risk of N1QL injection.Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Couchbase Sync Gateway