This Week in Cybersecurity: June 26 - July 02, 2022

Major News Stories

  • OpenSSL is in the news again, this time with a memory corruption vulnerability, “[potentially] worse than Heartbleed in an isolated severity assessment.” This quotes is from a blog post by Guido Vranken, which has an excellent overview of the issue. Thankfully, it only affects systems with AVX512 support and none of the popular OpenSSL alternatives like LibreSSL, BoringSSL, etc. are affected. The issue is expected to be fixed in OpenSSL version 3.0.5.
  • As a reminder, CWE stands for “Common Weakness Enumeration” and, “Is a community-developed list of common software and hardware weakness types that have security ramifications.” A CWE differs from CVE in that CWE can be thought of as a class of vulnerability, whereas a CVE is a specific vulnerability in software that is identified by a unique ID. This week, the CWE team released the, “Top 25 Most Dangerous Software Weaknesses list (CWE™ Top 25). This list demonstrates the currently most common and impactful software weaknesses. Often easy to find and exploit, these can lead to exploitable vulnerabilities that allow adversaries to completely take over a system, steal data, or prevent applications from working.” The list is available here and contains some notable changes from 2021, including SQL injection moving up 3 places in the list.
  • A few interesting deep-dive reads from the week:

Other Software with Critical Patches Available

Learning – CVE-2007-3227

On June 14, 2007, the San Antonio Spurs edged the Cleveland Cavaliers 83-82 for a 4-0 series sweep to win the NBA Finals. While probably not as widely known, this day also saw the disclosure of the third ever Ruby on Rails CVE: CVE-2007-3227.

The NIST disclosure for this CVE reads, “Cross-site scripting (XSS) vulnerability in the to_json (ActiveRecord::Base#to_json) function in Ruby on Rails before edge 9606 allows remote attackers to inject arbitrary web script via the input values.” [1] As a quick refresher, “XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.” [2]

The GitHub diff for the activesupport/lib/active_support/json/encoders/core.rb file in Rails versions 1.2.4 (this version and earlier are vulnerable) and 1.2.5 (fixed version) shows where the attack originates:

CVE-2007-3227

As can be seen in the above picture, prior to Rails 1.2.5, the < and > characters were not being escaped. Given that these characters are used in JavaScript <script></script> tags, it’s easy to see how failing to properly sanitize them could lead to major issues.

As a bonus, here’s a short Google Groups post on the exploit that’s a fun throwback: https://groups.google.com/g/rubyonrails-security/c/A0x3ZspNVQU

[1] https://nvd.nist.gov/vuln/detail/CVE-2007-3227
[2] https://owasp.org/www-community/attacks/xss/

Sources & Resources

In addition to inline citations, the following were used or referenced when preparing this debrief.


Thanks for reading, stay safe out there, and have a great weekend! 👩🏿‍💻 🌐 👨🏽‍💻

Written on July 1, 2022 by Alex Smith

At Maxwell, we live our values (ROCKS) everyday. Come tackle worthwhile challenges and make impactful change with us.