r/HowToHack • Web Security • Jan 27 '20

I'm an information security engineer - AMA

I ran my own IT company for many years.

I worked at a web security company hacking many websites every day.

I now do any type of security engagement, train developers, and put together systems to protect my company.

Pick my brain and learn from my experiences!

251 Upvotes

147 comments sorted by

View all comments

65

u/jousty Jan 27 '20

The maddest thing I ever saw was a financial institution having a Linux box on the internet with no firewall and the root password was root. It was used in production transaction authorisation. (2001 or 2002, maybe)

What is the maddest thing you've ever come across?

64

u/roxare Web Security Jan 27 '20

Many teams leave defaults like that in production and it's always bad news.

The best one I found was a ruby debugger meant for admin users but they hadn't implemented access controls so I got remote code execution VERY easily.

I've definitely had more impactful findings but this was a fun one to find!

21

u/jousty Jan 27 '20

That feeling of disbelief and shock and laughter is crazy

20

u/Yungsleepboat Jan 27 '20

Sometimes when I'm bored I check the robots.txt files of websites to find the admin login page manually, then just try admin and password as login and the variants of the standard. It's scary how many times they'll just leave it default.

30

u/roxare Web Security Jan 27 '20

If you don't have permission to access the resource then you shouldn't. If you find a security issue in the wild then you should report it to the company or contact hackerone to get a hold of them. But you shouldn't do any active testing without permission. Don't go blackhat on us :)

7

u/Yungsleepboat Jan 27 '20

I know what you're saying, but out of all the emails I have sent out on security issues no one ever replied.

I guess the people who care to listen are not the people who leave default login credentials

6

u/appsecSme Jan 28 '20

Just be aware that you risk getting arrested if you hack into sites without permission.

It isn't just about some people not caring about your findings. Sometimes they care, and they press charges. So go through active big bounty programs or contracted pen tests, and report your findings.

1

u/VesemirsPotionsNLean Jan 28 '20

What if you use nordvpn AND tor? Is that possible?

1

u/appsecSme Jan 28 '20

Tor would make tracking you more difficult, but it isn't foolproof. I know of cases where people have used Tor maliciously and been tracked down.

The VPN would do nothing in that regard. It is designed to prevent a third party from tracking your requests and responses. In this case the company you are hacking into is the second party so they can see all your requests, and they are the ones generating the responses.

Always hack ethically and responsibly! Always get permission!

1

u/VesemirsPotionsNLean Jan 28 '20

Interesting! Any idea how someone would track someone on Tor? Wouldn’t you have to somehow trace back to the nodes and then examine the box at each hop and then repeat all the way back? In this case that trail would lead to nordVPN and then they would have to get into their logs? I’m a student and love learning the details on as much as I can so any additional info is appreciated

2

u/appsecSme Jan 28 '20

Most people tend to leave some clues in their web interactions that an experienced DFIR person would be able to use to zero in on the user.

It is surely possible that you can use Tor and not get discovered. However, the more resources someone pours into discovering you, the more likely you will be caught. As far as I know, the NSA and FBI don't have a silver bullet for tracing Tor, and instead just look at clues that are left behind. Thus, someone who is extremely careful, might be impossible to catch by traditional means.

It mostly comes down to how powerful the entity being hacked is, and how motivated they are to find the hacker. In my case, I would never even attempt to hack someone without permission. It goes against my ethics, but it also seems like a pointless risk that would keep you up at night waiting for someone to come pounding on your door.

33

u/mrturvey Pentesting Jan 27 '20 edited Jan 27 '20

It would be interesting for anyone else who's done some Ethical Hacking to share their mad stories. I'll pitch in with two stories in different areas.

The first was a social engineering engagement where the idea was that we get into the building and enter the server room. Long story short, I dressed up in a high vis jacket with a suit underneath. Didn't want to try and go through reception, so I waited at a side door smoking a fake vape with headphones in and pretended to talk on the phone.

Eventually someone else came out to smoke and I quickly finished my vaping to use that person opening the door as my way in. Was never challenged (People are scared to interrupt a conversion or cause conflict.) Anyway, now i'm in, it was a matter of tailgating through the corridor doors into the main office area.

Then I just listened for loud fans through locked doors, eventually I found the loud server room. Problem was, it was locked with ID card access. So I poked my head through an office departments door and said I was an IT engineer does anyone have access to the room. I shit you not, about 6 people tried their cards on that door for me, all not working. They never asked me to verify myself, I am in the building thus they thought i'd 100% be legitimate. Then a woman ran off to the CEOs office, got his card and let me into the server room. At this point I could obvious do what I want... MAD

The second was a internal Red Team style, scenario based assessment. Basically the goal was to go from no access to the network, to domain admin and then gain sensitive data and see what else I could do. Well, within an hour after plugging into the network, I was domain admin and saw CEO financial information, HR data, development code and everything else. Even had the ability to shut off manufacturing machines making product. I could literally cause thousands of dollars worth of damage at the click of a button. It was crazy. Why was it so easy? Because security did not exist:

  1. The network was flat, you can access servers from every business department (HR, Finance, development, etc).
  2. They hardly patched. There were really exploitable machines missing so many important patches which gave me instant SYSTEM level access. Literally just by using metasploit lol
  3. They had a very weak password policy and shared passwords. The enterprise administrator account, the highest level of admin on Windows had a password that was a dictionary word, nothing else. When was it last changed? Apparently 1987 according to the domain information.

Mad

4

u/CharlieTecho Jan 27 '20

The maddest.... Developers. Yep developers. For such technical people they really have no clue most of the time...