Protocol Buffers DescriptorProto oneof_decl materialization DoS PoC
This repository contains a benign security research PoC for a .pb artifact
that drives repeated-message materialization during
descriptor_pb2.DescriptorProto.ParseFromString(...).
Files:
control_zero_oneofdecl.pbmalicious_oneofdecl_5000000.pbreproduce.py
Observed behavior:
- control artifact:
- parses successfully with zero
oneof_declentries
- parses successfully with zero
- malicious artifact:
- parses successfully with
5,000,000oneof_declentries - materially increases peak RSS during normal parse
- parses successfully with
Reproduction:
python3 build_poc.py
python3 reproduce.py
Public files:
https://huggingface.co/hacnho/protobuf-descriptor-oneofdecl-dos-poc/resolve/main/control_zero_oneofdecl.pbhttps://huggingface.co/hacnho/protobuf-descriptor-oneofdecl-dos-poc/resolve/main/malicious_oneofdecl_5000000.pbhttps://huggingface.co/hacnho/protobuf-descriptor-oneofdecl-dos-poc/resolve/main/reproduce.py
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support