Onionspray 1.8.7: Why This Tor Security Release Matters for Onion Mirrors

Jake at a laptop beside the words Onionspray 1.8.7 and Updating an onion mirror.

If you use Onionspray to make a public website available at a .onion address, the Tor Project recommends upgrading promptly. Its November 30 security release, Onionspray 1.8.7, updates the software that fetches and serves pages for the mirror. After the upgrade, test the address your visitors actually use: a healthy public website can still have a broken onion mirror. Tor Project release announcement

One website, two ways to reach it

Imagine a newspaper that wants readers to reach its reporting where its public domain is blocked. With Onionspray, the publisher can keep editing stories in its existing system. A reader opens the newspaper’s .onion address in Tor Browser. Onionspray retrieves the page from the public site over HTTPS and rewrites links so the reader can continue browsing the mirror.

The reader reaches the onion service inside Tor, without an exit relay. That protects the reader’s network location, but a reader who signs in still identifies themselves to the site. The publisher remains identifiable too: the masthead, articles and public domain still belong to the newspaper. Onionspray is designed for publishers who want to offer this additional route. Anyone who needs to conceal a site’s origin has a different design problem. Tor Project guidance on website anonymity

Why a web server update matters to an onion mirror

Tor carries the connection to the onion service. Behind it, Onionspray relies on OpenResty to handle web traffic. The sole change in 1.8.7 is the move to OpenResty 1.31.9.1. That release incorporates nginx 1.31.9 and ten upstream security fixes. Their relevance depends on the protocols and modules a deployment uses. The Tor Project asks operators to upgrade and gives no indication in this announcement that mirrors are under active attack. OpenResty release notes · nginx security advisories

How to upgrade an existing Onionspray installation

Before restarting anything, read the changelog for every version you are crossing. Back up the project configuration, onion service identity keys and any HTTPS certificates and private keys. Restrict access to those backups. The onion identity key is what lets a recovered service keep the address readers have bookmarked.

  1. From the Onionspray installation directory, run ./onionspray update to refresh the repository.
  2. Run ./onionspray upgrade to rebuild bundled dependencies. If your installation uses upstream packages instead, follow that package update path and verify the installed OpenResty version.
  3. Regenerate each project’s configuration. For example, replace myproject.conf with your own configuration filename in ./onionspray config myproject.conf.
  4. Restart the projects with ./onionspray restart -a. If your deployment uses softmaps with Onionbalance, also run ./onionspray ob-restart -a.

Open the established .onion address in Tor Browser. Follow an internal link and check an image, a stylesheet and any essential user flow. A homepage that loads while its navigation sends readers back to the public domain is only a partial success. Official upgrade guide

What to check between releases

  • Help readers find the authentic address. Advertise the mirror from your public HTTPS site with Onion-Location. Test a link to an individual article as well as the homepage, so readers switching to Tor land on the page they chose. Onion-Location guide
  • Check both sides of the proxy. Keep certificate verification enabled for its HTTPS connection to the origin. Review embedded fonts, scripts, redirects and forms after a theme change. An external resource can take part of a visit outside the onion service. Onionspray security model
  • Protect the service identity. Keep private keys out of repositories and limit backup access. If an identity key is stolen, a restore using that same key cannot establish exclusive control. Plan how to distribute a new address through a channel your readers already trust.
  • Check availability from a reader’s perspective. Test through Tor on a regular schedule. For long-lived services, also review the Tor Project’s guidance on Vanguards, an additional defense against attempts to discover a service’s network location. Tor onion service operational security

Choosing how to publish your own onion site

If you want to publish an onion site of your own, start with Impreza’s onion site publishing guide. It covers hosting workflows separate from the Onionspray mirror described here. Compare Tor Hosting for a virtual server with Dedicated Tor Hosting for dedicated hardware.

You might also like

More Similar Posts