
Apenas para fins educacionais.
# clone this repository
$ git clone https://github.com/masahiro331/CVE-2020-8277
# run bind
$ docker build -t bind-local ./bind
# Need TCP fallback
$ docker run --rm --name bind -it -p 53:53 -p 53:53/udp bind
# use "< v15.2.1" version
# If you use fixed version, build node.
$ git clone https://github.com/nodejs/node
$ git checkout df211208c0
$ ./configure
$ make -j8
$ make install
# Run PoC
$ node main.js
Consulte a Referência para obter os detalhes.
https://nodejs.org/en/blog/vulnerability/november-2020-security-releases/
O aviso afirma que resolver um nome de host que retorna um grande número de registros resultará em DoS.
A vulnerabilidade apresenta um erro de leitura fora dos limites da memória.
Linha afetada.
https://github.com/nodejs/node/blob/1fd2c8142b611baadc973947b83c0863cb003d9d/src/cares_wrap.cc#L764