This MacOS (APFS?) quirk was mentioned at the pub last night, and I still cannot believe this actually works when I tried it myself
domi@donotsta.re
replied 27 Nov 2025 11:04 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo i joked about this 2 or so years ago (outside the normalization context), i can’t believe this is actually real
slopsec@miruku.cafe
replied 27 Nov 2025 11:31 +0000
in reply to: https://donotsta.re/objects/68476aef-0957-4f5b-95be-49cb2d4111a6
domi@donotsta.re
replied 27 Nov 2025 11:35 +0000
in reply to: https://miruku.cafe/notes/afkx3x06od
lanodan@queer.hackti..
replied 27 Nov 2025 11:36 +0000
in reply to: https://donotsta.re/objects/68476aef-0957-4f5b-95be-49cb2d4111a6
lanodan@queer.hackti..
replied 27 Nov 2025 11:42 +0000
in reply to: https://queer.hacktivis.me/objects/73796bbf-2247-4440-9642-49c3f4d471f0
ignaloidas@not.acu.l..
replied 27 Nov 2025 13:48 +0000
in reply to: https://queer.hacktivis.me/objects/b9657b14-00aa-4aca-b817-bfad777653b5
@lanodan@queer.hacktivis.me @domi@donotsta.re @benjojo@benjojo.co.uk this is not normalization though, this is collation. And collation is (almost always) locale dependent.
domi@donotsta.re
replied 27 Nov 2025 11:38 +0000
in reply to: https://queer.hacktivis.me/objects/73796bbf-2247-4440-9642-49c3f4d471f0
domi@donotsta.re
replied 27 Nov 2025 11:39 +0000
in reply to: https://donotsta.re/objects/743c6e0b-4842-4201-b948-d171804cd835
Erased_Citizen@cupof..
replied 27 Nov 2025 11:06 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
meph@social.treehous..
replied 27 Nov 2025 11:07 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo what the hell! I saw someone else posting about this a few days ago and I thought it was a joke!!!
slink@fosstodon.org
replied 27 Nov 2025 11:16 +0000
in reply to: https://social.treehouse.systems/users/meph/statuses/115621339831441624
hisold@toot.io
replied 27 Nov 2025 11:14 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
liebach@mastodon.art
replied 27 Nov 2025 11:16 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
silhouette@dumbfucki..
replied 27 Nov 2025 11:16 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
dougall@mastodon.soc..
replied 27 Nov 2025 11:18 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
dentaku@fnordon.de
replied 27 Nov 2025 11:25 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
snowfox@tech.lgbt
replied 27 Nov 2025 12:45 +0000
in reply to: https://fnordon.de/users/dentaku/statuses/115621411618946731
@dentaku @benjojo In my testing, ß=ss only works on case-insensitive APFS (not HFS+), I assume because ß case-folds to "ss": https://tech.lgbt/@snowfox/115488236610258352 (I should try again with dotless/dotted i.)
manawyrm@chaos.socia..
replied 27 Nov 2025 11:34 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
weizenspreu@chaos.so..
replied 27 Nov 2025 11:45 +0000
in reply to: https://chaos.social/users/manawyrm/statuses/115621445368754827
yngmar@social.tchncs..
replied 27 Nov 2025 11:38 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo Nice one. I can absolutely see how that happened. Human interface folks: "Filenames are text and should behave like text" Unix folks: 😬

