السلام عليكم
كيف الحال في الحقيقه لدي موضوع ممكن خطير شوي لكن ممكن تستفيدو من الوقاية والحمايه من الدوال الخطره كتبته بمستند نصي على السريع واتمنى طرق الترقيع لااعرف في البرمجه الا القليل
Remote File Include
كود PHP:
<?php
$swailf = $_GET['rfi'];
include ($swailf);
?>
http://localhost/indexx.php?rfi=xxxxxx.txt?
رااح تكون كذا الثغره وهذا خطر جدا
Include
Include_once
Require
Require_once
----------
Local File Include
هذي تسمح في قرآئة الملفات
كود PHP:
<?php
readfile($swalif);
?>
http://localhost/indexx.php?swalif=config.php
الدوال
file
readfile
show_source
fread
----------
remote command execution
كود PHP:
<?php
system($cmd);
?>
http://localhost/indexx.php?cmd=ls
system
exec
shell_exec
popen
proc_open
passthru
------
XSS
كود PHP:
<?php
print $_GET['XSS'];
?>
http://localhost/indexx.php?XSS=<script>alert(1)</script>