RubySec

Providing security resources for the Ruby community

CVE-2019-10842 (bootstrap-sass): Remote code execution in bootstrap-sass

ADVISORIES

GEM

bootstrap-sass

UNAFFECTED VERSIONS

  • <= 3.2.0.2

PATCHED VERSIONS

  • >= 3.2.0.4

DESCRIPTION

Arbitrary code execution (via backdoor code, when downloaded from rubygems.org) was discovered in bootstrap-sass 3.2.0.3.

Users are advised to upgrade immediately to 3.2.0.4

An unauthenticated attacker can craft the ___cfduid cookie value with base64 arbitrary code to be executed via eval(), which can be leveraged to execute arbitrary code on the target system. (Note that there are three underscore characters in the cookie name. This is unrelated to the __cfduid cookie that is legitimately used by Cloudflare.)