GithubHelp home page GithubHelp logo

phpcodeauditchecklist's Introduction

PHPCodeAuditCheckList

PHP代码审计检查列表

网络收集+自己常见

组合拳or常见场景

数据库功能模块文件包含+sqlquery读文件造成sql注入

序列化字符串传入点可控,pop链利用

控制器未加auth,未授权访问,关注upload、down、sql

ssrf组合拳

ssrf 

SQL注入

magic_quotes_gpc
addslashes
mysql_real_escape_string
intval

XSS

print
print_r
echo
printf
sprintf’
die
var_dump
var_export

文件包含

include
include_once
require
require_once

文件读取

file_get_contents
highlight_file
fopen
readfile
fread
fgets
fgetss
parse_ini_file
show_source
file

ssrf

curl_setopt
file_get_contents
fsockopen

文件上传

move_upload_file

代码执行

eval
assert
preg_replace
call_user_func
call_user_func_array
array_map

命令执行

system
exec
shell_exec
passthru
pcntl_exec
popen
proc_open

变量覆盖

extract
parse_str
import_request_variables
$$

mysql报错注入

floor
updatexml
extracvalue
GeometryCollection
polygon
multipoint
multilinestring
multipolygon
linestring
exp

php安全编码

addslashes
mysql_real_escape_string
mysql_escape_string
str_replace
strpos
htmlspecialchars
strip_tags

防止命令注入

escapeshellcmd

escapeshellarg

phpcodeauditchecklist's People

Contributors

keefe1024 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.