Skip to content
Info disclosure Disclosed report Beginner CVE-2017-0895

Calendar and addressbook names disclosed (NC-SA-2017-012)

A logical error in Nextcloud Server disclosed the names of calendars and addressbooks to other logged-in users. An attacker with a valid account could learn these names, but no actual calendar or addressbook content was exposed.

juliushaertl Follow

Originally disclosed on HackerOne

Bounty$183incl. $33 bonus Low 3.5 View original
  • Triaged in under an hour
  • Fixed in 22 days
  • Paid in 2 months
  • Disclosed after 3 months

Summary by the program

#Calendar and addressbook names disclosed (NC-SA-2017-012)

Risk level: Low CVSS v3 Base Score: 3.5 (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N) CWE: Information Exposure Through Directory Listing (CWE-548)

#Description A logical error caused disclosure of calendar and addressbook names to other logged-in users. Note that no actual content of the calendar and adressbook has been disclosed.

#Affected Software

  • Nextcloud Server < 11.0.2 (CVE-2017-0895)
  • Nextcloud Server < 10.0.4 (CVE-2017-0895)

#Action Taken The error has been fixed and regression tests been added.

#Acknowledgements The Nextcloud team thanks the following people for their research and responsible disclosure of the above advisory:

The original report as published on HackerOne, by juliushaertl. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

This is a low-risk information disclosure in Nextcloud Server, published as advisory NC-SA-2017-012 and tracked as CVE-2017-0895. The affected versions are Nextcloud Server before 11.0.2 and before 10.0.4. The CVSS v3 base score is 3.5, with the vector AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N, and the weakness is classified as Information Exposure Through Directory Listing (CWE-548). The researcher credited with discovery and disclosure is Julius Härtl, and the report records a bounty of 183.00 USD.

The affected feature is calendars and addressbooks. According to the advisory, a logical error caused the names of calendars and addressbooks to be disclosed to other logged-in users. The report is explicit about the limit of the exposure: no actual content of the calendar or addressbook was disclosed. Only the names leaked.

The report does not describe the request that triggered the disclosure, the endpoint involved, or the exact response that carried the names. It states the outcome rather than the reproduction path. What it does give is the fix: the error was corrected and regression tests were added.

The CVSS vector is worth reading closely, because it frames the severity. The attack is network-reachable (AV:N) and needs no special conditions (AC:L), but it requires the attacker to be authenticated with low privileges (PR:L) and requires user interaction (UI:R). Confidentiality impact is low (C:L), and there is no integrity or availability impact. That matches the description: calendar and addressbook names were disclosed to other logged-in users, nothing more.

Root cause

The advisory attributes the bug to a logical error, not to a memory-safety flaw or an injection. The report does not describe the code path behind the logical error. The CWE chosen is Information Exposure Through Directory Listing (CWE-548).

Impact

The impact is limited to metadata. Other logged-in users could learn the names of calendars and addressbooks. Names can still be sensitive: they may reveal projects, clients, personal routines or the existence of shared resources. But the report is clear that no actual content of the calendar or addressbook was exposed, and the CVSS confidentiality rating of low reflects that. There is no path here to modifying or deleting anything.

How this kind of bug works

Many applications model user data as a tree: an account owns collections, and each collection owns items. Authorisation is often enforced when an item is fetched by identifier, but listing endpoints are a separate code path and are easy to forget. A listing handler may query all collections visible to the application, or all collections matching a filter, and then serialise them without checking ownership or sharing rights per row. The result is that a user sees names, identifiers or counts for objects they cannot open.

The same pattern appears whenever metadata is treated as less sensitive than content. Display names, titles, folder names, tags and share recipients are all metadata, and all of them can leak. Directory listing exposure is the classic form: a web server or API returns an index of files or records because no per-entry authorisation check sits between the storage query and the response.

Defences are straightforward in principle. Authorisation must be enforced at the level of each returned object, not only at the level of the endpoint. Queries should be scoped to the requesting principal, for example by joining against ownership and share tables, rather than filtered after retrieval. Responses should be built from an allowlist of fields so that internal metadata does not ride along. Regression tests should assert that a second user's listing does not contain the first user's objects.

