RE: https://infosec.exchange/@barubary/117325805790577318 The Electron ASAR form...
Oriel Jutty :hhHHHAAAH: @barubary@infosec.exchange
RE: https://infosec.exchange/@barubary/117325805790577318
The Electron ASAR format is clownshoes, part 3.
Each member of the archive is identified by a list of strings (the names of directory entries visited on the path from the archive root down to the member in question). Symbolic links in the archive have a target field that is just a string. But: There is no formal mapping defined between strings (what links point to) and lists of strings (how files are actually named).
So if you want to know what (if anything) any given link points to, well ... who knows? 🤷
For example, let's say you have a file "hello.jpg" in subdirectory "bar" in directory "foo" in archive "mtfnpy.asar". That archive member is labeled by a list of strings: ["foo", "bar", "hello.jpg"].
Now let's say you have some links in directory "foo", ["foo", "link_1"] pointing to ../foo\bar/hello.jpg and ["foo", "link_2"] pointing to bar\.././bar\hello.jpg. Do these links point to the same file? Does the answer change if the archive also contains directories named foo\bar (easy to create on Linux) or .. (a bit harder)? I have no idea.