You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][UPDATED TITLE] When a share URL is truncated/corrupted, the app silently falls back to the demo plan #142
My engineer clicked on the URL I shared with him in Whatsapp, but Whasapp dropped the last few characters of the link.
And it pointed him to someone else's plan that was totally unrelated to ours.
This should not be possible if properly implemented.
A link would be helpful, otherwise this really isn't possible. That site is a static site, it's just hosted through CloudFront. There's no storage of plans.
Investigated the full sharing stack — encoding pipeline, static site deployment, and truncation behavior.
Architecture (no server-side storage)
share.plannotator.ai is a pure static site (S3 + CloudFront). No backend, no database, no plan storage.
The entire plan + annotations are compressed into the URL hash fragment using deflate-raw + base64url encoding (packages/ui/utils/sharing.ts).
On load, the app reads window.location.hash, decompresses it client-side, and renders the plan. Nothing is sent to or retrieved from any server.
What happened with the truncated URL
When WhatsApp drops the last few characters of the share link, the truncated hash fails to decompress (deflate streams are not tolerant of truncation). The app's error handling path:
parseShareHash() catches the DecompressionStream error → returns null
isSharedSession stays false
App tries fetch('/api/plan') — static site returns 404
Falls back to the hardcoded demo plan (PLAN_CONTENT in packages/editor/App.tsx:37-328)
Not a security vulnerability — no one can see another user's plan. Plans exist only in the URL itself and are never stored server-side.
It is a UX bug — when a share URL is truncated/corrupted, the app silently falls back to the demo plan instead of showing an error message. This reasonably led to the assumption that another user's plan was being displayed.
Recommendation
Show an error state when a hash is present but fails to decompress, e.g. "This share link appears to be incomplete or corrupted. Ask the sender to re-share the full URL."
changed the title [-]Major Security Vulnerability: share.plannonator.ai URLs can be easily changed to point to other people's plans[/-][+][BUG][UPDATED TITLE] When a share URL is truncated/corrupted, the app silently falls back to the demo plan[/+]on Feb 11, 2026
Tangentially related: PR #146 adds the ability to self-host the share portal via PLANNOTATOR_SHARE_URL. For anyone with formal security concerns about share links pointing to an external domain, you can now host the portal on your own infrastructure and have all generated links point there.
To be clear (as noted in the original investigation above): the hosted portal at share.plannotator.ai is a static SPA with no backend — plan data is never stored or transmitted anywhere. It lives entirely in the URL hash and is decoded client-side. But for environments where even pointing at an external domain is a policy concern, self-hosting is now an option.
Hey Michael
Thanks for the quick response and yes all good. Just realized any
truncation of the long uuid points to this default plan you have about
websockets. Maybe that should point to something else like “this is a demo
plan”? It definitely freaked us out.
Also just wanna say I LOVE plannonator and am so glad we can continue using
it and that you didn’t implement something that would have made no sense
lol.
On Thu, Feb 12, 2026 at 1:24 PM Michael Ramos ***@***.***> wrote:
*backnotprop* left a comment (backnotprop/plannotator#142)
<#142 (comment)>
Tangentially related: PR #146
<#146> adds the ability to
self-host the share portal via PLANNOTATOR_SHARE_URL. For anyone with
formal security concerns about share links pointing to an external domain,
you can now host the portal on your own infrastructure and have all
generated links point there.
To be clear (as noted in the original investigation above): the hosted
portal at share.plannotator.ai is a static SPA with no backend — plan
data is never stored or transmitted anywhere. It lives entirely in the URL
hash and is decoded client-side. But for environments where even pointing
at an external domain is a policy concern, self-hosting is now an option.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ3KKMXTE6FSBAMLNBZQXID4LTVQZAVCNFSM6AAAAACUZRE2UOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOJTGQ2TSNBVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Closing as resolved in the current sharing flow. Plannotator now treats failed shared-link loading as an error state and warns that the visible content is demo content, rather than silently presenting the demo as if it came from the shared link. Short-link support also reduces the risk of messenger link truncation. If a current shared link can still silently fall back to demo content with no error, please reopen with the URL shape and browser details.
Activity
backnotprop commentedon Feb 11, 2026
A link would be helpful, otherwise this really isn't possible. That site is a static site, it's just hosted through CloudFront. There's no storage of plans.
Maybe there was an error reading the base64 from your URL, and therefore it showed the default demo plan: https://share.plannotator.ai/
If you load that site by itself, there's a default/hardcoded plan that is used for demos.
backnotprop commentedon Feb 11, 2026
Investigation Report
Investigated the full sharing stack — encoding pipeline, static site deployment, and truncation behavior.
Architecture (no server-side storage)
share.plannotator.aiis a pure static site (S3 + CloudFront). No backend, no database, no plan storage.deflate-raw+ base64url encoding (packages/ui/utils/sharing.ts).window.location.hash, decompresses it client-side, and renders the plan. Nothing is sent to or retrieved from any server.What happened with the truncated URL
When WhatsApp drops the last few characters of the share link, the truncated hash fails to decompress (deflate streams are not tolerant of truncation). The app's error handling path:
parseShareHash()catches theDecompressionStreamerror → returnsnullisSharedSessionstaysfalsefetch('/api/plan')— static site returns 404PLAN_CONTENTinpackages/editor/App.tsx:37-328)The "unrelated plan" your engineer saw was the built-in demo plan — "Implementation Plan: Real-time Collaboration" with WebSockets, operational transforms, etc. It's the same content anyone sees at https://share.plannotator.ai/ with no hash.
Conclusion
Not a security vulnerability — no one can see another user's plan. Plans exist only in the URL itself and are never stored server-side.
It is a UX bug — when a share URL is truncated/corrupted, the app silently falls back to the demo plan instead of showing an error message. This reasonably led to the assumption that another user's plan was being displayed.
Recommendation
Show an error state when a hash is present but fails to decompress, e.g. "This share link appears to be incomplete or corrupted. Ask the sender to re-share the full URL."
🤖 Generated with Claude Code
[-]Major Security Vulnerability: share.plannonator.ai URLs can be easily changed to point to other people's plans[/-][+][BUG][UPDATED TITLE] When a share URL is truncated/corrupted, the app silently falls back to the demo plan[/+]backnotprop commentedon Feb 11, 2026
@uqarni ive changed the title to avoid scaring others... let me know if you disagree
backnotprop commentedon Feb 12, 2026
Tangentially related: PR #146 adds the ability to self-host the share portal via
PLANNOTATOR_SHARE_URL. For anyone with formal security concerns about share links pointing to an external domain, you can now host the portal on your own infrastructure and have all generated links point there.To be clear (as noted in the original investigation above): the hosted portal at
share.plannotator.aiis a static SPA with no backend — plan data is never stored or transmitted anywhere. It lives entirely in the URL hash and is decoded client-side. But for environments where even pointing at an external domain is a policy concern, self-hosting is now an option.uqarni commentedon Feb 12, 2026
Add short URL sharing via paste service to fix URL truncation on Slac…
Add short URL sharing via paste service to fix URL truncation (#188)
backnotprop commentedon Jun 13, 2026
Closing as resolved in the current sharing flow. Plannotator now treats failed shared-link loading as an error state and warns that the visible content is demo content, rather than silently presenting the demo as if it came from the shared link. Short-link support also reduces the risk of messenger link truncation. If a current shared link can still silently fall back to demo content with no error, please reopen with the URL shape and browser details.