-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching with an empty api key is allowed #2749
Comments
Has already been fixed in 13ab34a, to be released with 1.3.10. A bit of background on this: The API key requirement for anonymous access is somewhat stupid anyhow and to be removed in 1.4.0 - since even the bundled UI needs some key right now it in order to be able to contact the server in the first place, an anonymous UI API key is available by fetching the index page and also on the websocket to allow bootstrapping, kinda defeating the whole point of mandatory keys. And since we can't know the network situation in which an OctoPrint instance will run, we can't really whitelist client IPs or networks in any way. The original thought behind it was not to actually secure anything (kinda pointless considering the aforementioned UI hen-egg-issue and the fact that the APIs are accessibly anonymously, but restricted to read-only mode) but just to make it a tad more tricky to bombard the API in some kind of drive by scenario. In anonymous mode you basically have the same rights on the API as if you were accessing the web page directly without being logged in. In 1.4.0 this will be tightened down further and allow people to take any kind of access away from anonymous users. PS: In general it's btw better to get in touch about issues with potential security implications on private channels in order to not risk people abusing something before the developers have a chance to react and fix things. |
Do you have a release date planned for 1.3.10? Otherwise this could/should be backported into 1.3.9/1.3.8? I am not seeing update prompts on my octoprint UI and even |
I plan to release 1.3.9 this week unless I get any reports in that indicate otherwise and the severity of this issue doesn't justify the enormous testing overhead of a hotfix release for 1.3.8 or yet another rc for 1.3.9. As I said, this isn't allowing access to information that would otherwise be inaccessible and is functionality that is going to be removed in the future anyhow. |
1.3.10 has been released. |
What were you doing?
What did you expect to happen?
Get a 'invalid/misssing' apikey response
What happened instead?
Got a response ..
Did the same happen when running OctoPrint in safe mode?
yes
Version of OctoPrint
OctoPrint 1.3.8
Operating System running OctoPrint
OctoPi 0.15.0
Printer model & used firmware incl. version
Not applicable
Browser and version of browser, operating system running browser
Chromium, Firefox on linux
Link to octoprint.log
nothing of value in the log
Link to contents of terminal tab or serial.log
nothing of value
Link to contents of Javascript console in the browser
--
Screenshot(s)/video(s) showing the problem:
--
I have read the FAQ.
The text was updated successfully, but these errors were encountered: