Command Execution

PyCffi

cffi calls C libraries without writing a C extension. FFI.dlopen() loads a shared library at runtime — code-execution sink on user-controlled path. FFI.cdef parses C declarations — neutral unless the definitions are user-controlled.

1 sink
Taint flow0 sources 1 sink
Sinks — dangerous call
.dlopen()

Sinks

.dlopen()Sink
#
Signature
FFI.dlopen(name, flags=0) -> Library

Loads a shared library. Code-execution sink on user-controlled name.

tracks:0

Other Methods

.FFI()Neutral
#
Signature
cffi.FFI() -> FFI

FFI instance.

Fully-Qualified Names

FQNField
cffifqns[0]
cffi.FFIfqns[1]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
from codepathfinder.go_rule import PyCffi