[Pentesting] [Messaging] Lotus hacking
We continue on the technical posts in tackling this time to another type of server: the mail server. And more precisely, the attack will be on a Lotus. We see that the attacker may strike again very strong in this way.
Monday, April 20, 2009
How To Waxing My Private Part
1 - Briefing: Lotus
The post is for educational purposes only and shall in no case be tested on a network that is not yours, anyway, without authorization. This is to give a demonstration from an article published in the
We act out of here because we focus on the part
webmail messaging.
2 - Identifying the target
Find the messaging of the company being audited is not difficult. There is the method I would call "intuitive" that is to guess the name. For example: mail.compagny.com ,
webmail.compagny.com
, mx.compagny.com , etc. ... And he
method is the most intelligent;) Just run a query on the DNS MX record: MX
dig compagny.com Our target uses the Lotus? While the attack!
3 - very useful information ...
We will look into a first if we have access to records of users. For that, try opening the file names.nsf
. For example, at: http://mail.compagny.com/names.nsf
. You should have lists of users! Click on those which have an icon "land" and therefore have access webmail. You should find easily ...
the login! it starts pretty good, right? 3.2 / Recovery Accounts ADMINITRATIVE
Get an account ADMINITRATIVE a compromise we would even more important in the sense that it would allow us to obtain access to the host system. How to know the identity of the administrator of the mail? At least two ways: Watch mailing lists. One of them could be called
mail_adminitrator
or something like that. Otherwise, all lists of directors could be interesting to know the user-key;) Watch
Lotus server configuration if it is readable at least. The name (s) ADMINITRATIVE-mail should be provided to you on a platter ...
In the source code, do a search on chain
HTTPPassword
;
Retrieve the value in the "value" without the quotes but with the brackets;
So we got a hash and you're good agent, what does is certainly not the first time you have a hash to decipher. Here, our weapon of choice is the famous cracker password, named John! John the Ripper [1
] ! Nevertheless, we will need to use a version with the patches that go well. Me, I use ice john [2] that contains patches for Domino we need. Then we need to run with John
appropriate format:
for hashes of old format:
john - wordlist = Dictionary.txt - rules - format = lotus5 liste_hashes.txt
for hashes recent format:
john - wordlist = Dictionary.txt - rules - format = DOMINOSEC liste_hashes.txt
other attacks, different, can be played. In particular, they revolve around the file id.
And remember, have fun! :)
webmail.compagny.com
, mx.compagny.com , etc. ... And he
method is the most intelligent;) Just run a query on the DNS MX record: MX
dig compagny.com Our target uses the Lotus? While the attack!
3 - very useful information ...
3.1 / Salvage interesting information
We will look into a first if we have access to records of users. For that, try opening the file names.nsf
. For example, at: http://mail.compagny.com/names.nsf
. You should have lists of users! Click on those which have an icon "land" and therefore have access webmail. You should find easily ...
the login! it starts pretty good, right? 3.2 / Recovery Accounts ADMINITRATIVE
Get an account ADMINITRATIVE a compromise we would even more important in the sense that it would allow us to obtain access to the host system. How to know the identity of the administrator of the mail? At least two ways: Watch mailing lists. One of them could be called
mail_adminitrator
or something like that. Otherwise, all lists of directors could be interesting to know the user-key;) Watch
Lotus server configuration if it is readable at least. The name (s) ADMINITRATIVE-mail should be provided to you on a platter ...
- 3.3 / Retrieve hashes And from now on it's scary! Misconfigured - as often - it is possible to know the hash of the password from Internet users. it can not be so simple you say? In fact, it's even simpler than you might think!
- Select the form for your target user;
In the source code, do a search on chain
HTTPPassword
;
Retrieve the value in the "value" without the quotes but with the brackets;
- 's it!
-
There are two formats that we can get hash (possibly on the same server): - the older format:
-
So we got a hash and you're good agent, what does is certainly not the first time you have a hash to decipher. Here, our weapon of choice is the famous cracker password, named John! John the Ripper [1
] ! Nevertheless, we will need to use a version with the patches that go well. Me, I use ice john [2] that contains patches for Domino we need. Then we need to run with John
appropriate format:
for hashes of old format:
john - wordlist = Dictionary.txt - rules - format = lotus5 liste_hashes.txt
for hashes recent format:
john - wordlist = Dictionary.txt - rules - format = DOMINOSEC liste_hashes.txt
- liste_hashes.txt File must be of the form:
prenom2Nom2: (hash2)prenom3Nom3 (hash3)
- ...
5 - Conclusion
Internally of
We have seen how to access a user's mail without any particular difficulty (unless the password is complex). However, we have not seen everything.
Externally, we must realize that once the account ADMINITRATIVE of email in our possession, it is possible to execute arbitrary commands
on the host system!
other attacks, different, can be played. In particular, they revolve around the file id.
And remember, have fun! :)
Sunday, April 19, 2009
I Had Chlamydia Twice
[PENTESTING] [Database] MS-SQL Audit
After our adventure on theoretical OWASP, I return to the blog post for a technical. And this "comeback", I offer a first time to tackle a very sensitive part of the IS: databases! Indeed, this is where we often find the most confidential data ... Specifically, we consider the example bases such as MS-SQL.
After our adventure on theoretical OWASP, I return to the blog post for a technical. And this "comeback", I offer a first time to tackle a very sensitive part of the IS: databases! Indeed, this is where we often find the most confidential data ... Specifically, we consider the example bases such as MS-SQL.
1 - Mission: MS-SQL
The post presents a technique that is not supposed to be the best, nor exhaustive. The goal here is to see a way to . At the risk of repeating myself, but it is very important, which is presented below can be achieved only within its own network or in a legal framework (with permission of the audited company).
Finally, the client OSQL,
used below, is provided free on the Microsoft website in the package MSDE. The connection to the server goes as follows:
osql.exe / S
server_ip / P password
2 - Identifying our target
TCP / 1433
UDP/1434
NMAP can help us find the MS-SQL servers on the network audited (for example, the network 172.16.XXX.XXX):
nmap-v-sV-sS p-1433-oN-sql.txt NMAP_MS 172.16.0.0/16
Or better:
The goal is to know the version numbers to possibly play such a feat if the server database is not maintained.
3 - Compromise of target
3.1 / Just a matter of account ...
A database MS-SQL has a default administrator account called his
. This account must be specifically protected. However, sometimes it is configured with the password ...
empty or its
! The default credentials can therefore easily provide full access to the database.
If default accounts do not give positive results, we can attempt a dictionary attack
. For this, there is the tool SQLPing3cl : We ago:
completed file
user.txt with account names possible (eg its ) filled pass.txt
file with the list of passwords (otherwise, there are tons of files on the Net preconceived containing dictionary words;).
One of our servers is password
its (from the output) ...
If despite your best efforts you do not get the password of his account
You should know that a database by running default with Local System rights
. So imagine that the database is compromised and you can execute arbitrary commands ... it would be with the rights
NT AUTHORITY / SYSTEM ! Now, by default, MS-SQL has what we called
stored procedures. They allow to significantly increase the power of a database. In effect, this allows many useful predefined actions for the administrator ... or to the attacker. The procedure of interest here is
xp_cmdshell.
4.1 / Enable Stored Procedure
It is possible that the procedure we want - xp_cmdshell - is not activated. To find out, try a connection to the database and try running the stored procedure as follows: > xp_cmdshell 'ipconfig' > go
If you do not make mistakes, as in next picture, go immediately to Step 4.2 /
Otherwise, follow the instructions below allow activation of the procedure:
We will continue our attack by creating an account on the host system:
> xp_cmdshell 'net user jer001 M1ssion_pass / add'
> go
We check with the following commands:
> xp_cmdshell 'net user' > go Our account is added!
5 - Going further
At this stage, we were far enough in the compromise of the server. However, it is necessary to be exhaustive in a pentest. A server has been compromised in this way has not benefited hardening of adequate and therefore suffers certainly many vulnerabilities. This can be verified by further testing. In particular, we can help SQL script
privilege service account; Authentication Method; stored procedure List; Presence databases default
presence of guest access; Presence of accounts without a password; etc.. For
server_ip / P password
2 - Identifying our target
2.1 / Find MS-SQL servers By default, MS-SQL databases using ports:
TCP / 1433
UDP/1434
NMAP can help us find the MS-SQL servers on the network audited (for example, the network 172.16.XXX.XXX):
nmap-v-sV-sS p-1433-oN-sql.txt NMAP_MS 172.16.0.0/16
Or better:
- nmap-sS-sV-p 1433 172.16.0.0/16 simple method is still limited because if the administrator does not use the default port, we miss our target!
- 2.2 / Getting information about MS-SQL servers
:
The goal is to know the version numbers to possibly play such a feat if the server database is not maintained.
3 - Compromise of target
3.1 / Just a matter of account ...
. This account must be specifically protected. However, sometimes it is configured with the password ...
empty or its
! The default credentials can therefore easily provide full access to the database.
If default accounts do not give positive results, we can attempt a dictionary attack
. For this, there is the tool SQLPing3cl : We ago:
completed file
user.txt with account names possible (eg its ) filled pass.txt
file with the list of passwords (otherwise, there are tons of files on the Net preconceived containing dictionary words;).
One of our servers is password
- 172.XXX.XXX.XXX, 1433,
- ServerName , MSSQLSERVER, 8.00.194,8.0.766,8.00.760,, No, (UDP) ServerName; ServerName, InstanceName; MSSQLSERVER; IsClustered; No. ; version, 8.00.194, tcp, 1433; np \\ \\ ServerName \\ pipe \\ sql \\ query;; (SA) Server this purpose blank SA login failed (Bruteforce )****
- Brute Force Attempt Successful! User: Pass it: his ****, UDP TCP SA Bruteforce
If despite your best efforts you do not get the password of his account
, we must return to a standby site security to find a loophole exploited by the version found (see section 2.2 / ). 4 - System hit!
You should know that a database by running default with Local System rights
. So imagine that the database is compromised and you can execute arbitrary commands ... it would be with the rights
NT AUTHORITY / SYSTEM ! Now, by default, MS-SQL has what we called
stored procedures. They allow to significantly increase the power of a database. In effect, this allows many useful predefined actions for the administrator ... or to the attacker. The procedure of interest here is
xp_cmdshell.
4.1 / Enable Stored Procedure
It is possible that the procedure we want - xp_cmdshell - is not activated. To find out, try a connection to the database and try running the stored procedure as follows: > xp_cmdshell 'ipconfig' > go
If you do not make mistakes, as in next picture, go immediately to Step 4.2 /
Otherwise, follow the instructions below allow activation of the procedure:
4.2 / Launch Command
We will continue our attack by creating an account on the host system:
> go
We check with the following commands:
> xp_cmdshell 'net user' > go Our account is added!
5 - Going further
At this stage, we were far enough in the compromise of the server. However, it is necessary to be exhaustive in a pentest. A server has been compromised in this way has not benefited hardening of adequate and therefore suffers certainly many vulnerabilities. This can be verified by further testing. In particular, we can help SQL script
SQLVulscan
. Here is a list of vulnerabilities that can find:
privilege service account; Authentication Method; stored procedure List; Presence databases default
presence of guest access; Presence of accounts without a password; etc.. For
- run, use the following command:
- c: \\> osql.exe / S 192.168.0.12 / U sa / P BDD_PASS / i SQLvulscan.sql
- And as always, have fun!
Friday, April 10, 2009
Singapore Schools 1970s
3M FRANCE: enable participation in 2008 over 2009
Monitor, your mailbox you should receive daily coming a letter from AXA where you will find the status of your participation, 2008 and somewhere on the document a checkbox to make the release or blocking select (at your option).
Warning the sum will be paid after a period of 15 days minimum to receive your newsletter by AXA.
The amount of your participation in 2008 was 4.66% to make a comparison you received a participation in 2008 over 2007 of 8% and dust, it will be easy to evaluate your claim.
note that the amount released will return to reporting amount to calculate your tax
cfdt-3m@laposte.net
Monitor, your mailbox you should receive daily coming a letter from AXA where you will find the status of your participation, 2008 and somewhere on the document a checkbox to make the release or blocking select (at your option). Warning the sum will be paid after a period of 15 days minimum to receive your newsletter by AXA.
The amount of your participation in 2008 was 4.66% to make a comparison you received a participation in 2008 over 2007 of 8% and dust, it will be easy to evaluate your claim.
note that the amount released will return to reporting amount to calculate your tax
cfdt-3m@laposte.net
Can Herpes Form On The Chest
3M U.S.: accelerating downsizing
3M U.S. accelerates the reduction of its workforce in the U.S. by implementing a comprehensive plan for retirement for 3600 people.
Volunteers will have until May 31, 2009 to decide to take action and leave the group
attached further details on the info
http://finance.yahoo.com/news/3M -offers-3600-US-employed-apf-14897798.html
cfdt-3m@laposte.net
3M U.S. accelerates the reduction of its workforce in the U.S. by implementing a comprehensive plan for retirement for 3600 people. Volunteers will have until May 31, 2009 to decide to take action and leave the group
attached further details on the info
http://finance.yahoo.com/news/3M -offers-3600-US-employed-apf-14897798.html
cfdt-3m@laposte.net
Thursday, April 2, 2009
Kates Playground Game
3M TILLOY: Election results (CFDT)
Thursday, April 2, motion for battle Tilloy to women voters and voters go to the polls to make their choice for CE election and DP for a term of office of 4 years.
Bravo for participation that is well beyond the 80% it is a very strong mobilization of personnel to come and vote, we can only satisfy us that.
We are seeing a sharp increase of elected CFDT (+ 30% increase compared to 2007), a gain of 2 posts in ownership on the first college in HB and maintaining CFDT candidates in their mandate the 2nd college, CFDT did not attend college on the 3rd (no candidate presented to our regret)
Congratulations to the whole team CFDT on the site for his commitment and excellent background work done for months, the union section on the site progresses significantly and we can only congratulate ourselves.
THANK THOSE WHO VOTED CFDT
cfdt-3m@laposte.net
Thursday, April 2, motion for battle Tilloy to women voters and voters go to the polls to make their choice for CE election and DP for a term of office of 4 years. Bravo for participation that is well beyond the 80% it is a very strong mobilization of personnel to come and vote, we can only satisfy us that.
We are seeing a sharp increase of elected CFDT (+ 30% increase compared to 2007), a gain of 2 posts in ownership on the first college in HB and maintaining CFDT candidates in their mandate the 2nd college, CFDT did not attend college on the 3rd (no candidate presented to our regret)
Congratulations to the whole team CFDT on the site for his commitment and excellent background work done for months, the union section on the site progresses significantly and we can only congratulate ourselves.
THANK THOSE WHO VOTED CFDT
cfdt-3m@laposte.net
Wednesday, April 1, 2009
Elevated Liver Enzymes And Elevated Hemoglobin
3M FRANCE: Mr CEOs have you read the letters to the social partners
Friday, March 27 during a special CEC, we take advantage of the opportunity to deliver a letter to the HR department to the attention of Mr the CEO of 3M in France ..
In this letter we were doing the social partners express our dismay and growing concern about the lack of social dialogue for over 2 years, no progress Social for over 2 years, everything is done for minimum 2 years, would there be a relationship with the CEO up for 2 years and some months, p dare you question and let you balance sheet and you will have the answer we CFDT have.
Hoping that this letter was sent, we believe that our sincerely CEO will understand our work by reading it and have the courtesy to receive it as received the delegation of 3M Health Monday morning I
guess what you behind the head you readers, NOT we do not want to wave the flags at 3M on the Boulevard de l'Oise to be received , that being said why not if the rendezvous fails
Keep in touch with your blog from any way the stock market does not go well it is not necessary going on BOURSORAMA , stay on the blog THE SITE OF REFERENCE 3M
cfdt-3m@laposte.net
Friday, March 27 during a special CEC, we take advantage of the opportunity to deliver a letter to the HR department to the attention of Mr the CEO of 3M in France .. In this letter we were doing the social partners express our dismay and growing concern about the lack of social dialogue for over 2 years, no progress Social for over 2 years, everything is done for minimum 2 years, would there be a relationship with the CEO up for 2 years and some months, p dare you question and let you balance sheet and you will have the answer we CFDT have.
Hoping that this letter was sent, we believe that our sincerely CEO will understand our work by reading it and have the courtesy to receive it as received the delegation of 3M Health Monday morning I
guess what you behind the head you readers, NOT we do not want to wave the flags at 3M on the Boulevard de l'Oise to be received , that being said why not if the rendezvous fails
Keep in touch with your blog from any way the stock market does not go well it is not necessary going on BOURSORAMA , stay on the blog THE SITE OF REFERENCE 3M
cfdt-3m@laposte.net
Sd780 Is Time Lapse Movie
3M WORLD: elimination of 1,200 positions worldwide
3M announces the deletion of 1200 additional posts (worldwide), this represents 1.5% of the global world.
The reason given by management is to make an adjustment related to the business that goes wrong and a decrease in volume.
source of info: http://online.wsj.com/article/SB123853791139475389.html?ru=yahoo&mod=yahoo_hs
cfdt-3m@laposte.net
3M announces the deletion of 1200 additional posts (worldwide), this represents 1.5% of the global world. The reason given by management is to make an adjustment related to the business that goes wrong and a decrease in volume.
source of info: http://online.wsj.com/article/SB123853791139475389.html?ru=yahoo&mod=yahoo_hs
cfdt-3m@laposte.net
Subscribe to:
Posts (Atom)