FLAG1

c959da3dd49f228e8d163582f78ee5a1ad54d4f2

FLAG2

0c077df9461aaa8ea00769ebee34631a45b33d8c

FLAG3

0aa540ffa669bf1de1912a1d1e76a63a0344ebef

FLAG4

91cc4babaaa29f9763b2bd6682913a64bfdecbb8

FLAG5

01e6960ec2191d583ca7aa81e4649818937ea2bd

Enumeration

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.2 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   3072 cf:07:01:d2:e3:f0:5e:60:1e:ff:25:c3:99:ad:29:90 (RSA)
|   256 58:16:5c:75:23:3f:b7:8b:e3:32:1e:8d:d8:73:6e:a6 (ECDSA)
|_  256 4c:a0:54:46:09:32:e0:33:a7:82:9e:0d:99:42:32:9c (ED25519)
80/tcp open  http    Apache httpd 2.4.41 ((Ubuntu))
|_http-title: FLAG4: 91cc4babaaa29f9763b2bd6682913a64bfdecbb8
|_http-server-header: Apache/2.4.41 (Ubuntu)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

On nmap result we already got FLAG4 We have port 22 and 80, nothing else, another web app CTF, let’s go fuzz

┌──(kali㉿kali)-[~]
└─$ gobuster dir -u 10.150.150.129 -w /usr/share/wordlists/dirb/common.txt -q -t 200                 
/index.html           (Status: 200) [Size: 10928]
/server-status        (Status: 403) [Size: 279]  
/wordpress            (Status: 301) [Size: 320] [--> <http://10.150.150.129/wordpress/>]
┌──(kali㉿kali)-[~]
└─$ wpscan --url 10.150.150.129/wordpress
_______________________________________________________________
         __          _______   _____
         \\ \\        / /  __ \\ / ____|
          \\ \\  /\\  / /| |__) | (___   ___  __ _ _ __ ®
           \\ \\/  \\/ / |  ___/ \\___ \\ / __|/ _` | '_ \\
            \\  /\\  /  | |     ____) | (__| (_| | | | |
             \\/  \\/   |_|    |_____/ \\___|\\__,_|_| |_|

         WordPress Security Scanner by the WPScan Team
                         Version 3.8.22
       Sponsored by Automattic - <https://automattic.com/>
       @_WPScan_, @ethicalhack3r, @erwan_lr, @firefart
_______________________________________________________________

[+] URL: <http://10.150.150.129/wordpress/> [10.150.150.129]
[+] Started: Sat Jul 30 10:28:19 2022

Interesting Finding(s):

[+] Headers
 | Interesting Entry: Server: Apache/2.4.41 (Ubuntu)
 | Found By: Headers (Passive Detection)
 | Confidence: 100%

[+] XML-RPC seems to be enabled: <http://10.150.150.129/wordpress/xmlrpc.php>
 | Found By: Direct Access (Aggressive Detection)
 | Confidence: 100%
 | References:
 |  - <http://codex.wordpress.org/XML-RPC_Pingback_API>
 |  - <https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_ghost_scanner/>
 |  - <https://www.rapid7.com/db/modules/auxiliary/dos/http/wordpress_xmlrpc_dos/>
 |  - <https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_xmlrpc_login/>
 |  - <https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_pingback_access/>

[+] WordPress readme found: <http://10.150.150.129/wordpress/readme.html>
 | Found By: Direct Access (Aggressive Detection)
 | Confidence: 100%

[+] Upload directory has listing enabled: <http://10.150.150.129/wordpress/wp-content/uploads/>
 | Found By: Direct Access (Aggressive Detection)
 | Confidence: 100%

[+] The external WP-Cron seems to be enabled: <http://10.150.150.129/wordpress/wp-cron.php>
 | Found By: Direct Access (Aggressive Detection)
 | Confidence: 60%
 | References:
 |  - <https://www.iplocation.net/defend-wordpress-from-ddos>
 |  - <https://github.com/wpscanteam/wpscan/issues/1299>

[+] WordPress version 5.5.3 identified (Insecure, released on 2020-10-30).
 | Found By: Rss Generator (Passive Detection)
 |  - <http://10.150.150.129/wordpress/index.php/feed/>, <generator><https://wordpress.org/?v=5.5.3></generator>
 |  - <http://10.150.150.129/wordpress/index.php/comments/feed/>, <generator><https://wordpress.org/?v=5.5.3></generator>

[+] WordPress theme in use: officepress
 | Location: <http://10.150.150.129/wordpress/wp-content/themes/officepress/>
 | Last Updated: 2022-07-12T00:00:00.000Z
 | Readme: <http://10.150.150.129/wordpress/wp-content/themes/officepress/readme.txt>
 | [!] The version is out of date, the latest version is 1.1.7
 | Style URL: <http://10.150.150.129/wordpress/wp-content/themes/officepress/style.css?ver=5.5.3>
 | Style Name: OfficePress
 | Style URI: <https://themepalace.com/downloads/officepress>
 | Description: OfficePress, with its aesthetically pleasant and modern looking design is a multipurpose WordPress t...
 | Author: Theme Palace
 | Author URI: <https://themepalace.com>
 |
 | Found By: Css Style In Homepage (Passive Detection)
 |
 | Version: 1.1.5 (80% confidence)
 | Found By: Style (Passive Detection)
 |  - <http://10.150.150.129/wordpress/wp-content/themes/officepress/style.css?ver=5.5.3>, Match: 'Version: 1.1.5'

[+] Enumerating All Plugins (via Passive Methods)
[+] Checking Plugin Versions (via Passive and Aggressive Methods)

[i] Plugin(s) Identified:

[+] simple-file-list
 | Location: <http://10.150.150.129/wordpress/wp-content/plugins/simple-file-list/>
 | Last Updated: 2022-06-01T21:24:00.000Z
 | [!] The version is out of date, the latest version is 4.4.11
 |
 | Found By: Urls In Homepage (Passive Detection)
 |
 | Version: 4.2.2 (100% confidence)
 | Found By: Readme - Stable Tag (Aggressive Detection)
 |  - <http://10.150.150.129/wordpress/wp-content/plugins/simple-file-list/readme.txt>
 | Confirmed By: Readme - ChangeLog Section (Aggressive Detection)
 |  - <http://10.150.150.129/wordpress/wp-content/plugins/simple-file-list/readme.txt>

[+] Enumerating Config Backups (via Passive and Aggressive Methods)
 Checking Config Backups - Time: 00:00:06 <================================================================================================================> (137 / 137) 100.00% Time: 00:00:06

[i] No Config Backups Found.
[i] User(s) Identified:

[+] admin
 | Found By: Author Posts - Author Pattern (Passive Detection)
 | Confirmed By:
 |  Rss Generator (Passive Detection)
 |  Wp Json Api (Aggressive Detection)
 |   - <http://10.150.150.129/wordpress/index.php/wp-json/wp/v2/users/?per_page=100&page=1>
 |  Author Id Brute Forcing - Author Pattern (Aggressive Detection)
 |  Login Error Messages (Aggressive Detection)

[+] julien
 | Found By: Author Id Brute Forcing - Author Pattern (Aggressive Detection)
 | Confirmed By: Login Error Messages (Aggressive Detection)

Exploitation

We know that there is a Plugin simple-file-list 4.2.2 and there is an exploit

Offensive Security's Exploit Database Archive

https://github.com/RandomRobbieBF/simple-file-list-rce