Showing posts with label Discutions. Show all posts
Showing posts with label Discutions. Show all posts
Apr 20, 2012

0
Abusing Password Resets

This posts focuses on analyzing entropy and inline password resets, two major problems with forgot/reset password functionality. To do this, we have to automate both requesting a forgot password hundreds of times and parsing thru all of the e-mails we receive. Thanks to the recently added macro support now available in Burp (thanks PortSwigger), less effort is required on our part when an application employs anti-automation features to prevent such attempts.

For those not familiar with BurpSuite's Macro support, lets walk thru this.

So here is a picture of the email reset we've been sent:
To initiate a password reset request it is a four part request & response pair sequence. This sequence is saved in our proxy history. We need to navigate to Options > Sessions > Macros > New and highlight the four messages saved in the proxy history to create and configure the new macro.

Take a look at the screenshot below:
Okay now we need to configure each individual request/response to extract data we want. We have to grab a JSESSIONID and a struts token. Lets highlight the first request/response and configure.
Example of configuring one of the items
You'll notice that for the first request I've chosen to not use cookies in the cookie jar. This is because I want to start the sequence clean and without a cookie.


Notice the struts.token.name and struts.token are dynamic and changing so we derive these from the response. The rest are preset values like email and birthdate (no, not my real birthdate). One thing that is important to notice is that I've decided to uncheck URL encode for the email portion. It is already URL encoded so no need. Otherwise it will cause problems.



Name the Macro 

The next piece requires you to add the macro to a session rule. Again Options > Sessions > Session Handling > New. Highlight the macro you'd like to use.






Next, you'll need to add the pages to scope:




Now send the original, first request (I do this at the proxy history portion of Burp) over to intruder, select null payloads and set it for a number that is large enough to collect a big portion of passwords so we can review entropy. You'll see below that Intruder is configured to send the password reset sequence 800 times. Again, this will initiate the macro each time, so you are essentially resetting the password 800 times.


Next we need to retrieve the emails from gmail and review them for entropy. Here is a script I've written to retrieve emails from gmail, parse for the password values and write to a file called tokens.txt:



Lines 11-17:

Line 12: File we will place all of our emails in (make sure you create an inbox folder)
Line 13: Initialize Pop class
Line 14: Enable SSL
Line 15: Replace with your username and password
Line 16: Call the check_for_emails method with the pop obj

Lines 20-27:

Line 21-22: If we no emails, print that fact out to the screen
Line 24-25: We have emails, print that fact to the screen and call place_emails_into_file method with the pop object.

Lines 31-36:

Line 31: Iterate thru pop array
Line 32: Open the file (line 12)
Line 33: Write the messages to the file
Line 36: Call the create_file_with_tokens method


Lines 40-53:

Line 41: Create a new_file object which is a file called tokens.txt
Line 42: Create a read_file object which reads the inbox/emails.txt file from Line 12
Line 43: Begin reading each line from the read_file
Lines 44-46: If the line matches the "password: somepassword" write it to a file.
Line 53: Kick the whole thing off

Review the tokens.txt file

We can see that the new passwords sent aren't very random. We can load this in burp sequencer but there really isn't any point when it is this easy. It is obvious that the developer has two separate arrays of words and and another array of numbers. They pick "randomly" from that pile and concatenate the values. Here is the actual line of code I wrote to do this and yes this is a real-life example that I've come across:




Factors that could slow us down:

1) If we can't enumerate e-mail addresses somehow. An example of enumeration would be if you type in a username/e-mail address and and the site tells you it doesn't exist. Now we know who DOES exist on the system.

2) This particular site requires a birthdate along with the email address. This is difficult but not impossible. If we know the e-mail address exists it is a matter of guessing the birthdate (automate w/ Intruder).

3) After we've reset other user's passwords, we need to guess the password (made MUCH easier by reviewing the entropy). If an account lock-out policy is enforced (after a small amount of incorrect password submissions) the account may be locked out leaving us without access. That is no fun.

Even if the reset or forgotten password function doesn't send us a clear-text password it may send us a reset link. It is important to review the randomness of that link.

Here is an example of loading the tokens file in sequencer:


Summary:

We've bypassed struts token and multi-flow password resets which might have been intended to slow us down. We've collected all of our emails and parsed them for passwords/tokens/links. We've manually (in this case) reviewed the entropy but we can also do this with sequencer. Now we have a way to guess passwords more efficiently and in combination with other flaws leaves us just a short period of time from compromising accounts.
All credits for this post goes to carnal0wnage

Dec 22, 2011

0
Follow FlashcRew

Com and get easy our news in the biggiest social communtys

Follow us on Facebook and Google+
http://www.facebook.com/TheFlashcRew

https://plus.google.com/b/115907849457010508518/
Dec 21, 2011

0
Social Engineering via Phone to get Admin.

Phone Verify / Social Engineering via Phone to get Admin.
----------------------------------------------

Ok.. Simple tutorial..its hardly a tutorial.

This is just to people that don't understand what a Phone Verify is.

When you card a shop they sometimes call to verify the order and ask some details about the order and maybe some card details.


How do we do this..

Well there are 2 ways..1 easier then the other.

1. Skype or any other VOIP Provider thats cardable. - Easy
2. Card a Pre-paid Sim and phone. - Hard

We will use 1.

Ok it's pretty easy to card skype just goto it, make an account use socks for the country your going to be using.. so USA = USA socks.

Once you buy $20 credit they will give you a phone number.

Example number 800-675-8734

Now we have a number..all you need now is skype installed on your computer and a mic/headset.

When you card the store try do it in business hours that way the call will come asap and you will get it confirmed and shipped the same day.

So say we carded apple.com for a ipad.

We would get a fresh USA sock and put into the connection settings of skype.

When the order goes through make sure your on skype..leave it on your speakers or headset if your going to be on the computer for a while.

When the call comes through they will ask if your are the card holder, your address etc..and what did you order and what total $$.

Once it's verified they will put the order through.

This is also good for Social Engineering..

If you got information from a server like the admin's user and server information but can't get the password you can whois the site and get the Webserver provider info and then call the admin of the site and say your the tech team and you found out someone has been attacking customer's websites and would like to validate the admin's info..etc..

Then ask for them to change there password and it would be quicker for me to do it on the phone now and more secure just incase someone has put a virus on there site or computer.

When they give you the old password and a new one..login to there server via the web host and change the old to the new so looks legit and like the call was legit.

To make it look even more legit you could send a fake email to there email account under the webservers name and say that there password was changed and thank you for your service and help in the matter.

That's one the easiest ways to root a server

Hope this helps.

Written by Syncorion
Date: 11/06/2010

0
Spoofing Caller ID

What Is Spoofing Caller ID?

Caller ID spoofing is the practice of causing the phone network to display a number on the recipient's caller ID display/phone display which is not that of the actual originating station.

Just like email spoofing you can set a spoofed email that will be sent to a victim ; example: billgates@microsoft.com. But instead of email this is the Phone Network caller ID number so instead of sending our number "555-555-5554" we spoof it with a service to "111-111-1112" making it show up on the victims phone when we call them.

Some people use this for prank calls, some people use when they do telemarketing..But we will be using for Hacking/Carding.


How do you mean Carding/Hacking?


Well Lets do this in 2 sections..

1) Hacking.

To lets say Hack into a shop network online or root a server you can do this by social engineering, So lets say we did a Whois on a company.

For this example we use http://www.cygnett.com/

So we do a whois.. You can do this anyway you like but we will just use > http://whois.domaintools.com/

So we do the whois and the information we are looking for is:

Organisation Name
Organisation Address
Organisation Phone
Admin Name
Admin Address
Admin Phone
Tech Name
Tech Address
Tech Phone

So in this case we find all the information needed to hijack the whole site and database by simple Social Engineering and to do all this we will use Call ID Spoofing.


