CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-27838

Leaking Gains: The Cached IDOR in wger Fitness Manager

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 27, 2026·5 min read·36 visits

Executive Summary (TL;DR)

The wger API cached workout routines using keys that didn't include the User ID. If User A viewed their workout, it was cached globally. User B could then request User A's workout ID, hit the cache, and receive the data without an ownership check.

A classic case of 'premature optimization' leading to security failure. In the wger fitness manager, a caching mechanism designed to speed up API responses inadvertantly bypassed authentication checks. By generating cache keys based solely on the resource ID—ignoring the requesting user's identity—the application served private workout routines to unauthorized users, provided the victim had recently accessed the data.

The Hook: Optimization is the Root of All Evil

Donald Knuth once famously said, "Premature optimization is the root of all evil." In the world of web security, I'd argue that caching is the root of about 30% of modern IDORs (Insecure Direct Object References).

Meet wger (pronounced however you like, but likely "manager" without the vowels), a popular open-source fitness tracker. It's a great tool for tracking your bench press PRs and your caloric intake. But in versions leading up to 2.4, it was also a great tool for tracking other people's bench press PRs.

The developers, in a noble attempt to make the application snappy, implemented a server-side cache for workout routines. Routines are complex objects—they have days, exercises, sets, and reps. Fetching that structure from the database every time a user taps "Start Workout" is expensive. So, they cached it. The problem? They treated the cache like a public library instead of a private locker room.

The Flaw: The 'Check-Then-Fetch' Anti-Pattern

To understand this vulnerability, you have to look at the flow of a standard Django Rest Framework (DRF) request. Usually, it goes like this: Request comes in -> Auth Check -> Permission Check -> Database Lookup -> Serialization -> Response.

In wger's vulnerable endpoints (specifically structure, stats, and logs within manager/api/views.py), the flow was hijacked for speed. The application logic looked something like this:

  1. Generate a Cache Key: Take the Routine ID (e.g., 1337) and make a string: routine-api-structure-1337.
  2. Check the Cache: Does Redis/Memcached have this key?
  3. The Fatal Shortcut: If yes, return the data immediately.
  4. The Miss: If no, then perform the standard object lookup, which includes the self.get_object() permission check.

Do you see the massive logic gap? The permission check (which verifies "Does User B own Routine 1337?") happens in step 4. But if the cache hits in step 3, step 4 never happens. The gatekeeper is asleep because the receptionist already handed out the keys.

The Code: The Smoking Gun

Let's look at the actual code responsible for this. This isn't a complex buffer overflow; it's a simple logic error in Python. Here is the vulnerable pattern found in wger/manager/api/views.py:

@action(detail=True, url_path='structure')
def structure(self, request, pk):
    # VULNERABLE KEY GENERATION
    # The key is based ONLY on the Primary Key (pk)
    cache_key = CacheKeyMapper.routine_api_structure_key(pk)
    
    # CACHE LOOKUP
    cached_data = cache.get(cache_key)
    
    # THE BYPASS
    if cached_data is not None:
        # Returns data immediately. No ownership check.
        # No request.user check.
        return Response(cached_data)
 
    # SECURITY CHECK (Too little, too late)
    # This only runs if the cache is empty
    instance = self.get_object()
    serializer = self.get_serializer(instance)
    data = serializer.data
    cache.set(cache_key, data, 3600)
    return Response(data)

The fix, implemented in commit e964328, was ridiculously simple: Scope the key to the user. By adding the User ID to the cache key, the cache becomes private per user.

The Fix (wger/utils/cache.py):

# Old
def routine_api_structure_key(cls, pk):
    return f'routine-api-structure-{pk}'
 
# New
def routine_api_structure_key(cls, pk, user_id):
    return f'routine-api-structure-{user_id}-{pk}'

Now, if I request Routine 1337, the system looks for routine-api-structure-MY_ID-1337. It won't find the entry for routine-api-structure-VICTIM_ID-1337, forcing a cache miss and a subsequent permission check.

