Skip to content
DoS Write-up Intermediate

When a Calendar Invite Becomes Chaos: Crashing Apps Like It’s 1999

A calendar invite containing a recurrence rule that expands to a huge number of occurrences was not validated when imported via email, causing the client to exhaust memory while rendering the calendar. An attacker could send such an invite to crash the victim's calendar app across platforms, with the event persisting server-side so that reopening or reinstalling does not help.

Owais Follow

Published on medium.com

Infosec

Owais, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

The target is a privacy-focused, end-to-end encrypted communication platform with a built-in calendar. The author describes it as the kind of service people recommend when a friend asks what to use instead of Google, trusted by millions of users and business teams. The feature in question is the calendar: it accepts invitations, imports .ics files, and renders recurring events.

Recurrence in calendar data is expressed with RRULE. A daily standup is FREQ=DAILY, a weekly sync is FREQ=WEEKLY. RRULE also supports selectors such as BYHOUR, BYMINUTE and BYSECOND, which let an event repeat at specific hours, minutes and seconds. The calendar client expands the rule into concrete, drawable instances for whatever date range the user is looking at.

From the original on medium.com

Setup

The author was a long-time daily user of the platform, not an outsider running a scan. That familiarity is the whole setup: knowing the flows, knowing what gets validated where, and knowing which features feel bolted on. No special tooling, versions or accounts are described beyond ordinary use of the calendar and a mail account capable of sending an invite. The author notes that Gmail works fine as the sending side.

Finding it

The starting point was simply asking what happens if a weird invite is sent. The author was not hunting for memory corruption or a zero-day, just poking at the calendar functionality as a normal user.

The observation that made it interesting is arithmetic. If a recurrence rule selects every hour from 0 through 23, every minute from 0 through 59 and every second from 0 through 59, that is 24 × 60 × 60 = 86,400 instances per day, forever. A rendering engine that expands the rule for the visible range has to allocate an object per instance, and the visible range is typically a few weeks.

Exploitation

Step 1: send a crafted invite

The attacker sends a calendar invite containing a dense recurrence rule from any email address. The report does not include the raw .ics payload, only the description of the rule: every hour, every minute, every second, with no end date.

Step 2: the invite is auto-imported

Most calendar apps auto-import invites by default. The event appears in the victim's calendar before the victim opens the email, before accepting, before doing anything at all. This is what makes the attack effectively zero-click.

Step 3: the victim opens the calendar

When the victim opens the calendar to that month, the rendering engine expands the recurrence rule into drawable events and starts allocating memory for each instance: 86,400 per day across the visible range, which may be a few weeks. The heap fills, garbage collection runs, and it is not enough. More allocations follow, GC runs again, still not enough. The result on the device is:

Text
OutOfMemoryError: Failed to allocate ... <1% of heap free after GCProcess has died: fg TOP

The app crashes. Reopening it syncs the same event, tries to render it, and crashes again.

Step 4: persistence

The event lives server-side. Reinstalling the app does not help. Logging out and back in does not help. Because the recurrence has no end date, every future view is affected too, so the victim cannot access the calendar on mobile, on desktop or on web. The author describes this as cross-platform denial of service from a single email, and reports that their own test accounts were left in an irrecoverable state with the calendar completely inaccessible, later recovered by the team on the server side.

Root cause

The platform does validate dense recurrence rules. It checks for selectors such as BYHOUR, BYMINUTE and BYSECOND and rejects them, but only on certain code paths. Importing a .ics file directly is validated. An invite that arrives by email and is opened from within the mail app skips the check. The author's framing is a secured front door with an open garage.

Separately, the rendering engine has no upper bound on how many occurrences it will generate. It keeps going until it reaches the end of the visible date range or runs out of memory, whichever comes first. Even with the selector check in place on one path, the absence of a cap on expansion means a sufficiently dense rule can still exhaust the heap.

Impact

An attacker who can send email can deny calendar access to a user of the platform. The conditions are that the invite is auto-imported, which the author says is the default for most calendar apps, and that the victim opens the calendar. No phishing, no click, no social engineering is required beyond existing as a calendar user. The effect is persistent and cross-platform, and it survives reinstall and re-login because the event is stored server-side. The author reports the issue through the platform's bug bounty programme with full technical details, a proof of concept and suggested fixes, and states it was paid; the write-up shows the amount as $XXXX.

Fix

