Skip to content

det/CICS: a typed COMMAREA write-back rewrites the sign of a field the program never touched #7485

Closed

Description

@squid-protocol

On a LINKed CICS program with a typed COMMAREA, the port changes bytes of a signed DISPLAY field the program never touched. caBack runs fill_ before it copies storage back to the link area. fill_ reads through Cobol.num, then Zoned.operand, and that read does GnuCOBOL's PUT_SIGN, so a read writes storage.

Reproduced with survivor_attack.py try on the real oracle:

  • cbsa-abndproc: ABND-RESPCODE (SIGN LEADING SEPARATE) sent as 9 spaces comes back as + and 8 spaces (numeric-all-spaces).
  • cbsa-updacc: COMM-AVAIL-BAL (S9(10)V99 overpunch) sent as spaces comes back with last byte {.

The WRITE'd record is right; only the returned COMMAREA is wrong. Mutant eea30fe38b deletes the fill_ caBack and is equal to the COBOL on that input, which shows the cause and refutes its equivalent verdict. Likely any LINKed port with a signed DISPLAY COMMAREA field holding non-digits; only these two were run. Evidence is GnuCOBOL, not z/OS.

Activity

  1. added
    bug
    priority: high
    on Nov 1, 2026
  2. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-03T12:01Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaim:melekpriority: high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions