Archive for October 29th, 2012

Captured crackers sslog mysqljackpot MySQL bruteforcer tool / exploit – Xzibit Rootkit and HIDDEN Processes Found: 1 False Positive reports

Monday, October 29th, 2012

XZibit false positive .depend.boot mysqljackpot script kiddie mysql admin user bruteforcer tool and 3 scenarios on how a server could have been hacked
I've noticed some kind of script kiddie gained access somehow on one of the servers, I administrate. A MS-SQL Scanner tool called sslog, was downloaded in tmp and run with root user credentials.

The cracked victim host is running Debian Linux Squeeze and last security update, I've made about few months ago. Inside /tmp/.a/ directory, I've found 0day MS-SQL scanner called mysqljackpot. Maybe the tool is still private exploit scanner because on the Internet I couldn't find it anywhere.:

# ls -al /tmp/.a
total 52
drwxr-xr-x 5 root root 4096 Oct 29 01:10 ./
drwxrwxrwt 10 root root 36864 Oct 29 14:46 ../
drwxr-xr-x 3 root root 4096 Oct 27 21:46 mysqljackpot/
drwxr-xr-x 3 root root 4096 Oct 28 16:58 new/
drwxr-xr-x 3 root root 4096 Oct 29 12:48 pass-multe/
# ls -al /tmp/.a/new/
total 12
drwxr-xr-x 3 root root 4096 Oct 28 16:58 ./
drwxr-xr-x 5 root root 4096 Oct 29 01:10 ../
drwxr-xr-x 3 root root 4096 Oct 29 00:58 mysqljackpot/

After further investigations, I've realized ./sslog is actually a frontend scanner program (Synscan 5.02):

