clouseau icon indicating copy to clipboard operation
clouseau copied to clipboard

Search for Dangerous APIs and Functions

Open lfatty opened this issue 11 years ago • 2 comments

Incorporate the ability to search for functions and APIs that may introduce vulnerabilities.

lfatty avatar Feb 24 '14 20:02 lfatty

Great idea. eval() and evaluate() come to mind

marcesher avatar Feb 25 '14 17:02 marcesher

Here a list of function that may present some vulnerabilities. So I want to create a text file (dangerous-api.txt) under patterns directory then call the parser to do its job. Please let me know if that is not a good approach.

os.system os.spawn* |os.popen popen2.* commands* getattr setattr delattr val exec execfile password wprintf vwprintf vsscanf vsnprintf utime utmpname unlink umount umask ttyname truncate timpanum t_open system syslog symlink strtrns stat srand socket sprintf srand48 select remove recvmsg realpath readlink read random openlog pathfind popen open opendir mrand48 mount nis_ping nftw nis_getserv mktemp mknod mkdir mkdirp lrand48 stat kvm_open lchown gets getpass getopt getopt_long getlogin getenv getchar getc ftok fstat ftw fscanf fread freopen fgets fattach fdetatch execv execvp exec |drand48 dlopen dbm_open db_initialize cuserid copylist creat catopen bind acct au_to_patch basename bcopy Access-Control-Allow-Origin addHeader open urllib2 tarfile zipfile pickle shelve os.fork os.kill betavariate compile cunifvariate fork gammavariate gauss gethostbyaddr getlogin jumpahead listdir randint raw_input recv seed shuffle tmpfile system tmpnam uniform DEBUG rmdir uniform

lfatty avatar Feb 25 '14 17:02 lfatty