Draft for review. Not yet legal advice.
On your site
W-Pencil edits content through WordPress, with WordPress's own rules:
- Same capabilities. A pencil is only drawn where the person may already edit:
edit_postfor a post and its blocks, fields and widgets,edit_theme_optionsfor menus,manage_optionsfor the site title, plus W-Pencil's ownw_pencil_use. The server checks them all again on every request. - Nonces on every write. Saves and uploads carry a WordPress nonce in the
X-CSRF-Tokenheader, checked withwp_verify_nonce(). - Filtered by WordPress. The browser is never trusted: text goes through kses with the tags the block, field or widget allows (people without
unfiltered_htmlget WordPress's post filter), and links, images and uploads go through WordPress's own checks. - All or nothing. Every item of a save is checked before anything is written, under a lock, inside one database transaction. Each save is a revision, so Revisions › Restore always works.
- Conflict checks. If someone saved first, the second save is stopped and both versions are shown. Nobody is overwritten without choosing it.
- Nothing for visitors. Visitors load no W-Pencil code, and markers are only added for people who may edit. Page caches keep serving visitors as before.
- Shadow DOM. The editor lives in a shadow root, so your theme's CSS and W-Pencil's can't reach each other.
What the plugin sends
Only counts of saves, the kind of each, when it happened and the host name the site answered on. Never content, and never editors' names or email addresses. The update check sends nothing about the site at all. The privacy policy has the details.
Connecting a site
- Your site makes its own Ed25519 key pair. Only the public half goes to w-pencil.cloud; the private half stays on your server, or in
wp-config.phpasW_PENCIL_KEYif you prefer. - Connecting uses a one-time code that works once, for 60 seconds, tied to a PKCE challenge (S256) and to the site's address. The cloud keeps only a hash of it.
- Every later request is signed: its method, path, site, time, a one-off nonce and a hash of its body. The cloud refuses requests more than five minutes off its clock, and any nonce it has already seen.
- Disconnecting, or connecting again, retires the old key at once.
Signed updates
- Every release is signed with a release key that never leaves the developer's computer. Its public half ships inside the plugin.
- The plugin offers an update only when the release's manifest carries a valid signature, and installs the zip only when its SHA-256 matches the signed one. A changed file is refused, even if it came from w-pencil.cloud.
- Updates come only from w-pencil.cloud, never from wordpress.org, so no one can publish an update under W-Pencil's name there.
The cloud
- No customer passwords. You sign in with GitHub or a code sent by email.
- Codes are hashed. We keep a keyed hash of each sign-in code, never the code. A code works once, for 15 minutes, with five tries.
- Rate limits on sign-in codes, connecting and code exchanges, per address and per IP.
- GitHub sign-in uses only your verified primary email address, and we keep no GitHub token.
- Secrets such as payment and mail keys come from the server's environment, never from the code or the site's configuration.
- Hosting: Hostinger, behind Cloudflare, over HTTPS only. Planned: the cloud isn't live yet.
- Payments never touch our servers: Paddle takes them.
Reporting a vulnerability
Please email product@w-pencil.cloud with what you found and how to reproduce it. Don't open a public issue, and give us a reasonable time to fix it before you tell others.
- We'll reply within [3 working days] and keep you posted until it's fixed.
- We won't take legal action over research done in good faith that respects people's data and stops at the proof.
- If you'd like, we'll thank you in the changelog.