[GH-ISSUE #2944] DPAPImk format passes wrong data sizes into OpenSSL AES & DES; has non-robust valid() #1852

Closed
opened 2026-10-15 04:26:41 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ghost on GitHub (Nov 30, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2944

Originally assigned to: @kholia on GitHub.

Nobody noticed it:

Passing:

Failing:

Testing: DPAPImk, DPAPI masterkey file v1 and v2 [SHA1/MD4 PBKDF2-(SHA1/SHA512)-DPAPI-variant 3DES/AES256 32/32]... wine: Unhandled page fault on read access to 0x016a0000 at address 0x6db6560f (thread 0089), starting debugger...

err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.

err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

Unhandled exception: page fault on read access to 0x016a0000 in 32-bit code (0x6db6560f).

Register dump:

 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b

 EIP:6db6560f ESP:0136cdc4 EBP:6db64d00 EFLAGS:00210202(  R- --  I   - - - )

 EAX:0136ce00 EBX:0136d710 ECX:00000080 EDX:a0c3a026

 ESI:0169fff8 EDI:0136e3b8

Stack dump:

0x0136cdc4:  00000000 1b1b1b1b 1b1b1b1b 00000000

0x0136cdd4:  0136d2ec 0136d2ec 6db64d00 0136d158

0x0136cde4:  0169fff8 0136d710 00000080 0136d21c

0x0136cdf4:  0136e3b8 578bffff 00000000 00000000

0x0136ce04:  00000000 00000000 00000000 00000000

0x0136ce14:  00000000 00000000 00000000 00000000

Backtrace:

=>0 0x6db6560f in libcrypto-10 (+0x2560f) (0x6db64d00)

0x6db6560f: movq	0x8(%esi),%mm4

Modules:

Module	Address			Debug info	Name (35 modules)

PE	  400000- 1167000	Deferred        john

PE	64b40000-64b55000	Deferred        libwinpthread-1

PE	65280000-6529c000	Deferred        zlib1

PE	6bd80000-6bdd9000	Deferred        libssl-10

PE	6d0c0000-6d198000	Deferred        libgcc_s_sjlj-1

PE	6db40000-6dcb3000	COFF            libcrypto-10

ELF	7b400000-7b7f6000	Deferred        kernel32<elf>

  \-PE	7b410000-7b7f6000	\               kernel32

ELF	7bc00000-7bd24000	Deferred        ntdll<elf>

  \-PE	7bc30000-7bd24000	\               ntdll

ELF	7c000000-7c004000	Deferred        <wine-loader>

ELF	7ea66000-7ea8b000	Deferred        imm32<elf>

  \-PE	7ea70000-7ea8b000	\               imm32

ELF	7ea8b000-7eaaf000	Deferred        libtinfo.so.6

ELF	7eaaf000-7ead9000	Deferred        libncurses.so.6

ELF	7ead9000-7eb15000	Deferred        ws2_32<elf>

  \-PE	7eae0000-7eb15000	\               ws2_32

ELF	7eb15000-7eb30000	Deferred        version<elf>

  \-PE	7eb20000-7eb30000	\               version

ELF	7eb30000-7ed1b000	Deferred        user32<elf>

  \-PE	7eb40000-7ed1b000	\               user32

ELF	7ed1b000-7ee50000	Deferred        gdi32<elf>

  \-PE	7ed30000-7ee50000	\               gdi32

ELF	7ee50000-7ef10000	Deferred        msvcrt<elf>

  \-PE	7ee70000-7ef10000	\               msvcrt

ELF	7ef10000-7ef8f000	Deferred        advapi32<elf>

  \-PE	7ef20000-7ef8f000	\               advapi32

ELF	7ef8f000-7efa3000	Deferred        libnss_files.so.2

ELF	7efa3000-7f000000	Deferred        libm.so.6

ELF	f73de000-f73e3000	Deferred        libdl.so.2

ELF	f73e3000-f758d000	Deferred        libc.so.6

ELF	f758d000-f75ac000	Deferred        libpthread.so.0

ELF	f75ac000-f777c000	Dwarf           libwine.so.1

ELF	f778f000-f77b8000	Deferred        ld-linux.so.2

ELF	f77b8000-f77b9000	Deferred        [vdso].so

Threads:

process  tid      prio (all id:s are in hex)

0000000c services.exe

	00000052    0

	0000004f    0

	0000000e    0

	0000000d    0

00000013 explorer.exe

	00000014    0

0000004d winedevice.exe

	00000051    0

	00000050    0

	0000004e    0

00000088 (D) Z:\base\JohnTheRipper\run\john.exe

	[Z:\base\JohnTheRipper\run\john.exe --test-full=0]

	00000089    0 <==

0000008c explorer.exe

	0000008f    0

	0000008e    0

	0000008d    0

System information:

    Wine build: wine-2.15 (Staging)

    Platform: i386 (WOW64)

    Version: Windows 7

    Host system: Linux

    Host version: 3.13.0-129-generic

Originally created by @ghost on GitHub (Nov 30, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2944 Originally assigned to: @kholia on GitHub. Nobody noticed it: Passing: - https://circleci.com/gh/magnumripper/JohnTheRipper/3340 Failing: - https://circleci.com/gh/magnumripper/JohnTheRipper/3341 ``` Testing: DPAPImk, DPAPI masterkey file v1 and v2 [SHA1/MD4 PBKDF2-(SHA1/SHA512)-DPAPI-variant 3DES/AES256 32/32]... wine: Unhandled page fault on read access to 0x016a0000 at address 0x6db6560f (thread 0089), starting debugger... err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly. Unhandled exception: page fault on read access to 0x016a0000 in 32-bit code (0x6db6560f). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:6db6560f ESP:0136cdc4 EBP:6db64d00 EFLAGS:00210202( R- -- I - - - ) EAX:0136ce00 EBX:0136d710 ECX:00000080 EDX:a0c3a026 ESI:0169fff8 EDI:0136e3b8 Stack dump: 0x0136cdc4: 00000000 1b1b1b1b 1b1b1b1b 00000000 0x0136cdd4: 0136d2ec 0136d2ec 6db64d00 0136d158 0x0136cde4: 0169fff8 0136d710 00000080 0136d21c 0x0136cdf4: 0136e3b8 578bffff 00000000 00000000 0x0136ce04: 00000000 00000000 00000000 00000000 0x0136ce14: 00000000 00000000 00000000 00000000 Backtrace: =>0 0x6db6560f in libcrypto-10 (+0x2560f) (0x6db64d00) 0x6db6560f: movq 0x8(%esi),%mm4 Modules: Module Address Debug info Name (35 modules) PE 400000- 1167000 Deferred john PE 64b40000-64b55000 Deferred libwinpthread-1 PE 65280000-6529c000 Deferred zlib1 PE 6bd80000-6bdd9000 Deferred libssl-10 PE 6d0c0000-6d198000 Deferred libgcc_s_sjlj-1 PE 6db40000-6dcb3000 COFF libcrypto-10 ELF 7b400000-7b7f6000 Deferred kernel32<elf> \-PE 7b410000-7b7f6000 \ kernel32 ELF 7bc00000-7bd24000 Deferred ntdll<elf> \-PE 7bc30000-7bd24000 \ ntdll ELF 7c000000-7c004000 Deferred <wine-loader> ELF 7ea66000-7ea8b000 Deferred imm32<elf> \-PE 7ea70000-7ea8b000 \ imm32 ELF 7ea8b000-7eaaf000 Deferred libtinfo.so.6 ELF 7eaaf000-7ead9000 Deferred libncurses.so.6 ELF 7ead9000-7eb15000 Deferred ws2_32<elf> \-PE 7eae0000-7eb15000 \ ws2_32 ELF 7eb15000-7eb30000 Deferred version<elf> \-PE 7eb20000-7eb30000 \ version ELF 7eb30000-7ed1b000 Deferred user32<elf> \-PE 7eb40000-7ed1b000 \ user32 ELF 7ed1b000-7ee50000 Deferred gdi32<elf> \-PE 7ed30000-7ee50000 \ gdi32 ELF 7ee50000-7ef10000 Deferred msvcrt<elf> \-PE 7ee70000-7ef10000 \ msvcrt ELF 7ef10000-7ef8f000 Deferred advapi32<elf> \-PE 7ef20000-7ef8f000 \ advapi32 ELF 7ef8f000-7efa3000 Deferred libnss_files.so.2 ELF 7efa3000-7f000000 Deferred libm.so.6 ELF f73de000-f73e3000 Deferred libdl.so.2 ELF f73e3000-f758d000 Deferred libc.so.6 ELF f758d000-f75ac000 Deferred libpthread.so.0 ELF f75ac000-f777c000 Dwarf libwine.so.1 ELF f778f000-f77b8000 Deferred ld-linux.so.2 ELF f77b8000-f77b9000 Deferred [vdso].so Threads: process tid prio (all id:s are in hex) 0000000c services.exe 00000052 0 0000004f 0 0000000e 0 0000000d 0 00000013 explorer.exe 00000014 0 0000004d winedevice.exe 00000051 0 00000050 0 0000004e 0 00000088 (D) Z:\base\JohnTheRipper\run\john.exe [Z:\base\JohnTheRipper\run\john.exe --test-full=0] 00000089 0 <== 0000008c explorer.exe 0000008f 0 0000008e 0 0000008d 0 System information: Wine build: wine-2.15 (Staging) Platform: i386 (WOW64) Version: Windows 7 Host system: Linux Host version: 3.13.0-129-generic ```
bsakaguchi 2026-10-15 04:26:41 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1852
No description provided.