Skip to content

mcp-attest 1.2.2

Latest

Choose a tag to compare

@Balanov Balanov released this 14 Nov 16:31
· 1 commit to main since this release

The AT-TOKEN-001 probe could tamper nothing.

It replaced the first character of the signature with a letter taken from the last one, so a signature that already began with that letter came back byte for byte identical. One token in sixty-four then reached a server that verifies signatures correctly, the server accepted it as the valid token it was, and the harness reported a critical finding against a server that was doing everything right.

The probe now uses the same helper as the OAuth probes: the signature is decoded, one bit is flipped and encoded again, so the token always differs from the valid one. The example server refuses a malformed signature with a plain 401 instead of dropping the connection.

Four regression tests cover it: the case the old flip missed, a correct server that must not be reported, a probe that must not send the valid token, and a server that really does accept a tampered token and must still be reported.

Pull request #5. Published to PyPI as mcp-attest 1.2.2.