Maik Ro Profile picture
Oct 13 18 tweets 5 min read
Day 3⃣9⃣

I will teach you how to find bugs in open source software step by step

Lets go!
1. You use the query I posted yesterday to find potential targets: github.com/search?q=stars…

(You can adapt the number of stars to your liking, anything more than 50 stars should suffice)

You now have 1068 RESULTS - WAOW.
2. You get into your hacker mindset and figure out which ones are juicy targets🧃

but... How?

Easy, all you have to do is think about vulnerabilities...

What?

Ok, let me explain
Vulnerabilities are triggered by user input, right?!

Hacker puts something in the form/input field and BOOM goes the dynamite.

So you need an application that has some kind of input fields
Generally these are good targets:

- Web Frameworks
- Content management Systems (CMS)
- Enterprise Resource Planning (ERP)
- Customer Relation Management (CRM)
- Exporter / Importer

Why?
Web Frameworks because they have lots of abstractions and potential input fields, they are complex because they hide away complexity from users and that is HARD.

CMS, ERP, CRM Systems all have one thing in common:

- lots of modules
That's their selling point and also Achilles' heel.

Every module can be configured, has inputs, handles lots of data and as I told you yesterday - complexity is the perfect breeding ground for bugs 🪲!
Last but not least - importer / exporter

They often handle customer data and connect with external systems

Specifically any PII - Personal Identifiable Information is worth its weight in gold and needs to be protected at all cost!

👋 GDPR - Love ya.

Next...
3. Choose one Open Source Project. Any one is fine.

You shall now forge your mind in the fire 🔥.

Now comes the hard part...

4. Installing the software so that you can hack it 😅
The easiest solution in my book is @Docker - so you go to hub.docker.com

...and now you type the name of the open source software into the docker hub search and pray that there will be a result.
For illustration I choose farmOS - a digital management system for farms 🧑‍🌾

I search docker hub for farmOS and I am lucky: hub.docker.com/search?q=farmos

NICE.

Now we need to install docker and then we can get hacking
Lucky for us that is also possible: docker.com will most likely select the correct version for you to install automagically

IF NOT choose the correct Operating System from the Selection and download the file - when that is done, double click and install
Now everything should be setup for us to use docker to spin up our farming management system and hack away

We need to type two commands into our terminal:

1. docker pull farmos/farmos

This will download the container to your computer - if it fails, make sure docker is running!
If you don't know what that means - DM me and I will help you.

Just don't type "Hey", "Hello" and nothing else - I won't answer those.
Now comes the moment we have all been waiting for, we will start the container and run the application:

docker run --rm -p 80:80 -v "${PWD}/sites:/opt/drupal/web/sites" farmos/farmos

(found in the great documentation of farmOS - farmos.org/hosting/instal…)
if all goes well and you type

docker ps

into your terminal now, you should see a container running - WOHOOOOOO, well done.

Now enter 127.0.0.1 into your browser and press enter.

The installation form should popup and guide you through the rest of the installation
Tomorrow we continue exactly here and will hack the application together - let's see if we can make it safer.

Happy Hunting.

If this thread provided value to you, please consider following me for more information and walk-throughs.

Thank youuuuu
In October we will do lots of #BugBounty - #30DaysOfBugBounty

November is the #BlueTeam Month

December we will jump into #JobHunting and Certificates in #CyberSecurity

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Maik Ro

Maik Ro Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @maikroservice

Oct 14
Day 4⃣0⃣

Today we will start hacking the application we selected yesterday.
In my case it was farmOS - you might have choosen a different Open Source Software you found on github - which is fine, the methodology is the same.

What to do first?

Right, start the application…
Recap:

We installed @Docker so that we can automagically have it running without headaches.

Now make sure that docker is running and type

docker ps

into your terminal. Your output should look similar to this one (the CONTAINER ID, PORTS and NAMES might look differently) terminal output of docker p...
Read 12 tweets
Oct 12
Day 3⃣8⃣

Let's get started with Offensive Security & Bug Bounty -

What do you need to know as a Beginner?

Let me tell you.

No organization in the whole wide world needs people that can just hack.

Why - a 🧵
I believe that purple teaming - a combination of Red - offensive - and Blue - defensive security, is the path of the future, and the ONLY PATH really.

But! Currently we are training people the entirely wrong way.
We train hackers to choose between offensive and defensive sides.

So naturally there is a unwritten conflict between the two - it's a cat & mouse game.

Red Team hacks, Blue Team patches / fixes / forwards issues to the development teams.

See the issue?
Read 12 tweets
Oct 7
Day 3️⃣ 3️⃣

What is the one thing that separates newbie bug hunters from the professionals - let me tell you
It’s persistence. The tools and ideas that for example @Jhaddix shows is his talks are far beyond the level I thought someone would use for Bug Bounty.

There was one Technique that blew my mind 🤯
It is scraping cloud provider IP ranges (proactively and recurring)

Imagine you are hacking on a program and you want to check which assets they have.

I assume at least 99% of what’s running on the web now is hosted by Cloud Providers (AWS, Azure, GCP, Digital Ocean etc)
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(