Skip to content
Account takeover Disclosed report Beginner CVE-2022-2888

OctoPrint vulnerable to Insufficient Session Expiration.

OctoPrint did not expire session cookies, so a stolen cookie remained valid indefinitely as long as the victim's account existed. An attacker who obtained a victim's session cookie could authenticate as that user without further credentials.

octoprint/octoprint

Originally disclosed on huntr

If an attacker comes into the possession of a victim's OctoPrint session cookie through whatever means, the attacker can use this cookie to authenticate as long as the victim's account exists. This issue is fixed in version 1.8.3.

From the GitHub Advisory Database (GHSA-937f-qh3w-6g87, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application did not set an expiry or invalidation mechanism for session cookies, so they remained valid indefinitely.

What the attacker needed

Attacker obtains victim's session cookie

The fix

The issue was fixed in version 1.8.3.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A session cookie is a small piece of data your browser stores after you log in, so the website can recognise you on later visits. Normally it should stop working after a while or when you log out. Here, it never expired, so anyone who stole it could keep using it to act as you for as long as your account existed.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More from octoprint/octoprint

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.