The Exploit: Waiting for the Prime

This vulnerability has a severity score of Low (3.1), which I find amusingly optimistic. The reasoning is that the attacker cannot force the data into the cache; the victim must put it there. But in a social fitness app, users are constantly accessing their routines.

The Attack Scenario:

  1. Recon: The attacker creates a free account on the wger instance.

  2. Targeting: The attacker writes a script to iterate through Routine IDs (sequential integers are the bane of security). Let's say we want to spy on User ID 42.

  3. The Campout: The script polls GET /api/v2/routine/100/structure/, 101/structure/, etc.

  4. The Trigger: The victim walks into their gym, opens the wger app, and taps "Pull Day". The app fetches Routine 100. The server caches it as routine-api-structure-100.

  5. The Snatch: Milliseconds later, the attacker's script requests GET /api/v2/routine/100/structure/.

  • Server: "Do I have routine-api-structure-100? Yes."
  • Server: "Here is the JSON containing the workout logs, notes, and schedule."

It's a race condition where the "race" is just waiting for the victim to do what the app is designed to do.

The Impact: Privacy in the Gym

Why does this matter? It's just pushups, right?

Not quite. The leaked endpoints (structure, stats, logs) reveal usage patterns. If I can see your workout logs, I know:

  1. When you are at the gym (and implies when you are not at home).
  2. Where you are (if the routine is tied to specific gym equipment or locations).
  3. Health Data: Specific rehabilitation exercises can reveal medical conditions or injuries.

Furthermore, this is an unchecked read primitive. If the application logic relied on this data for other decisions, or if sensitive PII was embedded in the routine notes (e.g., "meet trainer at 5pm"), that information is compromised. It breaks the fundamental promise of multi-tenant SaaS: data isolation.

Official Patches

wgerGitHub Commit: Fix caching IDOR

Fix Analysis (1)

Technical Appendix

CVSS Score
3.1/ 10
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected Systems

wger Workout Manager (Self-hosted)wger SaaS

Affected Versions Detail

Product
Affected Versions
Fixed Version
wger
wger-project
<= 2.42.5 (implied post-commit)
AttributeDetail
CWECWE-639 (Authorization Bypass Through User-Controlled Key)
CVSS3.1 (Low)
Attack VectorNetwork (API)
Exploit RequirementsAuthenticated, Victim Interaction (Cache Priming)
Privileges RequiredLow (Any valid user)
StatusPatched

MITRE ATT&CK Mapping

T1595Active Scanning
Reconnaissance
T1040Network Sniffing (Logical equivalent via API)
Credential Access
CWE-639
Authorization Bypass Through User-Controlled Key

Known Exploits & Detection

TheoryCache priming attack involving waiting for victim interaction.

Vulnerability Timeline

Vulnerability patched by vendor
2026-02-24
Public Advisory and CVE Released
2026-02-26

References & Sources

  • [1]GHSA Advisory
  • [2]NVD Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•36 minutes ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.

Amit Schendel
Amit Schendel
1 views•10 min read
•about 2 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.

Alon Barad
Alon Barad
2 views•14 min read
•about 3 hours ago•CVE-2026-77423
7.5

CVE-2026-77423: Regular Expression Denial of Service (ReDoS) in JLine Built-in Less Viewer

CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.

Alon Barad
Alon Barad
3 views•10 min read
•about 4 hours ago•CVE-2026-63492
8.1

CVE-2026-63492 (Duplicate of CVE-2026-63304): OS Command Injection in WWBN AVideo Standalone API

CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.

Amit Schendel
Amit Schendel
3 views•9 min read
•about 5 hours ago•CVE-2026-63476
4.3

CVE-2026-63476: Unbounded Memory Allocation and Denial of Service in isomorphic-git Packfile Delta Parser

CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 6 hours ago•CVE-2026-63410
5.9

CVE-2026-63410: Compiler-Induced Timing Side-Channel in secp256k1-native Scalar Multiplication

CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.

Alon Barad
Alon Barad
2 views•12 min read