Re:Writing "/etc/hosts" breaks the Substack editor
by kreddor on Friday April 25, 2025 @02:42PM
(#43797167)
I remember back in the old days on the Eve Online forums when the word cockpit would always turn up as "c***pit". I was quite amused by that.
[ Parent
| on HN ]
Re:Writing "/etc/hosts" breaks the Substack editor
by Too on Saturday April 26, 2025 @02:20AM
(#43801362)
This is actually a better solution, replacing dangerous words with placeholders, instead of blocking the whole payload. That at least gives the user some indication of what is going on. Not that I'm for any such WAF filters in the first place, just if having to choose between the lesser of two evils I'd choose the more informative.
Re:Writing "/etc/hosts" breaks the Substack editor
by Matumio on Saturday April 26, 2025 @07:55AM
(#43802798)
Not so sure. Imagine you have a base64 encoded payload and it just happens to encode the forbidden word. Good luck debugging that, if the payload only gets silently modified.
I suddenly understand why it makes sense to integrity-check a payload that is already protected by all three of TLS, TCP checksum and CRC.
Re:Writing "/etc/hosts" breaks the Substack editor
by Too on Sunday April 27, 2025 @12:34AM
(#43809454)
Good point, i take take that back. Having payload mutated would indeed be even more scary. Even more so if it actually contains real queries, imagine what could happen if /etc/hosts becomes /etc/*.