Dev.to Security 🔐 Cybersecurity 👁 0 📖 5 min read

How to prove a web app doesn't upload your files

Every "free online PDF tool" asks you to upload. If the document is a contract, an ID scan or a medical record, that upload is a risk you cannot audit — and it happens before you can see anything. So the privacy claim is

How to prove a web app doesn't upload your files

Every "free online PDF tool" asks you to upload. If the document is a contract, an ID scan or a medical record, that upload is a risk you cannot audit — and it happens before you can see anything. So the privacy claim is everywhere and nobody can check it.

It is checkable. Not by reading a privacy policy, but by watching what the browser actually sends. Below is the test I use, the two ways that test can be fooled, and the results of running it on a tool I built that claims to pass.

Verifiable privacy is three properties, not a badge

A privacy claim you can check reduces to three things:

  1. No request carries the file. Not the URL, not the body, not a WebSocket frame.
  2. The tool still works with the network off. If processing needs a server, cutting the connection kills it.
  3. You can read the code that does the work. "Trust us" and "read the function" are different products.

Each one is falsifiable in under five minutes. Together they are much harder to fake than a logo.

The test

Open the tool you want to check, then open DevTools (F12 → Network).

  • Tick Preserve log (otherwise navigating inside the app wipes the evidence).
  • Keep All selected. Filters hide exactly the request you are looking for.
  • Clear the panel, then do the operation: drop in your file, run the tool, download the result.
  • Now search the requests, not the UI. Open every POST, PUT and PATCH and look at Request Payload.

What a file upload looks like, concretely:

  • a body starting with %PDF- (a PDF's magic bytes) or \x89PNG
  • a multipart/form-data body whose size is roughly your file's size
  • a JSON body containing a long base64 string
  • a WebSocket frame — the Network panel shows these too, and they are the easiest place to hide an upload

Then the second test, which no server-side tool can pass: Network → Offline, and run the operation again. If it completes and gives you a file, the processing happened in your tab.

Two things that look like uploads but usually are not:

  • Analytics beacons. A POST to google-analytics.com/g/collect or cloudflareinsights.com/cdn-cgi/rum with an empty body — those parameters live in the query string, and they should be a page name, an event name, and a device class. Check the values; a size bucket like <10mb is not your document.
  • Chunked reads of the app itself. Extra requests right after the tool starts are usually lazy-loaded code (a WASM codec, PDF.js), not your file going out. Look at what is being sent, not how many requests there are.

A real measurement

I ran the test on MusePDF's merge tool: two 8-page PDFs, 11,877 bytes each, merged into one file. Window 1440×1000, Chrome, DevTools open the whole time.

Two PDFs queued in the merge tool, with the page counts read locally

The full list of requests made from the moment the page loaded to the moment the result was produced:

Where Requests What it is
musepdf.app 21 the app's own JS/CSS/font chunks — 407 KB total, the largest single file 161 KB
googletagmanager.com 1 gtag.js, the analytics loader — 0 request bytes recorded
google-analytics.com 7 page view + tool events, sent as beacons
static.cloudflareinsights.com 1 Cloudflare's RUM beacon script

Requests whose body contained the document: zero. The only two outbound writes:

Request Method Body size
google-analytics.com/g/collect POST 0 bytes — all parameters in the query string
cloudflareinsights.com/cdn-cgi/rum POST 829 bytes — page metrics

Input was 23,754 bytes. The largest thing that left the browser was 829 bytes of measurement data. The analytics events carry tool_slug=merge, size_bucket=<10mb, output_kb=22, seconds=2 — a bucket, not a file.

The same merge finishing with the network emulated offline

Then I set DevTools to Offline and ran the merge again. It succeeded — navigator.onLine was false the whole time. The browser attempted the analytics beacons and they failed silently; the PDF was still merged, because the merge never needed a network.

That is the whole argument: not "we promise", but "here is the request log, and here is the same operation with no network at all".

Why most tools cannot pass this

It is not laziness. It is architecture. The heavy PDF operations historically live in native libraries:

  • PDF rendering and text extraction — fine in the browser (PDF.js does it).
  • Structural work — merge, split, rotate, page numbers, metadata — also fine (pdf-lib).
  • Codecs for input formats — HEIC, TIFF, WebP, BMP — fine as WASM.
  • Ghostscript-grade compression, Office→PDF conversion, OCR on scanned pages, and anything that touches a large model — these are the ones that push a company to a server, and once there is a server, the upload is free to add.

So the test above is not a design opinion. It is a filter: it tells you which tools are client-side by construction and which ones only say so.

How 60 tools fit in a tab

For the record, since "all client-side" raises the obvious size question — the app never loads everything at once:

  • pdf-lib for document structure (merge, split, rotate, pages, metadata, forms).
  • PDF.js for rendering and text extraction (page previews, PDF→text, PDF→Markdown foundations).
  • WASM codecs for image formats the browser cannot decode natively.
  • Every tool is its own lazy chunk. The merge page pulled 21 files and 407 KB; a page you never open costs nothing.

The honest limits, because they are the questions you should ask next:

  • It does not rewrite text inside an existing PDF. It annotates, redacts, signs, fills forms, and adds page furniture — that is a different problem from editing a text run.
  • Very large files are bounded by your machine's memory, not by an upload limit. That is a different failure mode, not a free win.
  • Anything genuinely cloud-only (OCR of bad scans, translation, asking questions of a document) is labelled and metered when it exists, and it is the one place an upload is real.

Run it yourself

The checklist above is five minutes. If a tool survives it — no file in any body, works offline, source readable — you have something you can actually rely on. If it does not, you have learned that before you dropped a contract into it, which is the point.

  • Test my claim: musepdf.app — if you find an upload, open an issue and I will fix it or correct this post.
  • Read the code: github.com/pwj19960112/musepdf-core — the 60 core tools, Apache-2.0.
  • The 15 advanced tools (editor workbench, OCR, comparison, Bates numbering) are not in that repo; that is how the project is funded. The 60 in it have no strings.

The repository is a derivative of BentoPDF (also Apache-2.0), and NOTICE lists the attribution and the modified files.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.