Hacker News new | ask | show | jobs
by dwattttt 7 days ago
Are you suggesting the existence of exploits outside of the definition of "attacker controlled"?

If not, and all exploits are attacker controlled, it sounds like all exploits are RCE.

EDIT I guess I have to weaken the last condition since we haven't proved all exploits are "code execution", but we have at least proved all exploits are "remote".

1 comments

The implication you're missing is remote execution of [ arbitrary and attacker provided ] code. An example of an exploit that doesn't qualify as RCE is a web server providing read only access to files it should not.

For example, if an attacker can remotely trigger only a specific preexisting program (perhaps sudo rm -rf /) and if the attacker is unable to directly escalate from that to full blown arbitrary code execution then that vulnerability would also not qualify as RCE.

In the gnupg case, if an email can contain arbitrary code that gets executed on the target system then you have RCE.

And if I leave a USB with a malicious executable in a parking lot, and someone runs it, it sounds like I'll have a remote code execution vulnerability too. Sounds like a very low bar, I guess RCE must be a basic, "everything gets this marker" thing.
Well, yes? That is a long established and very well known social engineering attack that indeed results in RCE pretty much by definition unless various technical countermeasures have been put in place by IT. This is precisely why USB (and most other) ports are physically removed in sensitive environments and why any competent operation will usually have a cryptographically based whitelisting approach when it comes to executing binaries and scripts.

The bar is simply "an attacker is able to cause the execution of arbitrary code without being physically present". I'm not clear what it is that you find so bothersome about this exceptionally straightforward criteria.

You're calling "trick someone into running an executable" an RCE? I can work with this definition, but like I said, it makes this a very low bar, very valueless definition. Everything is RCE. Which is why it's hard to answer my question "what _isn't_ RCE".
If your threat model includes an employee being tricked into running an arbitrary executable then yes that's RCE. If that's not part of your threat model then it doesn't constitute an RCE vector for you.

How common or uncommon a particular class of exploit is has absolutely no bearing on such criteria - these things are entirely functional in nature. The value of such definitions is in clearly delineating different concepts relevant to threat modeling. When an attacker has pwned you and is executing arbitrary code on your system are you going to object that "well ahckchually what you did doesn't qualify by my personal definition because ..."? Or perhaps you'll belittle them for using what you see as a pedestrian attack vector?

> Everything is RCE. Which is why it's hard to answer my question "what _isn't_ RCE".

You're intentionally being obtuse. I already provided examples. An SQL injection for example does not (at least typically) lead to RCE.

> You're intentionally being obtuse. I already provided examples. An SQL injection for example does not (at least typically) lead to RCE.

You've described something that's not "code execution", and I've agreed several times. I'm making fun of the fact that a "local privilege escalation" is turned into a "remote" attack if it's emailed and run/executed/parsed, much like an email signature.

The problem with that analogy is that it's not a vulnerability, that's how running executables from a USB stick works. No one expects importing a GPG public key to execute untrusted code.