How to test for it

  1. Create two accounts on the target, one victim and one attacker, both with ordinary privileges.
  2. As the victim, create a small number of collections with distinctive, searchable names: calendars, addressbooks, folders, projects, saved searches, whatever the feature offers.
  3. As the attacker, exercise every listing and search surface the feature exposes: the main index, autocomplete and typeahead endpoints, share dialogs, export and sync endpoints, and any API that returns counts or summaries.
  4. Compare what the attacker receives against what the victim created. A positive result is the victim's distinctive names appearing in the attacker's response, in any field, even without content.
  5. Repeat with the attacker's own collections absent, so you can be sure the names are not coming from a shared or public default.

Common false positives are worth ruling out before reporting. Names may appear because the victim deliberately shared the collection with the attacker, because the collection is public by design, or because an administrator account legitimately sees everything. Test with fresh accounts and no sharing configured. Also check whether the name is echoed from a value the attacker supplied, which would be a different bug. Finally, confirm the leak is server-side and not a caching artefact by repeating the request in a clean session.

How it is fixed

The advisory states only that the error was fixed and regression tests were added. Where sharing exists, the query must include only objects owned by or shared with the caller. Responses should be trimmed to the fields the caller is entitled to see. The advisory states that the error was fixed and regression tests were added.

Hunting notes

This class of bug hides in secondary surfaces rather than primary ones. Look at autocomplete endpoints, share target pickers, dashboard widgets, activity feeds, notification payloads, sync APIs and anything that returns a list for a picker. These endpoints often predate the main authorisation model and were written to be fast rather than strict.

Recon signals include APIs that accept a user or account parameter, endpoints that return arrays of objects with names but no identifiers, and features that aggregate data across users, such as global search or recent-items lists. If a response contains a name the attacker never created, that is the thread to pull.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Nextcloud is a self-hosted service for keeping calendars and addressbooks, the digital equivalent of a paper diary and a contacts book. Each user has an account and, inside it, one or more calendars and addressbooks. This report is about a bug in that calendar and addressbook feature.

The bug was a logical error: a mistake in how the program decides who may see what, rather than a crash or a broken file. Because of it, the names of calendars and addressbooks could be seen by other logged-in users. The report is careful to say what did not leak: no actual content of any calendar or addressbook was disclosed. Only the names.

Think of a shared office: everyone has a labelled drawer in a cabinet. The bug let you read the labels on other people's drawers, but not open them.

The issue was published as security advisory NC-SA-2017-012 and tracked as CVE-2017-0895. The affected versions are Nextcloud Server before 11.0.2 and before 10.0.4. The researcher credited with finding and disclosing it is Julius Härtl, and the report records a bounty of 183.00 USD.

How serious it is

The severity is rated low, with a CVSS v3 base score of 3.5. CVSS is a standard scoring system: it turns the characteristics of a bug into a number, so teams can compare issues. The vector string spells out those characteristics:

Text
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N

Read piece by piece:

  • AV:N (Attack Vector: Network): the attacker reaches the service over the network, not by sitting at the machine.
  • AC:L (Attack Complexity: Low): no special conditions or lucky timing are needed.
  • PR:L (Privileges Required: Low): the attacker must be logged in, but only as an ordinary user.
  • UI:R (User Interaction: Required): some action by a person is needed for the leak to happen.
  • S:U (Scope: Unchanged): the bug stays within the same security boundary.
  • C:L (Confidentiality: Low): some information is exposed, but a limited amount.
  • I:N and A:N (Integrity and Availability: None): nothing can be changed or taken offline.

The weakness is classified as Information Exposure Through Directory Listing (CWE-548). CWE is a catalogue of common weakness types; this entry covers cases where a system hands out a list of items it should have kept private.

The report does not describe the request that triggered the leak, the address (endpoint) it was sent to, or the exact response that carried the names. It states the outcome rather than the steps to reproduce it. What it does record is the fix: the error was corrected and regression tests were added. A regression test is an automated check that a fixed bug stays fixed.

In general, how this kind of bug works

Many applications organise data as a tree: an account owns collections, and each collection owns items. Here, an account owns calendars and addressbooks. When you open one specific item, the program usually checks that it belongs to you. But producing a list of items is a separate piece of code, and that is where checks are easy to forget. A listing routine may gather every collection the application knows about and send back their details without asking, row by row, whether the person requesting them is allowed to see each one.

The pattern shows up whenever names and titles are treated as less sensitive than content. Display names, titles, folder names, tags and the names of people something is shared with are all metadata, meaning data about data. Metadata can still be sensitive: a calendar name might reveal a project, a client or a personal routine. The classic form of this weakness is a web server or API that returns an index of files or records because no per-entry permission check sits between the storage query and the response.

The defences are simple in principle:

  1. Check permission for every object that is returned, not just once for the whole endpoint.
  2. Build the query so it only ever selects objects the caller owns or that were shared with them, instead of fetching everything and filtering afterwards.
  3. Return only the fields the caller is entitled to see, from a fixed list, so internal metadata does not ride along.
  4. Add a regression test with two users that asserts one user's listing never contains the other user's objects.

How to test for it

If you ever check a product for this kind of bug, a beginner-friendly approach works:

  1. Create two ordinary accounts on the target, one to act as the victim and one as the attacker.
  2. As the victim, create a few collections with distinctive, searchable names: calendars, addressbooks, folders, projects, saved searches, whatever the feature offers.
  3. As the attacker, use every screen and API that shows a list: the main index, autocomplete and typeahead boxes, share dialogs, export and sync features, and anything returning counts or summaries.
  4. Compare what the attacker receives with what the victim created. A positive result is the victim's distinctive names appearing in the attacker's response, in any field, even without content.
  5. Repeat with the attacker having no collections of their own, so you can be sure the names are not coming from a shared or public default.

Rule out false positives before reporting. A name may appear because the victim deliberately shared the collection with the attacker, because the collection is public by design, or because an administrator legitimately sees everything. Test with fresh accounts and no sharing configured. Also check whether the name is simply echoed back from a value the attacker typed, which would be a different bug. Finally, repeat the request in a clean session to confirm the leak comes from the server and not from a cache.

How it is fixed

The standard fix is to limit the listing query to the logged-in user and to check permission for each returned object. Where sharing exists, the query must include only objects owned by or shared with the caller, and responses should be trimmed to the fields the caller may see. This advisory states that the error was fixed and regression tests were added.

Where to look when hunting

This class of bug hides in secondary surfaces rather than main ones. Look at autocomplete endpoints, share target pickers, dashboard widgets, activity feeds, notification payloads, sync APIs and anything that returns a list for a picker. These features often predate the main permission model and were written to be fast rather than strict. Signals worth noticing are APIs that accept a user or account parameter, endpoints that return arrays of objects with names but no identifiers, and features that aggregate data across users, such as global search or recent-items lists. If a response contains a name the attacker never created, that is the thread to pull.

Glossary

  • Nextcloud: a self-hosted suite for files, calendars and contacts.
  • Calendar / addressbook: a collection of events or contacts belonging to a user.
  • Logical error: a mistake in the program's decision-making, not a crash or corrupted file.
  • Information disclosure: a bug that lets someone see data they should not see.
  • Metadata: data about data, such as names, titles and labels, as opposed to the content itself.
  • Advisory: a public notice describing a security issue and its fix.
  • CVE: a unique identifier assigned to a publicly known vulnerability.
  • CVSS: a standard scoring system that turns a bug's characteristics into a number.
  • Vector string: the compact code that lists those characteristics.
  • CWE: a catalogue of common weakness types.
  • Endpoint: a specific address on a server that an application sends requests to.
  • Request / response: a message asking a server for something, and the server's reply.
  • API: a defined way for programs to talk to a service.
  • Authentication: proving who you are, usually by logging in.
  • Authorisation: deciding what a logged-in user is allowed to do or see.
  • Privileges: the level of access an account has.
  • Regression test: an automated check that stops a fixed bug from coming back.
  • Bounty: a payment made to a researcher for a valid security report.
  • False positive: a finding that looks like a bug but is not.
  • Cache: a temporary store of earlier responses that can make old data reappear.
  • Triager: the person who first reviews and routes a security report.

More by juliushaertl

View all

4 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.