Lucene search

K
hackeroneMarshallofsoundH1:2271095
HistoryDec 04, 2023 - 6:02 a.m.

Internet Bug Bounty: ASAR Integrity bypass via filetype confusion

2023-12-0406:02:02
marshallofsound
hackerone.com
$2540
10
bug bounty
asar
integrity bypass
macos
electron
file access

6.8 Medium

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

19.7%

Maliciously crafted directories mirroring an ASAR file structure could be used to trick apps with ASAR integrity enabled into loading non-validated code.

Impact

This only impacts apps that have the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to macOS as these fuses are only currently supported on macOS.

Specifically this issue can only be exploited if your app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the .app bundle on macOS which these fuses are supposed to protect against.

There are no app side workarounds, you must update to a patched version of Electron.

Fixed Versions

  • 27.0.0-alpha.7
  • 26.2.1
  • 25.8.1
  • 24.8.3
  • 22.3.24

6.8 Medium

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

19.7%