Organisation Name.... Cygnett Organisation Address. Level 1, 3 Newton Street Organisation Address. Organisation Address. Richmond Organisation Address. 3121 Organisation Address. Victoria Organisation Address. AUSTRALIA Admin Name........... Daniel Harper Admin Address........ Level 1, 3 Newton Street Admin Address........ Admin Address........ Richmond Admin Address........ 3121 Admin Address........ Victoria Admin Address........ AUSTRALIA Admin Email.......... Admin Phone.......... 03 9429 2552 Admin Fax............ 03 9429 2551 Tech Name............ Web Master Tech Address......... P.O. Box 13266 Tech Address......... 1300660603 Tech Address......... Melbourne Tech Address......... 3000 Tech Address......... VIC Tech Address......... AUSTRALIA Tech Email........... Tech Phone........... +1.300 660 603 Tech Fax............. +61.3 9370 0652
So What we would do is use Caller ID spoofing service to spoof our skype number to the Tech > 1.300 660 603

Then We can call Cygnett Owner on > 03 9429 2552 as we can see the admin is the owner in this case and in most cases.

So when we call we could say, that we are doing a Security verification check on customers due to a hack attempt on the networks and would like them to verify there username, current password, email address used to register to "fundamentalit.com Hosting" Owner's name used to register/pay for the site address...etc

Also you would need to try not act like a robot over the phone and never stutter or say "umm's" cause they will think its a fake caller, just keep your cool, and don't worry if you can't speak heaps of English because so many people around the world employee Admin's/Help desk from overseas.


2) Carding/Shipping

This is a smaller section as its not as hard to explain.

Lets say we had a CC and you were from UK but the CC account phone number was USA.. well you could setup your skype in UK to spoof to the victim's number..example:

John Doe's billing Address Phone Number is "300-444-8004" our number is "98-999-9807" So we would use the Caller ID Spoofing service to spoof our number to the Phone number of John Doe then we can call to verify orders if needed.

The Best service I think to use and its also anonymous is called Blufmycall

Site: http://blufmycall.com/

Its around $10 for 60 credits "minutes"/ $100 for 775 credits "minutes" and that includes unlimited caller ID changing..so you could keep changing it to what you want.


Have fun..Keep Cool..Fuck the Feds.
By Syncorion - Yes I am a Bitch you better know it.
Jul 6, 2011

0
Link Exchangin

Hello :)
If u have ur Website Blog/Forum and wanna to exchange links with flashcrew blog . Let me know in email flashcrew.webs [at] gmail.com
Thnx :)

2
3 Logo for FlashcRew




Those 3 logos are created by one my friend Sp3ctr4L 
who from those it's the best ?  or can anyone to creat another special one for FlashcRew Blog :)



Oct 25, 2010

0
MySpace apps send user IDs to advertisers


In the wake of the discovery that some third party Facebook applications transmit users' ID to ad agencies and Internet tracking companies, The Wall Street Journal has revealed that MySpace and some of the game applications on it are doing exactly the same thing.

This is not the first time MySpace has been found "oversharing" - at the time, they said they were working on a method to obfuscate the ID information sent to ad agencies via "HTTP referrers".

An extenuating circumstance is the fact that - unlike Facebook - MySpace doesn't require of or encourage its users to make an account in their real name, so knowing a user ID doesn't immediately mean that usable information can be harvested. On the other hand, many users simply don't think of creating an online persona to protect their privacy.

Three popular MySpace applications - TagMe, GreenSpot and RockYou Pets - have been found transmitting the information, a thing that is against the rules set by the social network.

"It has recently come to our attention that several third-party app developers may have violated these terms and we are taking appropriate action against those developers," a MySpace spokesman said.
Oct 20, 2010

0
Quick guide to SQL Injection attacks and defenses

