RE: https://infosec.exchange/@barubary/117258063411390909 The Electron ASAR form...

@barubary@infosec.exchange

RE: infosec.exchange/@barubary/117

The Electron ASAR format is clownshoes, part 2.

The JSON index stores the archive structure in a tree. Every node in the tree is a JSON object. There are three kinds of nodes: (plain) files, symbolic links, and directories. However, there is no type field that tells you which kind a given node is. Instead you have to play guessing games:

  • If it contains a files field, it's a directory.
  • If it contains a link field, it's a symbolic link.
  • If it contains a size field, it's a plain file.
  • If it contains neither or multiple of the above, you can get fucked.

#electron #asar