# What are the security concerns of a leaked Instance\_ID?

**URL:** <https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933>\
**Category:** ℹ️ Support\
**Tags:** security, nc27\
**Created:** [July 10, 2023, 8:29pm UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933 "2023-07-10T20:29:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreki](https://help.nextcloud.com/letter_avatar/dreki/32/6_449c533f586939b6e5f246632a46421f.png) [@Dreki](https://help.nextcloud.com/u/Dreki)\
**Post date:** [July 10, 2023, 8:29pm UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933/1 "2023-07-10T20:29:02Z")

</div>

I was sharing a log file of a script i was running and i realized after that one of the folders in the appdata directory is named after the nextcloud instance\_id.

I feel silly because I’m generally more careful than that.

What are the security implications and should i bother trying to change my instance ID?

Thanks.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [July 12, 2023, 8:50am UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933/2 "2023-07-12T08:50:41Z")

</div>

I just know that as a user, you don’t do anything with this instance id usually. I suppose internally the client might identify its own server or for federated sharing between server to be independent in case of domain changes or multiple domains.  
It is used as salt for the encryption key (server-side encryption): [Encryption details — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_details.html)

Here from the bugtracker, if you look for security bugs that contain the instance id:

> **[Issues · nextcloud/server](https://github.com/nextcloud/server/issues?q=is%3Aissue%2Binstanceid%2Blabel%3Asecurity%2Bis%3Aclosed)**
>
> ☁️ Nextcloud server, a safe home for all your data - Issues · nextcloud/server

I wouldn’t just change the instance id, it could be used for shares, apps might use it and you might break things. If you just started and you want to install again, I’d prefer this.

I hope you have a few starting points, hopefully someone more qualified can give more insight.

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [July 12, 2023, 9:48am UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933/3 "2023-07-12T09:48:22Z")

</div>

> [@Dreki](#):
>
> What are the security implications…

As long as you did not expose your passwordsalt, secret and admin uid together with it, nobody can do any harm with the knowledge of your instanceid alone.

> [@Dreki](#):
>
> should i bother trying to change my instance ID?

No!

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [July 12, 2023, 10:48am UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933/4 "2023-07-12T10:48:24Z")

</div>

> [@Dreki](#):
>
> I feel silly because I’m generally more careful than that.

You don’t have to feel silly. The instanceid is not secret. I can get the instanceid of any nextcloud server from which I know the url, and as you know, the url is not secret, since the instanceid is also used for the assignment of cookies:

```auto
# enter an existing nextcloud-URL
URL=https://yourcloud.tld

# run
curl -Is $URL/status.php | grep -i 'set-cookie: [[:alnum:]]\{12\}=' | awk -F'[=]' '{print $2}' | sort -u

```

😉

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [July 12, 2023, 12:27pm UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933/5 "2023-07-12T12:27:36Z")

</div>

> [@ernolf](#):
>
> The instanceid is not secret. I can get the instanceid of any nextcloud server from which I know the url

I wasn’t sure about that. Thanks for the example code 👍

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 12:44pm UTC](https://help.nextcloud.com/t/what-are-the-security-concerns-of-a-leaked-instance-id/165933/6 "2024-12-14T12:44:26Z")

</div>


