We recently discovered a security bug in SatNOGS Network source code. The bug allowed for unauthorized access to station API keys, specifically in the HTML source code of the user page (not visible in the UI though).
The issue is now fixed in our production instance. The SatNOGS Operations team has analyzed the incident, and no malicious action has been discovered with the exposed API keys.
All API keys have been regenerated to secure and protect the network. As a result, you must update your station(s) with the new API key issued for your account.
SatNOGS Raspberry Pi image users can perform the following steps:
I seem to be having some problems reconnecting to the network with my new API keys. First, the update process complains about not finding the ārng-toolsā package, so Iām not sure if that failure is causing my other problems. In my logs, I see the following:
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: 2018-09-01 11:47:03,844 - apscheduler.executors.default - ERROR - Job "get_jobs (trigger: interval[0:01:00], next run at: 2018-09-01 15:48:03 UTC)" raised an exception
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: Traceback (most recent call last):
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: File "/var/lib/satnogs/local/lib/python2.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: retval = job.func(*job.args, **job.kwargs)
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: File "/var/lib/satnogs/local/lib/python2.7/site-packages/satnogsclient/scheduler/tasks.py", line 169, in get_jobs
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: 'Status code: {0} on request: {1}'.format(response.status_code, url))
Sep 01 11:47:03 satcather-vhf satnogs-client[552]: Exception: Status code: 401 on request: https://network.satnogs.org/api/jobs/
Iāve checked my API key in /etc/ansible/host_vars/localhost and itās been updated properly.
Any suggestions of what might be going on? Thanks!
Huh, strange that my apt canāt find it, given that I think my sources look fine:
pi@satcather-vhf:~ $ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
pi@satcather-vhf:~ $
And this is what I get when I try and run sudo apt-get install rng-tools:
pi@satcather-vhf:~ $ sudo apt-get install rng-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rng-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'rng-tools' has no installation candidate
pi@satcather-vhf:~ $
apt-get install --fix-missing, and then apt-get install rng-tools seemed to fix the problem. Not sure how things got so borked up, thanks for the help, apologies for the noise!