GHSA-qq2p-4282-cfc5 eduMFA: Incorrect InnoDB snapshot isolation possibly allows token reusage
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- MySQLMariaDBDebian
Description
Impact
For deployments using MySQL or MariaDB < 11.6.2 (or newer with innodb_snapshot_isolation=off) reusage of token values might be possible due to faulty transaction isolation inside the database. Exploiting this requires racing this transaction.
Affected are all tokentypes whose values are only supposed to be used once, for example TOTP, HOTP and likely also WebAuthN.
Affected Combinations:
- MySQL (any version)
- MariaDB with innodb_snapshot_isolation=OFF
- innodb_snapshot_isolation was introduced in: MariaDB 10.6.18, MariaDB 10.11.8, MariaDB 11.0.6, MariaDB 11.1.5, MariaDB 11.2.4, MariaDB 11.4.2
with default OFF, can be turned ON as a workaround - for MariaDB >= 11.6.2 the default is ON, which is not affected
- innodb_snapshot_isolation was introduced in: MariaDB 10.6.18, MariaDB 10.11.8, MariaDB 11.0.6, MariaDB 11.1.5, MariaDB 11.2.4, MariaDB 11.4.2
- Same rules applies for Galera with underlying MariaDB
Patches
Fixed in version 2.9.1 by locking rows prior to write with SELECT FOR UPDATE.
Workarounds
Set innodb_snapshot_isolation to ON (default in MariaDB >= 11.6.2, e.g packaged in Debian 13).
Resources
https://mariadb.com/resources/blog/isolation-level-violation-testing-and-debugging-in-mariadb/
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi edumfa(PyPI) | < 2.9.1; = 1.2.0; = 1.3.0; = 1.4.0 +19 more | 2.9.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi edumfa(PyPI) | < 2.9.1 | 2.9.1 |
| pypi edumfa(PyPI) | = 1.2.0 | No fix listed |
| pypi edumfa(PyPI) | = 1.3.0 | No fix listed |
| pypi edumfa(PyPI) | = 1.4.0 | No fix listed |
| pypi edumfa(PyPI) | = 1.5.0 | No fix listed |
| pypi edumfa(PyPI) | = 1.5.1 | No fix listed |
| pypi edumfa(PyPI) | = 2.0.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.0.1 | No fix listed |
| pypi edumfa(PyPI) | = 2.0.2 | No fix listed |
| pypi edumfa(PyPI) | = 2.0.3 | No fix listed |
| pypi edumfa(PyPI) | = 2.1.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.2.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.3.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.4.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.5.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.6.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.6.1 | No fix listed |
| pypi edumfa(PyPI) | = 2.7.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.7.1 | No fix listed |
| pypi edumfa(PyPI) | = 2.7.2 | No fix listed |
| pypi edumfa(PyPI) | = 2.8.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.9.0 | No fix listed |
| pypi edumfa(PyPI) | = 2.9.0rc1 | No fix listed |
References
- github.com vendor-advisory
- github.com product
- github.com