
cve-2019-5420 POC simple ruby script
Pairs lovely with CVE-2019-5418!

This repository contains a proof-of-concept (PoC) exploit demonstrating remote code execution (RCE) in Ruby on Rails applications via ActiveSupport::MessageVerifier abuse. Use responsibly!
This script exploits ActiveSupport deserialization vulnerabilities by leveraging a crafted ERB object wrapped in DeprecatedInstanceVariableProxy. When the signed payload is deserialized by a vulnerable Rails application, arbitrary Ruby code execution occurs.
This project is for educational and research purposes only. Unauthorized use against systems you do not own is illegal and may result in severe legal consequences.
ActiveSupport::KeyGenerator to generate a signing key.DeprecatedInstanceVariableProxyActiveSupport::MessageVerifier to sign the payload, making it appear legitimate.ruby POC.rb
The script will generate a signed exploit token, which can be used against a vulnerable Rails application.
This project is intended for educational purposes only. The author is not responsible for any misuse or damages caused by this code.
⚠️ Use at your own risk!