Advisory

GHSA-6gvq-jcmp-8959

Also known as: CVE-2025-68113, GO-2025-4239, PYSEC-2026-1115

Summary

ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay

Details

Impact

A cryptographic semantic binding flaw in ALTCHA libraries allows challenge payload splicing, which may enable replay attacks. The HMAC signature does not unambiguously bind challenge parameters to the nonce, allowing an attacker to reinterpret a valid proof-of-work submission with a modified expiration value. This may allow previously solved challenges to be reused beyond their intended lifetime, depending on server-side replay handling and deployment assumptions.

The vulnerability primarily impacts abuse-prevention mechanisms such as rate limiting and bot mitigation. It does not directly affect data confidentiality or integrity.

Patches

This issue has been addressed by enforcing explicit semantic separation between challenge parameters and the nonce during HMAC computation.

Users are advised to upgrade to patched versions.

Workarounds

As a mitigation, implementations may append a delimiter to the end of the salt value prior to HMAC computation (for example, <salt>?expires=<time>&). This prevents ambiguity between parameters and the nonce and is backward-compatible with existing implementations, as the delimiter is treated as a standard URL parameter separator.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-12-16 00:43 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

altcha-lib

npm · All systems

Affected

  • introduced 0, fixed 1.4.1 (semver)

Fixed versions

1.4.1

Fix

altcha-org/altcha

Packagist · All systems

Affected

  • introduced 0, fixed 1.3.1 (ecosystem)

Fixed versions

1.3.1

Fix

The export has no generic command for this ecosystem.

github.com/altcha-org/altcha-lib-go

Go · All systems

Affected

  • introduced 0, fixed 1.0.0 (semver)

Fixed versions

1.0.0

Fix

altcha

RubyGems · All systems

Affected

  • introduced 0, fixed 1.0.0 (ecosystem)

Fixed versions

1.0.0

Fix

The export has no generic command for this ecosystem.

altcha

PyPI · All systems

Affected

  • introduced 0, fixed 1.0.0 (ecosystem)

Fixed versions

1.0.0

Fix

  • Fixed version 1.0.0
    pip install --upgrade altcha==1.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences