Skip to content

aiseChild: fix PAC buffer preservation and add AES support for modern Windows#2164

Open
plur1bu5 wants to merge 1 commit intofortra:masterfrom
plur1bu5:fix/raiseChild-pac-buffers-aes-support
Open

aiseChild: fix PAC buffer preservation and add AES support for modern Windows#2164
plur1bu5 wants to merge 1 commit intofortra:masterfrom
plur1bu5:fix/raiseChild-pac-buffers-aes-support

Conversation

@plur1bu5
Copy link
Copy Markdown

Two bugs fixed:

  1. makeGolden() hardcoded exactly 4 PAC buffers, discarding all others.
    Windows Server 2022 with CVE-2021-42287 patches requires PAC_REQUESTOR (type 18) to be present. Stripping it causes KDC_ERR_TGT_REVOKED.
    Fix: preserve all original PAC buffers, only update modified ones.

  2. getKerberosTGT() called with aesKey=None hardcoded, ignoring -aesKey.
    Fix: pass aesKey, try AES first then fall back to RC4.

Additional improvements:

  • Auto-retry golden ticket with AES if RC4 is rejected by KDC
  • Fix signature zeroing to use actual length instead of hardcoded 12/16
  • Updated help text with AES key usage examples

Tested against Windows Server 2022 Build 20348. Backward compatible.

…n Windows

Two bugs fixed:

1. makeGolden() hardcoded exactly 4 PAC buffers, discarding all others.
   Windows Server 2022 with CVE-2021-42287 patches requires PAC_REQUESTOR
   (type 18) to be present. Stripping it causes KDC_ERR_TGT_REVOKED.
   Fix: preserve all original PAC buffers, only update modified ones.

2. getKerberosTGT() called with aesKey=None hardcoded, ignoring -aesKey.
   Fix: pass aesKey, try AES first then fall back to RC4.

Additional improvements:
- Auto-retry golden ticket with AES if RC4 is rejected by KDC
- Fix signature zeroing to use actual length instead of hardcoded 12/16
- Updated help text with AES key usage examples

Tested against Windows Server 2022 Build 20348. Backward compatible.
@anadrianmanrique anadrianmanrique added the in review This issue or pull request is being analyzed label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in review This issue or pull request is being analyzed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants