summaryrefslogtreecommitdiff
path: root/src/node_revert.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-08-10 22:27:48 +0200
committerMichaƫl Zasso <targos@protonmail.com>2019-08-15 09:50:30 +0200
commit474577cf54c3a5f48dec8ab88bd2d03881e2ac02 (patch)
tree606efc56dea8b0d39474490580746fb98a07f35b /src/node_revert.h
parent599eee0990c98ef0e6cc32f1c9dbf2f35b63a923 (diff)
downloadandroid-node-v8-474577cf54c3a5f48dec8ab88bd2d03881e2ac02.tar.gz
android-node-v8-474577cf54c3a5f48dec8ab88bd2d03881e2ac02.tar.bz2
android-node-v8-474577cf54c3a5f48dec8ab88bd2d03881e2ac02.zip
http2: limit number of rejected stream openings
Limit the number of streams that are rejected upon creation. Since each such rejection is associated with an `NGHTTP2_ENHANCE_YOUR_CALM` error that should tell the peer to not open any more streams, continuing to open streams should be read as a sign of a misbehaving peer. The limit is currently set to 100 but could be changed or made configurable. This is intended to mitigate CVE-2019-9514. PR-URL: https://github.com/nodejs/node/pull/29122 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_revert.h')
-rw-r--r--src/node_revert.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/node_revert.h b/src/node_revert.h
index 38e2ba7105..b0853ee75f 100644
--- a/src/node_revert.h
+++ b/src/node_revert.h
@@ -15,8 +15,11 @@
**/
namespace node {
-#define SECURITY_REVERSIONS(XX)
+#define SECURITY_REVERSIONS(XX) \
+ XX(CVE_2019_9514, "CVE-2019-9514", "HTTP/2 Reset Flood") \
// XX(CVE_2016_PEND, "CVE-2016-PEND", "Vulnerability Title")
+ // TODO(addaleax): Remove all of the above before Node.js 13 as the comment
+ // at the start of the file indicates.
enum reversion {
#define V(code, ...) SECURITY_REVERT_##code,