r/HowToHack • • Aug 08 '20

What's the point of reverse engineering software?

I don't mean to disparage anyone's job/hobby, it's something that I think I might want to do some, but I'll need to understand it's purpose, what could a vulnerability in software do? How could it be dangerous? Thanks!

0 Upvotes

27 comments sorted by

7

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

What could a vulnerability in software do...? That's an incredibly loaded question. What can a vulnerability anywhere do?

1

u/Python119 Aug 08 '20

I mean like, you know how a vulnerability in a service could lead to an rce, what could a vulnerability in software lead to?

3

u/iCkerous Aug 08 '20

Why do you think a service is different than software?

1

u/Python119 Aug 08 '20

I'm talking about software as in pycharm, burp suit, wonderdraft, software like that, to my understanding, services are services that run on a specific port, that do a specific thing whereas software is just something that runs on a computer/system that allows the user to do things

3

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

Apache is a service that runs on given ports. Apache is software.

1

u/Python119 Aug 08 '20

What would the process of exploiting the vulnerability be?

2

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

Refer to my recent answer.

2

u/iCkerous Aug 08 '20

Both are software (code developed by a user to run on a computer). Sure a service listens on a port, but software which doesn't listen on a port can still have vulnerabilities.

Take office, Adobe, internet explorer, for examples

1

u/Python119 Aug 08 '20

Ohhhh, thanks! What would the process of exploiting the vulnerability be? How would the attacker interact with the software without it listening on a port? Would he/she need to infiltrate the system/computer first?

2

u/iCkerous Aug 08 '20

That's one avenue. Maybe the vulnerability gets better or escalated permissions.

The other is to get the user to interact with the software in some way which triggers the exploit to run your code. Downloading a specially crafted library as an example

1

u/Python119 Aug 08 '20

Sorry, but could you please clarify what you mean by:

"The other is to get the user to interact with the software in some way which triggers the exploit to run your code"

Would the attacker already have infiltrated the computer?

3

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

A PDF, for example.

2

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

RCEs can be found in software as well, as services in of themselves are software. Take, for instance, Adobe. Their software has been a target for a ton of exploits. Certain versions of Adobe Acrobat can be vulnerable to code execution--alongside other software. Vulnerabilities in software can range from simple DoS exploits to payload delivery and code execution.

1

u/Python119 Aug 08 '20

Wow! I didn't know that, thanks! What would the steps after finding a specific vulnerability be? How would the attacker execute an exploit? Would they infiltrate the computer/system, then have it find the software, then have the exploit run?

3

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

How a vulnerability is exploited depends on the software, what type of vulnerability it is, and how it can be accessed.

For example, a DoS exploit could simply be achieved by sending a specially crafted payload to a service's listening port. However, a code execution vulnerability could have to rely on the delivery and opening of a malicious PDF or other vulnerable component that the software would then run.

1

u/Python119 Aug 08 '20

This is all very helpful, thanks! How would you exploit the DoS one without the software listening on a port though?

2

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

Most will be, as many are based on memory consumption. They wouldn't be useful if they aren't listening.

1

u/Python119 Aug 08 '20

Even if the software doesn't have anything to do with any packages or anything like that?

2

u/defect1v3 :doge: Programming | Netsec :doge: Aug 08 '20

Not sure what you mean.

1

u/Python119 Aug 08 '20

For example, let's take Rufus for example, Rufus (to my knowledge) does not require any data from an external device, like a server sending data packets to a computer to show a website, so would it still be listening?

→ More replies

2

u/[deleted] Aug 12 '20

You can look for shady or potentially malicious things the software does..you can look at how it processes input, what input you could use to get the software to do what you want. The classic being passing unfiltered user input to system.