• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

markitosgv / JWTRefreshTokenBundle / 41195130624
97%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/single-use-rotation-race
DEFAULT BRANCH: master
Ran 31 Oct 2026 11:02AM UTC
Jobs 1
Files 49
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Oct 2026 09:43AM UTC coverage: 97.26% (+0.004%) from 97.256%
41195130624

push

github

shakaran
fix: refuse a stored hash offered as the refresh token

With hash_tokens on, the value in the table was accepted as the token. The
lookup of the hash of what was presented cannot match (that would be the hash
of a hash), but the fallback that keeps tokens issued before hashing was turned
on working looks the presented value up as it is, and the stored value matches
the row holding it. save() then sees the prefix and leaves the row alone, so the
same value kept working.

Reading the table is the one thing hashing is there to survive, so this undid
the feature: a backup, a replica or an injected SELECT yielded working refresh
tokens for every user, and each replacement was as good as the one before.

A value in the stored format is now turned away before that fallback runs. No
client is ever given one, so presenting one is only ever somebody who has read
the rows. The prefix becomes reserved: a generator producing values that start
with it would have them stored in the clear and then refused, which the README
now says.

Affects 2.2.0 to 2.2.2 and 3.0.0 with hash_tokens enabled. Reported privately
by Rathnadeepan (HotWater), with a harness this reproduces.

2 of 2 new or added lines in 1 file covered. (100.0%)

1278 of 1314 relevant lines covered (97.26%)

18.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41195130624.1 31 Oct 2026 11:02AM UTC 49
97.26
GitHub Action Run
Source Files on build 41195130624
  • Tree
  • List 49
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41195130624
  • f8c05bf1 on github
  • Prev Build on 2.2.x (#30902310388)
  • Next Build on 2.2.x (#41195499379)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc