What I mean is what protocol are best to DOS something like TCP, UDP, HTTP?
-
Powerful in terms of what: impact on target, efforts needed by attacker, precision of attack, ...? And what is the target? – Steffen Ullrich Apr 27 '20 at 05:20
-
You need to clarify your question and try to narrow a bit more as Steffen mention – camp0 Apr 27 '20 at 08:42
-
DoS and DDoS are very different problems, you cannot compare them. – schroeder Apr 27 '20 at 09:04
2 Answers
You are probably referring to DoS attacks that are carried out by excessively sending out i.e. flooding some type of packets, consuming all resources of the target. From that perspective the less resources you need to use compared to the resources exhausted on the other end makes the attack more powerful. In reality, this type of DoS is the least powerful.
In the most powerful DoS attacks there must be some vulnerability that can be used for crashing or shutting down an entire software/system with a single carefully crafted packet or request. It's easy to find many such vulnerabilities by listing DoS vulnerabilities and ordering them by severity (score).
Let's take an excellent historical example:
ping -c 1 -p 2B2B2B415448290D 198.51.100.99
- The pattern
2B2B2B41544829
is the hex code equivalent of+++ATH0
ASCII string and0D
is a carriage return character. The count-c 1
is here to emphasize that a single packet can be efficient. - The target answers to this ICMP echo request with an echo reply having the same contents.
- Some modems treated the
+++
as an escape string to enter the command mode (for commands intended for the modem itself), even without the time guard interval (Time Independent Escape Sequence, TIES). This was to avoid licensing Hayes's patent. - These are Hayes command set a.k.a.
AT
commands, and theH0
hook status "hangs up the phone, ending any call in progress". The target immediately loses Internet connection.
Of course this example is not so useful today, because modems are becoming rare and the problem has been mitigated long before e.g. using different escape sequences. Critical DoS vulnerabilities like those found on the vulnerability database are also fixed on a high priority. Despite that, this is the most powerful type of DoS, as it takes the least amount of own resources having a huge/lethal impact on the target.
![](../../users/profiles/70406.webp)
- 16,100
- 5
- 50
- 55
-
by default the modem required 500 milliscseconds of "silence" either side of the +++ – Jasen Apr 27 '20 at 06:43
-
1That interval was part of the Hayes's patent, and the DoS vulnerability was caused by trying to avoid the license fees by not implementing this protective feature. – Esa Jokinen Apr 27 '20 at 07:01
-
@Esa Jokinen This is very interesting but how do you find these vulns – user13254086 Apr 27 '20 at 14:36
The most efficient DOS attack is one that requests the server to use a lot of resources, while not requiring a lot from the client
eg: ask for the middle row from a list of a billion which the server must sort first. ask for a slow computation. force the server to retrieve a very large DNS record. exploit a badly written regex - or supply your own. exploit a server bug that forces the server process to restart.
![](../../users/profiles/69152.webp)
- 834
- 5
- 8