CVE-2018-1098: Cross-site Request Forgery (CSRF) in go.etcd.io/etcd/v3/etcdserver
Summary
CVE-2018-1098: etcd Cross-site Request Forgery (CSRF). Affects go.etcd.io/etcd/v3 versions < 3.4.0. Fixed in 3.4.0. How to fix ↓
Also tracked for
- etcd · Debian:11
The same CVE-2018-1098 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The go.etcd.io/etcd/v3/etcdserver package is a component of etcd, a distributed key-value store that provides a reliable way to store data across a cluster of machines. It is written in Go and is commonly used for service discovery, coordination, and configuration management. The etcdserver package is responsible for handling server-side operations and interactions with the etcd server. However, versions 3.3.1 and earlier of etcdserver are vulnerable to a cross-site request forgery (CSRF) attack.
Vulnerability Detail
The vulnerability in etcdserver versions 3.3.1 and earlier allows an attacker to perform a CSRF attack by setting up a malicious website that sends a POST request to the etcd server and modifies a key. While adding a key is typically done using the safer PUT method, the POST method allows an attacker to create keys in a specific order. This vulnerability can lead to unauthorized modification of keys and potential data manipulation within the etcd server. The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.
How To Fix
Minimum fixed version
3.4.0
This is the first release that contains the fix.
go get go.etcd.io/etcd/v3@v3.4.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, it is crucial to ensure that the etcd server is not accessible to untrusted or unauthorized entities. Implementing proper access controls, such as firewalls and network segmentation, can help mitigate the risk of CSRF attacks.
Conclusion
In conclusion, the go.etcd.io/etcd/v3/etcdserver package in etcd versions 3.3.1 and earlier is vulnerable to a cross-site request forgery (CSRF) attack. This vulnerability can lead to unauthorized modifications of keys within the etcd server. To mitigate this issue, it is recommended to upgrade to etcdserver version 3.4.0 or later. Implementing proper access controls and regularly monitoring for vulnerabilities using tools like Vulert can help ensure the security of the etcd server.
See every vulnerability recorded for go.etcd.io/etcd/v3 →
FAQ
Etcd is a distributed key-value store used for service discovery, coordination, and configuration management.
The vulnerability allows an attacker to perform unauthorized modifications to keys within the etcd server, potentially leading to data manipulation and compromise.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.
Yes, upgrading to etcdserver version 3.4.0 or later will fix this vulnerability. It is recommended to update the etcdserver package to the latest version.
The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.
References
Related vulnerabilities
Recent vulnerabilities recorded for go.etcd.io/etcd/v3.