Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Security issue when installing/restore Cloudron on same VPS?

Security issue when installing/restore Cloudron on same VPS?

Scheduled Pinned Locked Moved Support
security
7 Posts 4 Posters 1.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by girish
      #1

      Hi,

      I was thinking about the following scenario (i.e. whenever you want to have restore or a 'clean upgrade' to Ubuntu 20.04 on the same VPS/IP) but it might lead to a security issue?

      1. On a VPS you have a running Cloudron with traffic
      2. You have a very recent external backup to use for restore
      3. Wipe/format the SSD of your VPS and do a clean install of Ubuntu with or without Cloudron-image (if without, install Cloudron manually)
      4. After Cloudron install you have the situation that every visitor of every app (i.e. high traffic Wordpress sites) will end up in the Cloudron Domain Setup and can mess up whatever they want because DNS of all (sub-)domains are still present and resolves to IP

      What I would like to see is that after Cloudron install, the response on the IP-only is a decent "Coming soon" page (un-branded) and a special "hidden" URL (there is already the setupdns.html) where the admin can start configuring and restoring? It's also much nicer for "clean installs", it prevents "old" IP traffic or crawlers from running into setup?

      jimcavoliJ 1 Reply Last reply
      1
      • imc67I imc67

        Hi,

        I was thinking about the following scenario (i.e. whenever you want to have restore or a 'clean upgrade' to Ubuntu 20.04 on the same VPS/IP) but it might lead to a security issue?

        1. On a VPS you have a running Cloudron with traffic
        2. You have a very recent external backup to use for restore
        3. Wipe/format the SSD of your VPS and do a clean install of Ubuntu with or without Cloudron-image (if without, install Cloudron manually)
        4. After Cloudron install you have the situation that every visitor of every app (i.e. high traffic Wordpress sites) will end up in the Cloudron Domain Setup and can mess up whatever they want because DNS of all (sub-)domains are still present and resolves to IP

        What I would like to see is that after Cloudron install, the response on the IP-only is a decent "Coming soon" page (un-branded) and a special "hidden" URL (there is already the setupdns.html) where the admin can start configuring and restoring? It's also much nicer for "clean installs", it prevents "old" IP traffic or crawlers from running into setup?

        jimcavoliJ Offline
        jimcavoliJ Offline
        jimcavoli
        App Dev
        wrote on last edited by
        #2

        @imc67 I just migrated a Cloudron server between cloud providers with a restore, and my solution was to serve downtime / maintenance pages from the edge of the Cloudflare network. Worked flawlessly. Without Cloudflare in the mix (I know folks have very mixed opinions), you could just pull a new IP for the box (DNS will be auto-updated to the new one upon restore) so that the old one just 404s, or you could use firewall rules at the provider or box level to restrict inbound traffic to your management network temporarily.

        This is mostly just to lay out the current options - there may well be merit to the obscure URL trick as well, and that's worth considering in Feature Requests perhaps as well for further discussion.

        1 Reply Last reply
        2
        • mehdiM Offline
          mehdiM Offline
          mehdi
          App Dev
          wrote on last edited by
          #3

          The cleanest solution, from a security standpoint, would be to display a random password in the terminal when installing Cloudron, that would be required by the server setup page.

          Pre-installed Cloudron images would need to have a set password, so be a bit less secure, but it still would be good.

          1 Reply Last reply
          2
          • girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #4

            For the aws marketplace, we already implement this with asking for the ec2 instance id during setup.

            I guess for a start, we can have an option in the setup script to generate a passphrase and then maybe make this the default in a future release?

            imc67I 1 Reply Last reply
            4
            • girishG girish

              For the aws marketplace, we already implement this with asking for the ec2 instance id during setup.

              I guess for a start, we can have an option in the setup script to generate a passphrase and then maybe make this the default in a future release?

              imc67I Offline
              imc67I Offline
              imc67
              translator
              wrote on last edited by imc67
              #5

              @girish that would be great, but even better in combination with on bare IP a "coming soon" page and setup on a specific URL.

              girishG 1 Reply Last reply
              2
              • imc67I imc67

                @girish that would be great, but even better in combination with on bare IP a "coming soon" page and setup on a specific URL.

                girishG Do not disturb
                girishG Do not disturb
                girish
                Staff
                wrote on last edited by
                #6

                @imc67 The "coming soon" seems like a bug.

                I have opened https://git.cloudron.io/cloudron/box/-/issues/751 and https://git.cloudron.io/cloudron/box/-/issues/752 for next release.

                imc67I 1 Reply Last reply
                4
                • girishG girish

                  @imc67 The "coming soon" seems like a bug.

                  I have opened https://git.cloudron.io/cloudron/box/-/issues/751 and https://git.cloudron.io/cloudron/box/-/issues/752 for next release.

                  imc67I Offline
                  imc67I Offline
                  imc67
                  translator
                  wrote on last edited by
                  #7

                  @girish thanks again for this!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search