The report does not describe the specific change the vendor made. The two gaps it identifies point at what should be fixed: apply the BYHOUR, BYMINUTE and BYSECOND validation to every ingestion path, including invites opened from the mail app, and impose an upper bound on the number of occurrences the rendering engine will expand for a given range. The author also notes that the team recovered the affected test accounts on the server side.

Variants to test

  1. Send an invite with a dense RRULE to a different calendar product and check whether the event is auto-imported before acceptance. A positive result is the event appearing in the calendar without user action.
  2. Import the same rule as a .ics file and as an emailed invite on the same product. A positive result is one path rejecting the rule and the other accepting it, which shows the validation gap.
  3. Vary the selector combination, for example dense BYMINUTE and BYSECOND without BYHOUR, and observe whether the sanitiser catches each selector individually. A positive result is any selector that reaches the renderer.
  4. Test rules with no end date against a client that caps expansion by count rather than by date range. A positive result is a crash or a long freeze when the visible range is large.
  5. Check whether the crash survives reinstall and re-login on the target. A positive result is the calendar remaining inaccessible after both, which confirms server-side persistence.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

A security researcher who used a privacy-focused, encrypted communication app every day found a way to make its calendar stop working, permanently, for anyone who receives a single email. The trick was not a clever exploit or a piece of malicious software. It was a calendar invitation that asks to repeat an event every second of every day, forever. When the app tried to draw that event on screen, it ran out of memory and crashed. Because the invitation is stored on the company's servers, reinstalling the app or logging out did not help; the author's test accounts were later recovered by the team on the server side.

The researcher reported it through the company's bug bounty programme, which is a scheme where companies pay people for finding and reporting security problems, and was paid for the finding. The amount is not given in the write-up.

This article walks through the same story for someone who has never done security work: what the app does, what a calendar rule is, why a rule can be dangerous, and what the company should change.

The product and the feature

The target is a privacy-focused, end-to-end encrypted communication platform with a built-in calendar. "End-to-end encrypted" means messages are scrambled on the sender's device and only unscrambled on the recipient's device, so the company running the service cannot read them. The author describes it as the kind of service people recommend when a friend asks what to use instead of Google, trusted by millions of users and business teams.

The feature in question is the calendar. Like any calendar, it can accept invitations, import .ics files (a standard file format for calendar events), and display events that repeat on a schedule.

From the original on medium.com

What a recurrence rule is

A repeating event in calendar data is described by something called RRULE. Think of it as a sentence that tells the calendar when to repeat: a daily standup is FREQ=DAILY, a weekly sync is FREQ=WEEKLY. That is the everyday part.

RRULE also supports selectors such as BYHOUR, BYMINUTE and BYSECOND. These let an event repeat at specific hours, minutes and seconds. A selector is simply a filter: "repeat, but only at these hours", "only at these minutes", "only at these seconds".

When you open a calendar to a particular month, the calendar app has to turn that rule into concrete, drawable events: one box on the screen for each occurrence. This is called expanding the rule. The app does it for whatever date range you are looking at, usually a few weeks.

Setup: how the researcher got there

The author was a long-time daily user of the platform, not an outsider running an automated scan. That familiarity is the whole setup: knowing how the app flows, knowing what gets checked where, and knowing which features feel bolted on rather than carefully built. No special tooling, versions or accounts are described beyond ordinary use of the calendar and a mail account capable of sending an invite. The author notes that Gmail works fine as the sending side.

Why does this matter for a beginner? Because it shows that using a product normally, and paying attention to how it behaves, is a legitimate way to find bugs. You do not need a lab full of tools to start.

Finding it: the arithmetic that made it interesting

The starting point was simply asking what happens if a weird invite is sent. The author was not hunting for memory corruption or a zero-day (a previously unknown flaw), just poking at the calendar as a normal user.

The observation that made it interesting is arithmetic. If a recurrence rule selects every hour from 0 through 23, every minute from 0 through 59 and every second from 0 through 59, that is 24 × 60 × 60 = 86,400 instances per day, forever. A rendering engine that expands the rule for the visible range has to allocate an object per instance, and the visible range is typically a few weeks.

In plain terms: 24 hours in a day, 60 minutes in an hour, 60 seconds in a minute. Multiply them and you get 86,400 separate moments in a single day. If the calendar tries to draw a box for every one of those moments, and does it for several weeks, it is being asked to draw hundreds of thousands of boxes at once. A computer has a limited amount of working memory, called the heap, and this request exhausts it.

Exploitation, step by step

Step 1: send a crafted invite

The attacker sends a calendar invite containing a dense recurrence rule from any email address. The report does not include the raw .ics payload, only the description of the rule: every hour, every minute, every second, with no end date.

Why this step: the attacker needs nothing more than the ability to send an email. No account on the target platform, no special access, no trick to make the victim click anything.

Step 2: the invite is auto-imported

Most calendar apps auto-import invites by default. The event appears in the victim's calendar before the victim opens the email, before accepting, before doing anything at all. This is what makes the attack effectively zero-click.

"Zero-click" means the victim does not have to click anything for the attack to work. Compare it to a letter that is opened and filed for you the moment it arrives, before you even look at the envelope.

Step 3: the victim opens the calendar

When the victim opens the calendar to that month, the rendering engine expands the recurrence rule into drawable events and starts allocating memory for each instance: 86,400 per day across the visible range, which may be a few weeks. The heap fills, garbage collection runs, and it is not enough. More allocations follow, GC runs again, still not enough. The result on the device is:

Text
OutOfMemoryError: Failed to allocate ... <1% of heap free after GCProcess has died: fg TOP

Line by line, in plain words:

  • OutOfMemoryError is the name of the error the app reports when it has run out of working memory. It is like a shop assistant saying there is no more shelf space.
  • Failed to allocate ... means the app tried to reserve memory for something and could not.
  • <1% of heap free after GC means that after the automatic cleanup (garbage collection, or GC) ran, less than one per cent of the working memory was still free. Garbage collection is the process a program uses to throw away things it no longer needs; here it ran and still could not free enough.
  • Process has died: fg TOP means the app's process was killed while it was in the foreground, that is, while the user was looking at it. The operating system ended it because it could not continue.

The app crashes. Reopening it syncs the same event, tries to render it, and crashes again.

Why this step matters: the crash is not a one-off glitch. Every time the app starts, it pulls the same event from the server and tries to draw it again, so the crash repeats.

Step 4: persistence

The event lives server-side. Reinstalling the app does not help. Logging out and back in does not help. Because the recurrence has no end date, every future view is affected too, so the victim cannot access the calendar on mobile, on desktop or on web. The author describes this as cross-platform denial of service from a single email, and reports that their own test accounts were left in an irrecoverable state with the calendar completely inaccessible, later recovered by the team on the server side.

"Server-side" means the data is stored on the company's computers, not just on the victim's phone. "Denial of service" means making a service unusable for its intended users. "Cross-platform" means it happens on every kind of device: phone, desktop and web browser. The comparison is a letter that is stored in the post office rather than in your letterbox: throwing away your letterbox does not remove the letter.

Root cause: the sanitizer gap

The platform does validate dense recurrence rules. It checks for selectors such as BYHOUR, BYMINUTE and BYSECOND and rejects them, but only on certain code paths. Importing a .ics file directly is validated. An invite that arrives by email and is opened from within the mail app skips the check. The author's framing is a secured front door with an open garage.

A "code path" is simply one route through the program. The same feature can be reached in more than one way, and each way is a separate path. A "sanitizer" is a check that inspects input and rejects anything dangerous, like a security guard at a door. Here the guard stands at the front door (the .ics import) but not at the garage (the emailed invite opened inside the mail app).

Separately, the rendering engine has no upper bound on how many occurrences it will generate. It keeps going until it reaches the end of the visible date range or runs out of memory, whichever comes first. Even with the selector check in place on one path, the absence of a cap on expansion means a sufficiently dense rule can still exhaust the heap.

An "upper bound" is a maximum limit. Think of a printer that will print any number of pages you ask for, with no limit: ask for a million and it will try until it jams.

Impact: who is affected and how badly

An attacker who can send email can deny calendar access to a user of the platform. The conditions are that the invite is auto-imported, which the author says is the default for most calendar apps, and that the victim opens the calendar. No phishing, no click, no social engineering is required beyond existing as a calendar user. The effect is persistent and cross-platform, and it survives reinstall and re-login because the event is stored server-side. The author reports the issue through the platform's bug bounty programme with full technical details, a proof of concept and suggested fixes, and states it was paid; the write-up shows the amount as $XXXX.

"Phishing" is a fake message designed to trick you into clicking a link or giving away a password. "Social engineering" is manipulating a person into doing something. Here neither is needed: the victim only has to use their calendar as usual.

