Waraxe IT Security Portal
Login or Register
November 21, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 118
Members: 0
Total: 118
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PhpNuke -> my_eGallery exploits, trying to secure
Post new topicReply to topic View previous topic :: View next topic
my_eGallery exploits, trying to secure
PostPosted: Wed Aug 24, 2005 12:14 am Reply with quote
canadaka
Regular user
Regular user
Joined: Aug 24, 2005
Posts: 5




I run a fairly large Canadian Content site called "Canada Kicks Rainbow Brite"
www.canadaka.net has been hacked many times over the last 5 years, but just in the past week or so its been hacked 3 times.

The 3 recent hacks were all simular, they added a index.html file to the site root with there hacker tag.

Each hack also did some other stuff, one managed to empty the authors table, one deleted all the site content-tables, modules and block tables.

Luckely I keep pretty good daily backups of things, so wasn't a huge problem.

But i am really wondering how they manage to upload this file to the server. Neither time it never loaded because index.php takes presidence over index.html on my server. The latest hack actualy places this index.html in EVERY www root folder of all the domains I host on my server.

Here are the latst hack index html files I saved:
http://www.canadaka.net/hacks/index_01.html
http://www.canadaka.net/hacks/index_02.html
http://www.canadaka.net/hacks/index_03.html
http://www.canadaka.net/hacks/index_04.html

At the time i was running phpnuke 7.6 and an older NukeSentinel
Today i re-installed phpnuke7.6 patched 3.1, applied my modds, and the newest NukeSentinel.

I know by looking at Sentinel i get TONS of hack attemps specialy author attacks. So it does a good job of stopping that. but this one got through.

I really want to find out how they uploaded files to the site, maybe its a server security issue and not phpnuke.

Server:
Windows Server 2003
IIS 6
PHP Version 5.0.3
MySQL Server 4.1

"Internet Guest Account" has only read permissions to the root folder, only "System" and "Administrators" have write permission.
View user's profile Send private message Visit poster's website
PostPosted: Wed Aug 24, 2005 12:14 am Reply with quote
canadaka
Regular user
Regular user
Joined: Aug 24, 2005
Posts: 5




I know my_eGallery has some security issues, i have looked into it in the past.

Last night i applied some more seurity fixes I found on http://www.waraxe.us I think they should stop a bunch of exploits. Like this one no longer works!!!
http://www.canadaka.net/modules/My_eGallery/public/displayCategory.php?basepath=http://www.canadaka.net/hacks/index_01.html
Says "You can't access this file directly..."

Good info on this exploit here:
http://freebsd.munk.nu/archives/153-Attempts-To-Exploit-My_eGallery-Vulnerability-Target-Random-Sites.html

---------------

But i really am stuck with my_eGallery. I have thousands of pics and thousands of commetns in it. Plus i have added a lot of custom code to it, mostly all cosmetic.

I tried hacking my own site with somre sql injection and auth attacks i found. Seems NukeSentinel is doing its job, I wasn't able to get in.

Does anyone know of how someone could use my_eGallery to hack the site? through the upload pic form? It only allows the file types I specify?

Anyone know any of the hacks i can attempt on myself to try and fix?
View user's profile Send private message Visit poster's website
PostPosted: Wed Aug 24, 2005 12:16 am Reply with quote
canadaka
Regular user
Regular user
Joined: Aug 24, 2005
Posts: 5




I saw chatserv say this on another site:
"As far as i know MeG has not been patched and its vulnerabilities are of such magnitude that an attacker can hack any site hosted on the same server even if they are not the ones using MeG."

This is what happened to me, all my sites had a file place sin there www. So that hack atleast was probably through my_egallery.

I want to figure out how this was done and try and fix it.


I'm trying this in my php.ini as recommended here:
http://www.webhostingtalk.com/archive/thread/261901-1.html

disable_functions = system, exec, shell_exec

------------------

I also have register_globals enabled in my php.ini, because of some older php scripts i have on some of my sites, i will try and upgrade these to I can turn this off, since everyone says its very unsafe. Can anyone explain why that is so?
View user's profile Send private message Visit poster's website
PostPosted: Thu Sep 01, 2005 8:21 pm Reply with quote
canadaka
Regular user
Regular user
Joined: Aug 24, 2005
Posts: 5




bump Crying or Very sad
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 06, 2005 2:36 pm Reply with quote
LINUX
Moderator
Moderator
Joined: May 24, 2004
Posts: 404
Location: Caiman




you need one upload system? only use you ftp account i not recommend upload scripts.

i look your index pages defaced, dont worry is only script kiddies boys, you talk whit you hosting for disable exec functions and check if you hosting have correct rules for close reverse connections.
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 06, 2005 7:41 pm Reply with quote
canadaka
Regular user
Regular user
Joined: Aug 24, 2005
Posts: 5




thanks for the reply, I kinda need the upload script, I get new picture submissions from visitors/members daily.

I host my own site on my rackserver, I have disabled exec functions and put php in safemode, disable globals.

what is "close reverse connections"?
View user's profile Send private message Visit poster's website
PostPosted: Wed Sep 07, 2005 2:37 pm Reply with quote
LINUX
Moderator
Moderator
Joined: May 24, 2004
Posts: 404
Location: Caiman




i recomend read this http://www.thc.org/papers/fw-backd.htm

Code:
An intelligent hacker will not try to put the backdoors on machines in the firewall segment, because these machines are usually monitored and checked regulary. It's the internal machines which are usually unprotected and without much administration and security checks.



Code:
Stateful Filters:

Here a hacker must use programs which initiates the connection from the secure network to his external 0wned server. There are many out there which could be used:
active:
tunnel from Phrack 52.
ssh with the -R option (much better than tunnel ... it's a legtimitate program on a computer and it encrypts the datastream).
passive:
netcat compiled with the execute option and run with a time option to connect to the hacker machine (ftp.avian.org).
reverse_shell from the thc-uht1.tgz package (see above) does the same.
View user's profile Send private message Visit poster's website
my_eGallery exploits, trying to secure
www.waraxe.us Forum Index -> PhpNuke
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.045 Seconds