Ruby and Rails to Get New Updates

Six vulnerabilities in the RubyGems package management system are now fixed and three in Rails framework
14 March 2019   757

There are corrective versions of the Ruby 2.6.2 and 2.5.4 programming language, which eliminate six vulnerabilities in the RubyGems package management system:

  • CVE-2019-8324: the ability to execute code when installing an untested package (an attacker can place the code on the gemspec and this code will be executed via a call to eval to ensure_loadable_spec at the verification stage before installation);
  • CVE-2019-8320: the ability to delete directories through manipulations with symbolic links when unpacking tar files;
  • CVE-2019-8321: the ability to substitute escape sequences through the handler Gem :: UserInteraction # verbose;
  • CVE-2019-8322: the ability to substitute escape sequences through the command "gem owner";
  • CVE-2019-8323: Ability to substitute escape sequences in the API handler (Gem :: GemcutterUtilities # with_response);
  • CVE-2019-8325: The ability to substitute escape sequences through error handlers (Gem :: CommandManager # run calls alert_error without escaping characters).

In addition, an update was provided to the Rails 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2 framework. and 6.0.0.beta3 with the elimination of three vulnerabilities:

  • CVE-2019-5420 - potentially allows you to remotely execute your code on the server, when Rails is running in Development Mode. If there is information about the attacked application, you can predict the automatically generated mode token for developers, knowledge of which allows you to achieve the execution of your code;
  • CVE-2019-5418 is a vulnerability in the Action View that allows you to get the contents of arbitrary files from the server's file system by sending a specially crafted HTTP Accept header if the code in the "render file:" handler is present.
  • CVE-2019-5419 - DoS-vulnerability in Action View (MODULE / COMPONENT), allowing to achieve 100% load on the CPU through manipulations with the contents of the HTTP-header Accept;

Ruby\RoR News Digest 30.06 - 5.07

Let's check what happened in Ruby programming this week and learn about latest updates and news
05 July 2019   947

Greetings! I hope your week went great! Here's new Ruby/RoR news digest.

Articles and Guides

  • 6 changes you might have missed coming in Ruby 2.7

Learn about some tiny, but interest thing you really may not noted in this Ruby version.

  • Sorbetting a gem, or the story of the first adoption

As you may remember, new type checker for Ruby called Sorbet was released last week;  in this article, programmer shares his thoughts and impressions on the topic.

  • I just made Ruby++

The ++ implementing was more difficult. than expected.

  • Brewing our own Template Lexer in Ruby

A practical walkthrough of building a basic lexer (the parser part will come later) as a way to implement your own templating language

  • Rails 6 adds support for Multi Environment credentials

In Rails 6, different environments credintials can now be stored in separate files personal key for each.

  • In-App Payments Backend Using Ruby

Updates

  • HTTP Debugging for Ruby

Free version available too.