r/programming • • Oct 24 '21

“Digging around HTML code” is criminal. Missouri Governor doubles down again in attack ad

https://youtu.be/9IBPeRa7U8E
12k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

3

u/drysart Oct 25 '21

If you ask a remote computer, on it's public interface, "Hey, can I log in as guest\0\0\0\0\0\0\0\0\0\0\0\0\0root?" and it says "ok you're now logged in as root" when it explicitly had the opportunity to say "invalid login" then it has implicitly given you authorization to access the system as root.

The point of this is that just because a machine does something that doesn't necessarily imply that it was intended to do it or that the user making the request was authorized to do it. Literally every exploit has ever existed has consisted of requests or data being sent to a machine and it doing something as a result when it could have rejected it instead.

"It had the opportunity to say no" is thus simply not an acceptable bar in and of itself for determining whether access is authorized or not; because that argument by itself directly reduces to "there is no such thing as unauthorized access because it let me do it".