root@host:/tmp/.a/new/mysqljackpot/scanner# ./sslog
Synscan 5.02 (http://www.digit-labs.org/files/tools/synscan/)
by John Anderson ,
Neil Kettle .
./sslog: getuid(): UID or EUID of 0 required

As you see in order for the scanner to run it requires to be root with superuser privileges.

mysqljackpot is actually a brute force tool which as explained in a file (README.mysql), found in its directory :

Here is content of README.mysql:

MySQL Login Scanner
By Kingcope
REQUIRES A FAST SCANSERVER!!! DONT TRY TO RUN THIS FROM A SLOW CONNECTION! ***

Scans for open mysql servers with the following credentials:
root <nopass>
root mysql
root root
admin <nopass>
admin admin
admin mysql
mysql <nopass>
mysql mysql

Runs on linux.
Requirements: mysql development libraries and headers
Compile (try one of the following depending on your system):
$ ./configure LIBS=-lmysqlclient
OR
$ ./configure LIBS="-L/usr/lib/mysql" -lmysqlclient
OR
$ ./configure LIBS="-L/usr/lib64/mysql" -lmysqlclient
OR
$ ./configure CFLAGS="-lmysqlclient"

afterwards type

$ make linux

Run:
terminal 1:
./sslog -v
terminal 2:
./synscan -b <ip block> -p 3306

Inspect Logfile "mysqljack.pot" for open servers.
 

There is one other README in /tmp/.a/new/mysqljackpot/README, here is what I found in it:

less README
Oracle MySQL on Windows Remote SYSTEM Level Exploit zeroday
All owned By Kingcope

Installation Instructions
=============================

1. Install mysql client libraries and headers (UNIX)
RedHat based (e.g. CentOS):
yum install mysql mysql-devel

2. Compile the standalone exploit
issue commands:
gcc mysqljackpot.c -o mysqljackpot -L/usr/lib/mysql -lmysqlclient

3. Compile the reverse shell payload (this is required!)
required because the connect back ip and port are hardcoded in the dll:
use mingw on windows or wine
change REVERSEIP and REVERSEPORT to suit your needs. If you change REVERSEPORT you have
to change the port in mysqljackpot.c too (default port: 443).
issue commands:
set PATH=%PATH%;c:\MinGW\bin\
gcc -c payload.c
gcc -shared -o payload.dll payload.o -lws2_32
copy the payload.dll into the mysqljackpot exploit folder

4. Run The Exploit
./mysqljackpot -u root -p "" -t 99.99.99.99
A valid database admin user and his password are required
for the exploit to work properly.
This exploit is especially useful when used in connection
to a MySQL login scanner, see scanner/README.mysql inside this package.
Be sure to have the firewall open on the desired reverse port
on the attacking machine.

5. Enjoy your SYSTEM Shell!!!

Yours Sincerely,

— Kingcope
 

 

Here is also the header from mysqljackpot.c mysql username brute force tool:

/* Oracle MySQL on Windows Remote SYSTEM Level Exploit zeroday
 * Copyright (C) 2012 Kingcope
 *
 * Thanks to danny.
 */
 

After thinking over the security breach I thought of  few scenarios on how the attacker entered and run as root superuser. One is;

  •   Cracker entered directly via SSH after sniffing somehow the root password.

After however, a review of last cmd, I've concluded this case is not very likely, e.g.:

# last |grep -i root

did not found any logs, of unusual root logins, neither there seem to be any unusual activity with logins with other non-root users. Of course it is possible someone logged in as root and used some tool to clean, his tracks with some kind of user log-cleaner tool like the one I've written in past in bash this doesn't seem very likely however because. It seem the /tmp/.a/, directory was created by some amateur script kiddie, a professional one would create some a bit smarter directory like for example just few empty spaces , i.e. would create it with, lets say::

# mkdir "   "

instead of the so trivial

# mkdir /tmp/.a/

Also the name of the directory containing the script kiddie tool /tmp/.a is not selected intelligently, but just done in a hurry, hence I even assume /tmp/.a, is created by some automated SK tool writen in hurry by some Romanian SK Cracker 🙂

On the host there was webmin and usermin running. So;

  • my second assumption was it could be someone sniffed a login password via encrypted SSL connection, whether the root logged in via webmin, or somehow exploited usermin (though I should say usermin (which listens by default on port number 20000)
     

TCP port 20000 on which usermin listens by default is filtered by an iptables rules for all hosts incoming connections, whether webmin logins are permitted only from few IP addresses. Thus this scenario, though more possible than a direct SSH login with root sniffed password still seems to me not very probable.

  • Therefore as a third scenario (most likely what happened), I assume some of the PHP forms on the server or some other undefined PHP excecutable via Apache variable script was missing definition.

 

Actually saw in /var/log/apache2/error.log plenty of re-occuring warnings of existing undefined variables:

[Mon Oct 29 16:30:43 2012] [error] [client 213.149.142.73] PHP Notice:  Undefined variable: not_assign in /home/site_dir/www/modules/start.mod.php on line 121, referer: http://site-domain-name.com/start?qid=3&answered_id=4
[Mon Oct 29 16:30:43 2012] [error] [client 213.149.142.73] PHP Notice:  Undefined variable: counter_cookie in /home/site_dir/www/modules/start.mod.php on line 130, referer: http://site-domain-name.com/start?qid=3&answered_id=4
[Mon Oct 29 16:30:43 2012] [error] [client 213.149.142.73] PHP Notice:  Undefined variable: campaign_cukie in /home/site_dir/www/modules/start.mod.php on line 135, referer: http://site-domain-name.com/start?qid=3&answered_id=4
[Mon Oct 29 16:30:43 2012] [error] [client 213.149.142.73] PHP Notice:  Undefined index: actions in /home/site_dir/www/counter/count.php on line 11, referer: http://site-domain-name/start?qid=3&answered_id=4
[Mon Oct 29 16:30:43 2012] [error] [client 213.149.142.73] PHP Notice:  Undefined variable: flag2 in /home/site_dir/www/counter/count.php on line 52, referer: http://iqtest.bg/start?qid=3&answered_id=4
 

Taking this in consideration, I assume the attacker, entered the system finding about the undefined variables, defining them and somehow achieving access to the www-data Apache user shell, and through this shell running some 0day Linux kernel exploit to gain root access and download and install mysqljackpot exploit scanner tool.

Logically as it is common in situations like this, I used rkhunter, chkrootkit and unhide tools to check if the server's main binaries and kernel modules are compromised and is there a rootkit installed (earlier written a post on that here)

In short to do checks, installed rkhunter, chkrootkit and unhide with apt-get (as this is a Debian Squeeze server):

apt-get install --yes rkhunter unhide chkrootkit
….

 

Afterwards run in a row:
 

# for i in $(echo proc sys brute); do unhide $i; done
....
......
# chkrootkit
...
.....
# rkhuter --check
...
....

Reports, of the three ones are like so:

Unhide 20100201
http://www.security-projects.com/?Unhide

[*]Searching for Hidden processes through /proc scanning
# for i in $(echo proc sys brute); do unhide $i; done

[*]Starting scanning using brute force against PIDS with fork()

Unhide 20100201
http://www.security-projects.com/?Unhide

[*]Searching for Hidden processes through kill(..,0) scanning

[*]Searching for Hidden processes through  comparison of results of system calls

[*]Searching for Hidden processes through getpriority() scanning

[*]Searching for Hidden processes through getpgid() scanning

[*]Searching for Hidden processes through getsid() scanning

[*]Searching for Hidden processes through sched_getaffinity() scanning

[*]Searching for Hidden processes through sched_getparam() scanning

[*]Searching for Hidden processes through sched_getscheduler() scanning

[*]Searching for Hidden processes through sched_rr_get_interval() scanning

[*]Searching for Hidden processes through sysinfo() scanning

HIDDEN Processes Found: 1
Unhide 20100201
http://www.security-projects.com/?Unhide

Found HIDDEN PID: 4994
Found HIDDEN PID: 13374
Found HIDDEN PID: 14931
Found HIDDEN PID: 18292
Found HIDDEN PID: 19199
Found HIDDEN PID: 22651
[*]Starting scanning using brute force against PIDS with Threads

Found HIDDEN PID: 3296
Found HIDDEN PID: 30790

# chkrootkit -q

/usr/lib/pymodules/python2.5/.path /usr/lib/pymodules/python2.6/.path /lib/init/rw/.ramfs

# rkhunter –check

System checks summary
=====================

File properties checks…
    Files checked: 137
    Suspect files: 0

Rootkit checks…
    Rootkits checked : 245
    Possible rootkits: 2
    Rootkit names    : Xzibit Rootkit, Xzibit Rootkit

Applications checks…
    All checks skipped

The system checks took: 1 minute and 5 seconds

All results have been written to the log file (/var/log/rkhunter.log)

One or more warnings have been found while checking the system.
Please check the log file (/var/log/rkhunter.log)

 

Reports from unhide and chkrootkit,  not seem troubling, however I was concerned about the report from rkhunter – Rootkit names    : Xzibit Rootkit, Xzibit Rootkit.

To get some more info on why chkrootkit, thinks, system is infected with Xzibit (which by the way is an artistic alias of a RAP singer from the 1980's 🙂 I check in /var/log/rkhunter.log

 

# grep -i xzibit /var/log/rkhunter.log
[16:52:48] Checking for Xzibit Rootkit...
[16:52:48] Xzibit Rootkit                                    [ Not found ]
[16:52:56]          Found string 'hdparm' in file '/etc/init.d/hdparm'. Possible rootkit: Xzibit Rootkit
[16:52:56]          Found string 'hdparm' in file '/etc/init.d/.depend.boot'. Possible rootkit: Xzibit Rootkit
[16:53:01] Rootkit names    : Xzibit Rootkit, Xzibit Rootkit
 

Onwards I checked content of hdparm and .depend.boot and there I don't see nothing irregular. They both are files from legitimate Debian install, I've checked if they belong to a deb packages as well if they are existing on other Debian Squeeze servers I administer as well as on my Debian Desktop notebook, everywhere they're present, hdparm is part of hdparm deb and .depend.boot is loaded by /etc/init.d/rc script, containing some user string references:

# grep -rli .depend.boot *
rc
 

# dpkg -S /etc/init.d/hdparm
# hdparm: /etc/init.d/hdparm
  /etc/init.d/.depend.boot
# dpkg -S /etc/init.d/.depend.boot
dpkg: /etc/init.d/.depend.boot not found.

 

Another troubling thing was unhide's return:

HIDDEN Processes Found: 1

 

After a close examination of the system as well as research on the internet, I've figured out this is also a false positive. For sake of not distributing, Script Kiddie tools, which might put in danger other system administrators I will not put a download link to mysqljackpot publicly. Anyways if someone is willing to have it for study purposes, just drop me a mail and I will post you temporary download link to it.

 

Also as webmin and usermin is not frequently used, I've decided to completely stop and disable them to load on boot.

I've done also a clamav scan with (lowered priority) over the whole file system with:

# nice -19 clamscan -r /*

in order to determine, if there is no PHPShell or some kind of other remote admin Script kiddie script in perl / php etc. installed.
Tomorrow, I will continue investigatin what is happening and hopefully once I got, how the abuser entered the server will update this post.

Fix unworking Acer Aspire 5100 TouchPad / Turn on, turned off Acer Aspire 5100-5023 TouchPad

Monday, October 29th, 2012

Acer Aspire TouchPad on modem 5100 5023 how to fix weird touchpad hang up fix not working aspire 5100 touchpad
 

I have a task to fix one Acer Aspire 5100 Also known as Acer Aspire 5100-5023. After re-installing Windows XP on the notebook, I've downloaded correct laptop touchpad drivers as provided by acer.com's website here (TouchPad Section).There inside the ZIP, I've run all the 3 installers provided by Touchpad Driver Synaptics 8.2.19.0 .zip (e.g. Setup.exe, Elantech/setup.exe, Synaptics/Setup.exe).

When all installations were completed, after each one I had to do the standard restart.

For my surprise after Windows boot while testing TouchPad (scratching over it) the TouchPad moved the Mouse Pointer but, after a sec it stopped responding. This is the first time I face such problem so, my guess was either something is wrong with TouchPad Driver or / and the Driver is broken.

To make sure all is fine and driver show properly installed I checked if it is showing correctly installed in:

Control Panel -> System -> Hardware ->Device Manager

There all seem normal under:

Mice and other pointing devices menu I can see

PS/2 Compatible Mouse

Having this situation as you can guess I re-install TouchPad with a couple of driver versions , this not helped either. So after a bit of search on the net. I've got the solution to not responding TouchPad pointed in this Q&A thread

Solution was as easy as just pressing Fn + F7 key. I guess by mistake someone while testing the Function keys on this laptop disabled TouchPad device. The owner of the laptop had no idea about function keys so he never thought of this causes the whole issue. It seems stupidly enough Acer made the laptop function key remember the Function key choice, even after computer restart (pressing Fn+somenumber probably sets some settings in BIOS, so on next boot the settings keeps saved). BTW it might be worthy say, even re-installing with brand new Windows XP does not change a previously set Function setting. Actually it is rather strange why vendors make touchpads possible to disable; I never heard of anybody willing to disable his TouchPad ….

Also I've some people suggest Fn + F6 as a fix to those weird freezed TouchPad Problem, but I believe this are just rumors. Well that's, if you have the same Free Unresponding TouchPad on Acer another Notebook brand name, just enable pressing Fn + F7 keys or whatever Fn + Fx is on the notebook model.
Hope this helps someone 🙂

The origin of English Words and The History of English in 10 Minutes / History of King James Holy Bible

Monday, October 29th, 2012

 


 

The Origin of English Words

 

 

The History of English in 10 Minutes

 

 

Though funny and sometimes ridiculous the second presentation is quite interesting for people interested in Antrophology; how English Country and Language established and most people who somehow influence the development of English language as we know it.

 

 

Mongrel Nation – origin of english language

I knew English language used to be a mixture of French, German and dead Latin, but never thought the origin of most words are so mixed up. Also the story with King James Bible is very interesting, I never knew King James Bible Version. So widely known as ( KJV ) has plaid so essential role for English as we know it. As the video points out KJV, played most essenail role in all English history for development of the modern English language. As with mostly all else in modern developed civilization it is Strong Christian faith which play a key role in formation of a development of modern civillized society as we know it. It is a pity nowdays most English people and Westerners forgot, how important the Holy Bible (Bible btw means Book of Books Bi-Ble) and earlier Church teachings and writings were in order to have a good safety life, good fed people which live in the Western Countries.
There was a good reason Why this Holy Bible translation still is referred as King James Bible. King James (19 June 1566 – 27 March 1625) was a very wise man (linguist and scientist) along with being a King of Great Britain France, Scotland and Ireland.

History of the King James Holy Bible version

Ancient English used to be called Anglo-Saxon English. The called Old English is part of the Germanic Languages group, so in theory nowadays should be much easier for a German, Dutch or some western person to speak English and understand its meaning than to people who belong to other main groups of languages like Slavonic Language group. Actually Slavonic Language group has also taken a multitude of words from German language, so situation with categorizing languages is not so clear to do. It was really interesting to me to learn Dutch Language is maybe in a way more close to primordial Original Anglo-Saxon English. This explains also how comes Dutch in general contains so much English in it and also so many English lingual structure  🙂

With all said, it is clear English as we know it just a mixture of words taken from languages around the world. Colonization that  Great Britain  did in past also played essential role for the inclusion of new words within English Language and Enriching the Language so much. It is also clear, how it come to be that the English is relatively easy to learn and flexible enough to become an International Language as it is today. There were also factors the Invasive character of Great Britain, the migration of many British and Germans to America continent the creation of the United States. And the raise of the US this all played important role in wide-spread of English. Most importantly the World Politics and the interests of certain people (Masonry and Royal Groups), development of modern science, Isaac Newton and the many scientists or (pseudo-scientists) that UK give birth to played an important role for making English popular.

While talking about impact of Christian faith to English, it is no strange Africa (continent countries) and the rest of the undeveloped or so called third world countries are in such a bad condition, because many of them had never had the chance of true spiritual enlightenment through faith in the Lord Jesus Christ. It is probably one of the reasons why western civilization was blessed to have a material goods advancement as a mean that those people help the poor and needy and spread the light of faith. Unfortunately now westerners can no longer spread the light of the faith because English Church is Anglican and is no longer in communion with the One Holy Apostolic Church – The Holy Orthodox Church. It is useful to say Anglican Church in its development as a separate Church did take some of its beliefs of Roman Catholics and some of beliefs from Protestant Reformation. I even red somewhere, the Anglican Church had a point in his history where some negotiations were made with (Greek Eastern Orthodox Church?) that Anglicans unite with the Eastern Orthodox Church. Pitily this never happened. But who knows maybe in future Anglicans will change back to the original Christian faith Orthodox Christianity.

Though King James Bible version, played important role in development of Englishman and English as we know it, some of the verses inside are translated so they correspond better to a protestant understanding of the Holy Bible than Orthodox or Roman Catholic. Besides that the bible contains less books (66 Books), whether the Orthodox Christian bible contains (77 Books).

Though missing some important books still the Bible included many new words and by letting the multitudes across Great Britain, Scotland, England and later new populated American lands it become the most rich words book for XVI th century. Thought some words in KJV are too much archaic for nowdays, the language of it is pretty close to modern English and 95% and more understandable by mostly anyone who speaks some kind of English. Because of its historical importance of forming the English Language. King James Holy Bible version is a great reading for anyone willing to learn some English. I myself has significantly improved my English by reading KJV.  Actually I believe for anyone interested in history and anthropology it is very important to study well Christianity. Christianity and faith in Christ played so huge role in our civilization development, that it is impossible for us to understand properly History and Civilization without knowing well Christian faith. I took some time to  read interesting facts related to King James Holy Bible so I found an interesting page prepared by some Christian enthusiasts which did a statistical analysis over King James Bible Content 🙂

The whole topic of Origin of Words is mostly the most important thing that should be taught at schools and universities today, as it helps us better to understand why our culture and civilization is the way we are. As long as I studied in Holland in Arnhem Business School, it is quite saddening to say nowadays Universities and modern science has so much forgot about its relation and origins to faith in God, that  even the little sort of anthropology I was told in Arnhem Business School – Human Resources and Quality Management (now known under the new official name IBS – International Business Studies) has absolutely nothing to do with real facts – the Christianity part (which is essential is totally missing).

With all said, Modern people want to have a partial truth and completely scratch out our modern civilization Christian origins. The Crisis which emerged is just a reflection of the great spiritual Chrisis and lack of faith in God that is more and more apparent this days.

 I've been lately more and more interested in Anthrophology and whether I learn a bit more I will share it here and hopefully it might be interesting to someone else too 🙂