Conversation
f47d1ba to
5a3f385
Compare
70ace1b to
e33dc9c
Compare
3123ca0 to
4404cd0
Compare
Hook to guide inputs to MVEL interpreter towards performing OS commands which are detected by the OS command injection sanitizer.
e33dc9c to
083058b
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for detecting MVEL expression language injection vulnerabilities by implementing a guidance hook that directs fuzzing inputs toward OS command execution patterns that trigger the OS command injection sanitizer.
Key changes:
- Added MVEL guidance hook to detect expression language injection via Runtime.exec() calls
- Implemented fuzz test for MVEL expression evaluation
- Integrated MVEL library (version 2.5.2.Final) as a test dependency
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ExpressionLanguageInjection.kt | Added MVEL guidance hook with attack pattern and method hooks for various MVEL eval/compile methods |
| ExpressionLanguageInjection.java | Added fuzz test method for MVEL expression evaluation |
| BUILD.bazel (test) | Added MVEL dependency and fuzzMVELExpression to test methods list, expanded allowed findings |
| BUILD.bazel (sanitizers) | Added MVEL dependency for sanitizer tests |
| MODULE.bazel | Added MVEL library to test Maven artifacts |
| maven_install.json | Added MVEL library metadata and updated artifact hashes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sanitizers/src/main/java/com/code_intelligence/jazzer/sanitizers/ExpressionLanguageInjection.kt
Show resolved
Hide resolved
sanitizers/src/main/java/com/code_intelligence/jazzer/sanitizers/ExpressionLanguageInjection.kt
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hook to guide inputs to MVEL interpreter towards performing OS commands which are detected by the OS command injection sanitizer.