WestleBittle on Nostr: Nothing that is nearly as secure: From their github description: Simple Android PDF ...
Nothing that is nearly as secure:
From their github description:
https://github.com/GrapheneOS/PdfViewer/releasesSimple Android PDF viewer based on pdf.js and content providers. The app doesn't require any permissions. The PDF stream is fed into the sandboxed WebView without giving it access to content or files. Content-Security-Policy is used to enforce that the JavaScript and styling properties within the WebView are entirely static content from the apk assets. It reuses the hardened Chromium rendering stack while only exposing a tiny subset of the attack surface compared to actual web content. The PDF rendering code itself is memory safe with dynamic code evaluation disabled, and even if an attacker did gain code execution by exploiting the underlying web rendering engine, they're within the Chromium renderer sandbox with no access to the network (unlike a browser), files, or other content.
Published at
2024-07-31 03:03:42Event JSON
{
"id": "8447bd7bb3ba2265983369a60cbe29e59b33da1bdfae3b500e15ff84b7d6da6e",
"pubkey": "4ef1360d3eb2752e041f933b273a104b37f1e5a18dd3dd23c8df664420434605",
"created_at": 1722395022,
"kind": 1,
"tags": [
[
"e",
"f6c12e0265e8e625fcf364dd7919d95f550143eccbd00902b30af552d16e65d5",
"",
"root"
],
[
"p",
"eda96cb93aecdd61ade0c1f9d2bfdf95a7e76cf1ca89820c38e6e4cea55c0c05"
],
[
"r",
"https://github.com/GrapheneOS/PdfViewer/releases"
],
[
"r",
"pdf.js"
]
],
"content": "Nothing that is nearly as secure:\n\nFrom their github description:\nhttps://github.com/GrapheneOS/PdfViewer/releases\n\nSimple Android PDF viewer based on pdf.js and content providers. The app doesn't require any permissions. The PDF stream is fed into the sandboxed WebView without giving it access to content or files. Content-Security-Policy is used to enforce that the JavaScript and styling properties within the WebView are entirely static content from the apk assets. It reuses the hardened Chromium rendering stack while only exposing a tiny subset of the attack surface compared to actual web content. The PDF rendering code itself is memory safe with dynamic code evaluation disabled, and even if an attacker did gain code execution by exploiting the underlying web rendering engine, they're within the Chromium renderer sandbox with no access to the network (unlike a browser), files, or other content.",
"sig": "c3ede6f2f08e5597a58fd0d33c816c620b1200b04ddb03dedbec330ecb778ca19752cb06a0efc6f34f6c73c7c41db0a8cf49ffcbe788f233443674d98a156f25"
}