A SQL injection attack consists of insertion or "injection" of a SQL query via the input data from the client to the application. A successful SQL injection exploit can read sensitive data from the database, modify database data (Insert/Update/Delete), execute administration operations on the database (such as shutdown the DBMS), recover the content of a given file present on the DBMS file system and in some cases issue commands to the operating system. SQL injection attacks are a type of injection attack, in which SQL commands are injected into data-plane input in order to effect the execution of predefined SQL commands.

SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application.

SQL injection is one of the oldest attacks against web applications.

The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another...

For more details please follow the link below...
Download Paper (Quick guide to SQL Injection attacks and defenses - english)

0
The Hacker Manifesto

Another one got caught today, it's all over the papers. "Teenager Arrested in Computer Crime Scandal", "Hacker Arrested after Bank Tampering"...

Damn kids. They're all alike.

But did you, in your three-piece psychology and 1950's technobrain, ever take a look behind the eyes of the hacker? Did you ever wonder what made him tick, what forces shaped him, what may have molded him?

I am a hacker, enter my world...

Mine is a world that begins with school... I'm smarter than most of the other kids, this crap they teach us bores me...

Damn underachiever. They're all alike.

I'm in junior high or high school. I've listened to teachers explain for the fifteenth time how to reduce a fraction. I understand it. "No, Ms. Smith, I didn't show my work. I did it in my head..."

Damn kid. Probably copied it. They're all alike.

I made a discovery today. I found a computer. Wait a second, this is cool. It does what I want it to. If it makes a mistake, it's because I screwed it up. Not because it doesn't like me... Or feels threatened by me.. Or thinks I'm a smart ass.. Or doesn't like teaching and shouldn't be here...

Damn kid. All he does is play games. They're all alike.

And then it happened... a door opened to a world... rushing through the phone line like heroin through an addict's veins, an electronic pulse is sent out, a refuge from the day-to-day incompetencies is sought... a board is found. "This is it... this is where I belong..." I know everyone here... even if I've never met them, never talked to them, may never hear from them again... I know you all...

Damn kid. Tying up the phone line again. They're all alike...

You bet your ass we're all alike... we've been spoon-fed baby food at school when we hungered for steak... the bits of meat that you did let slip through were pre-chewed and tasteless. We've been dominated by sadists, or ignored by the apathetic. The few that had something to teach found us willing pupils, but those few are like drops of water in the desert.

This is our world now... the world of the electron and the switch, the beauty of the baud. We make use of a service already existing without paying for what could be dirt-cheap if it wasn't run by profiteering gluttons, and you call us criminals. We explore... and you call us criminals. We seek after knowledge... and you call us criminals. We exist without skin color, without nationality, without religious bias... and you call us criminals. You build atomic bombs, you wage wars, you murder, cheat, and lie to us and try to make us believe it's for our own good, yet we're the criminals.

Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.

I am a hacker, and this is my manifesto. You may stop this individual, but you can't stop us all... after all, we're all alike.

Written January 8, 1986
by
+++The Mentor+++

0
What is Hacking?

The media today is quick to convert ignorant idividuals that hackers are infact computer experts with malisious intent. We've all seen it on the news, "Hackers break into gouvernment systems and launch nuclear missles at the moon", "13yr old Hacker steals $13 million in online credit card fraud", "Hackers broke into my house and ate my baby".

However this couldnt be more wrong. Hacking is the art of exploring computers and finding out how and why things work. There are ofcourse the extreme minority that decide to deface and attack anything they can, and this is where hackers get a bad reputation. This website aims to change this stereotype and claim back a positive title associated with hackers. Hacking isnt just about Computers and Exploits, its almost a philosphy.

# Hacker is a term used to describe different types of computer experts. A person who enjoys exploring the details of computers and how to stretch their capabilities. A person who delves into software more deeply than an average PC user.


Hackers are often seen as "White hats" or "Black hats." White hat hackers help fix badly written software programs and write new programs for the greater good of the computing community. Black hats modify or create software for criminal purposes such as stealing your passwords, your identity, your bank account or simply to slow the Internet down for the sole purpose of achieving their 5 minutes of fame.
 
FlashcRew Blog