mia@shrimptest.0x0.s..
replied 27 Nov 2025 11:38 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
ol0ck@social.hackers..
replied 27 Nov 2025 11:45 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo
as for funny macos trivia, macos has a malloc zone called `MALLOC_NANO`, which was *always* mapped at 0x600000000000. I can see that it is still mapped into some processes, though I can't reproduce allocations into it with my previous PoCs, but IIRC, this zone used to be malloc()'s default zone for some cases.
ol0ck@social.hackers..
replied 27 Nov 2025 11:45 +0000
in reply to: https://social.hackerspace.pl/users/ol0ck/statuses/115621490942979712
@benjojo
This was discovered by an even funnier situation in which somebody allocated some memory during programs compiletime and outputted address of the dynamically allocated memory into a constant in the compiled program, then during runtime dereferenced this address and, to their surprise, nothing happened.
quietbear@tech.lgbt
replied 27 Nov 2025 12:08 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
dtemme@hachyderm.io
replied 27 Nov 2025 12:21 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
issotm@social.treeho..
replied 27 Nov 2025 12:25 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo Friend of mine saw this, first thing he said is "this has to be exploitable". ... 😭 of course this has to bypass something's path sanitisation
issotm@social.treeho..
replied 27 Nov 2025 12:27 +0000
in reply to: https://social.treehouse.systems/users/issotm/statuses/115621645731730437
metaphil@chaos.socia..
replied 27 Nov 2025 12:27 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
Joe_von_Saporski@bun..
replied 27 Nov 2025 18:15 +0000
in reply to: https://chaos.social/users/metaphil/statuses/115621653466369544
krono@toot.berlin
replied 27 Nov 2025 12:31 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo Yeah, a few weeks ago my fedi-bubble noticed that too:
https://toot.berlin/@krono/115484271882289019
darkphoenix@not.an.e..
replied 27 Nov 2025 12:35 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
raganwald@social.bau..
replied 27 Nov 2025 12:35 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
kdawson@tldr.nettime..
replied 27 Nov 2025 12:37 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
snornik@techhub.soci..
replied 27 Nov 2025 12:56 +0000
in reply to: https://tldr.nettime.org/users/kdawson/statuses/115621696515279470
benjojo
replied 27 Nov 2025 12:59 +0000
in reply to: https://techhub.social/users/snornik/statuses/115621769247158041
snornik@techhub.soci..
replied 27 Nov 2025 13:07 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/569rk8J21tM1H5bQ9t
Damn that i dont have any mac system. Now i got curious if you could use äöü also to bypass filters, intrusion detection etc. if you replace ae, oe, ue in other commands with the Umlauts.
mirabilos@toot.mirbs..
replied 27 Nov 2025 18:29 +0000
in reply to: https://techhub.social/users/snornik/statuses/115621769247158041
@cstross @snornik @benjojo @kdawson it’s a quirk of OSX: it uses NFD for UTF-8, and ß canonically decomposes into ss, and pathname accesses on HFS+ and the likes are checked against the decomposed pathname. Now I’d be interested in whether it also does that for NFS and/or for say ext2fs and FAT if it can mount them (then the NFD happens at VFS layer) or just for its own filesystems.
dgelessus@mastodon.s..
replied 27 Nov 2025 19:13 +0000
in reply to: https://toot.mirbsd.org/users/mirabilos/statuses/01KB397VTT3628FRHFTEAQ5H71
@mirabilos @cstross @snornik @benjojo @kdawson It's actually because of case insensitivity, not because of Unicode normalization. All normalization forms map ß to itself, but case folding changes ß to ss. macOS allows formatting partitions as case-sensitive HFS+/APFS, so this should be a file system thing, not a limitation in the OS itself.
patpro@social.patpro..
replied 27 Nov 2025 12:49 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
animaux@oslo.town
replied 27 Nov 2025 13:01 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
kDelta@mastodon.ie
replied 27 Nov 2025 17:26 +0000
in reply to: https://kolektiva.social/users/JizzelEtBass/statuses/115621802368812134
@JizzelEtBass @benjojo Yes… is I think the answer to your question, it’s your questions wording I’m a little confused about 🤭 https://en.wikipedia.org/wiki/NeXTSTEP
sigmasternchen@comfy..
replied 27 Nov 2025 13:08 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
holgersson@maly.io
replied 27 Nov 2025 13:14 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
christopherkunz@chao..
replied 27 Nov 2025 13:14 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
stefan@akko.lightnov..
replied 27 Nov 2025 13:28 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
TabascoEye@chaos.soc..
replied 27 Nov 2025 13:30 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
Moss_the_TeXie@rhein..
replied 27 Nov 2025 14:01 +0000
in reply to: https://chaos.social/users/TabascoEye/statuses/115621902788261213
benjojo
replied 27 Nov 2025 14:03 +0000
in reply to: https://rheinneckar.social/users/Moss_the_TeXie/statuses/115622024564233590
raganwald@social.bau..
replied 27 Nov 2025 15:01 +0000
in reply to: https://23.social/users/wetter/statuses/115622108449175133
@wetter @TabascoEye @benjojo > Although nowadays substituted correctly only by ss, the letter actually originates from two distinct ligatures (depending on word and spelling rules): long s with round s ("ſs") and long s with (round) z ("ſz"/"ſʒ")
dshan@mastodon.au
replied 27 Nov 2025 13:48 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo Oh dear, you found it. Be careful, that version of ssh connects you to the torment nexus host, and connecting to the torment nexus is rarely survivable.
Oskar456@mastodon.so..
replied 27 Nov 2025 14:20 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
gruener_skatbruder@m..
replied 27 Nov 2025 14:20 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
sll@pouet.chapril.or..
replied 27 Nov 2025 14:28 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
koex@chaos.social
replied 27 Nov 2025 14:50 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
niconiconi@mk.abstur..
replied 27 Nov 2025 14:55 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo@benjojo.co.uk It's said that not all macOS apps work properly if filesystem case insensitivity is turned off, otherwise I'd like to when formatting my disk.
russss@chaos.social
replied 27 Nov 2025 15:09 +0000
in reply to: https://mk.absturztau.be/notes/afl4efewydfj030r
@niconiconi @benjojo I ran a case sensitive FS for a few years when there was talk of Apple switching to case-sensitive. 99% of stuff worked fine, but the remaining 1% was a complete nightmare.
Sobex@social.science..
replied 27 Nov 2025 15:11 +0000
in reply to: https://chaos.social/users/russss/statuses/115622290930040839
@russss @niconiconi @benjojo Ohh, is there some clearer documentation about what broke and what sort of curse ?
halva@mk.absturztau...
replied 27 Nov 2025 19:01 +0000
in reply to: https://mk.absturztau.be/notes/afl4efewydfj030r
@niconiconi @benjojo@benjojo.co.uk that's because of adobe
the only reason macos still has case insensitivity and weird normalization rules like in that post on the filesystem level is because adobe absolutely refuse to fix their shit
skab@troet.cafe
replied 27 Nov 2025 15:00 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
shelldozer@oldbytes...
replied 27 Nov 2025 15:00 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
Andrev@types.pl
replied 27 Nov 2025 15:06 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
Sobex@social.science..
replied 27 Nov 2025 15:10 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo Incredible, and yet it works. touch teßt, file tesst also works :D (You can't create tesst and teßt in the same directory)
ppxl@social.tchncs.d..
replied 27 Nov 2025 15:27 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo edit: forget what I wrote See toot below Orig: for non Germans: there is no win here... ßh looks shorter than ssh but it takes more complicated keystrokes to issue it (fits the German-ness, tho): ssh = s,s,h
ßh = Alt Gr+?, h
olifantoliver@norden..
replied 27 Nov 2025 16:18 +0000
in reply to: https://social.tchncs.de/users/ppxl/statuses/115622361430923886
shimst3r@famichiki.j..
replied 27 Nov 2025 18:24 +0000
in reply to: https://norden.social/users/olifantoliver/statuses/115622564576020361
@olifantoliver @ppxl @benjojo my assumption: most people who get this don't use QWERTZ anyway (I switched to QWERTY when I started coding, I'm biased)
ppxl@social.tchncs.d..
replied 27 Nov 2025 20:28 +0000
in reply to: https://norden.social/users/olifantoliver/statuses/115622564576020361
zkat@toot.cat
replied 27 Nov 2025 15:33 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
julia@eepy.moe
replied 27 Nov 2025 17:16 +0000
in reply to: https://toot.cat/users/zkat/statuses/115622386009912972
zkat@toot.cat
replied 27 Nov 2025 17:22 +0000
in reply to: https://eepy.moe/notes/afl9epu4pw8d0yct
julia@eepy.moe
replied 27 Nov 2025 17:24 +0000
in reply to: https://toot.cat/users/zkat/statuses/115622815588383303
@zkat@toot.cat @benjojo@benjojo.co.uk uhhhh I'm pretty sure this is at the filesystem level, so eexist would be thrown
zkat@toot.cat
replied 27 Nov 2025 17:26 +0000
in reply to: https://eepy.moe/notes/afl9pxsypw8d0yd3
Xyla@transfem.social
replied 27 Nov 2025 18:27 +0000
in reply to: https://eepy.moe/notes/afl9epu4pw8d0yct
@zkat@toot.cat @benjojo@benjojo.co.uk @julia@eepy.moe while not a vulnerability per se, I can see how this can be misused by threat actors depending on how a companies EDR solution handles the detection of ssh usage.
zkat@toot.cat
replied 27 Nov 2025 19:19 +0000
in reply to: https://transfem.social/notes/aflbxxzaejez0f0l
tisha@htt.social
replied 27 Nov 2025 15:36 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
NafiTheBear@snagglet..
replied 27 Nov 2025 17:03 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
luna@lunya.gay
replied 27 Nov 2025 18:55 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
groxx@hachyderm.io
replied 27 Nov 2025 19:25 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo filesystem normalization is always a monstrous mistake. normalize/collate for search and display, not storage and equality.
pecet@f3d1.eu
replied 27 Nov 2025 19:36 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
pecet@f3d1.eu
replied 27 Nov 2025 19:40 +0000
in reply to: https://f3d1.eu/users/pecet/statuses/01KB3D26EFK3YDE6VXRN1YB3Q1
pecet@f3d1.eu
replied 27 Nov 2025 19:44 +0000
in reply to: https://f3d1.eu/users/pecet/statuses/01KB3D9S9PK1A4HDA878BGGTPS
@benjojo @misty I kinda wonder now if there any other substitutions like those
Edit ok that makes a lot of sense
https://news.ycombinator.com/item?id=34502166
hyggesalpaka@alpaka...
replied 27 Nov 2025 19:53 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
heals@indiepocalypse..
replied 27 Nov 2025 20:04 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo not as quirky and exploitable as it seems - while "ß" is normalised to the equivalent "ss" macOS will still prefer any script or binary that matches the non-normalised input (/usr/local/bin is first in my path and would take precedence over /usr/bin/):
boozook@mastodon.gam..
replied 27 Nov 2025 20:20 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo it’s not APFS’s (there’s is names in unicode), but it’s by terminal emulator and shell and symbol position in the charset.
encthenet@flyovercou..
replied 27 Nov 2025 20:29 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/h4N78m1PjXYsYfzkGV
@benjojo
This is related to the fun of macos normalizing utf-8 names. Put a non-normalized utf-8 name on an NFS share, and some macos apps won't be able to find/open it. You can drag and drop it, but if you use the open command it won't work.