Fix: what should change

The report does not describe the specific change the vendor made. The two gaps it identifies point at what should be fixed: apply the BYHOUR, BYMINUTE and BYSECOND validation to every ingestion path, including invites opened from the mail app, and impose an upper bound on the number of occurrences the rendering engine will expand for a given range. The author also notes that the team recovered the affected test accounts on the server side.

"Ingestion path" means any route by which data enters the system. The lesson is that a check is only as good as its coverage: if there are three doors into a building, a guard at one door is not enough.

Variants to test

If you want to explore this kind of issue yourself, here are the same ideas the technical write-up lists, explained for a beginner:

  1. Send an invite with a dense RRULE to a different calendar product and check whether the event is auto-imported before acceptance. A positive result is the event appearing in the calendar without user action. In other words: does the other app also file the letter before you open the envelope?
  2. Import the same rule as a .ics file and as an emailed invite on the same product. A positive result is one path rejecting the rule and the other accepting it, which shows the validation gap. This is the front door versus garage test.
  3. Vary the selector combination, for example dense BYMINUTE and BYSECOND without BYHOUR, and observe whether the sanitizer catches each selector individually. A positive result is any selector that reaches the renderer. The point is to check whether the guard checks every item on the list or only some of them.
  4. Test rules with no end date against a client that caps expansion by count rather than by date range. A positive result is a crash or a long freeze when the visible range is large. This checks whether the limit is on the right thing: a limit on how many events are drawn is more useful than a limit on how far ahead you look.
  5. Check whether the crash survives reinstall and re-login on the target. A positive result is the calendar remaining inaccessible after both, which confirms server-side persistence. This tells you whether the problem is in the app on the device or in the account on the server.

Why this kind of bug still exists

There is something poetic about this. We have end-to-end encryption, zero-knowledge architecture, hardened clients and security audits, and it all falls over because of a calendar invite that says "repeat every second of every day forever". The same energy as filling someone's pager with 9999999999, or faxing a black page on loop, or flooding a network with connection requests before anyone knew what a firewall was. Some techniques just refuse to die, and sometimes the biggest platforms are still vulnerable to the oldest tricks.

For a beginner, the takeaway is not that encryption is useless. It is that security is only as strong as the least-checked path into a system, and that ordinary features, used in ordinary ways, are worth looking at closely.

Glossary

  • API: a defined way for one piece of software to talk to another, like a service counter where you make a request and get a response.
  • Bug bounty programme: a scheme where a company pays people for finding and reporting security problems in its products.
  • BYHOUR / BYMINUTE / BYSECOND: RRULE selectors that restrict a repeating event to specific hours, minutes or seconds.
  • Code path: one route through a program; the same feature can be reached by more than one route, and each is checked separately.
  • Cross-platform: affecting every kind of device, such as phone, desktop and web.
  • Denial of service: making a service unusable for its intended users.
  • End-to-end encryption: a setup where data is scrambled on the sender's device and only unscrambled on the recipient's device, so the service in between cannot read it.
  • Expanding a rule: turning a recurrence rule into concrete, drawable events for a given date range.
  • Garbage collection (GC): the automatic process a program uses to free memory it no longer needs.
  • Heap: the pool of working memory a program uses for objects it creates while running.
  • .ics file: a standard file format for calendar events and invitations.
  • Ingestion path: any route by which data enters a system.
  • Memory corruption: a class of bug where a program writes to memory it should not, often leading to crashes or worse.
  • OutOfMemoryError: the error a program reports when it cannot reserve more working memory.
  • Phishing: a fake message designed to trick you into clicking a link or giving away information.
  • Persistence: the property of a problem that survives restarting, reinstalling or logging out, usually because the cause is stored on a server.
  • Rendering engine: the part of an app that draws events and other content on screen.
  • RRULE: the part of calendar data that describes how an event repeats.
  • Sanitizer: a check that inspects input and rejects anything dangerous.
  • Selector: a filter inside an RRULE that narrows when an event repeats.
  • Server-side: stored or processed on the company's computers rather than only on the user's device.
  • Social engineering: manipulating a person into doing something, rather than attacking the technology directly.
  • Upper bound: a maximum limit.
  • Zero-click: an attack that works without the victim clicking anything.
  • Zero-day: a previously unknown flaw with no fix available at the time it is found.
  • Zero-knowledge architecture: a design where the service provider cannot see the user's data even in principle.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.