Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap-buffer-overflow on dcputs #148

Closed
legend-issue opened this issue Jul 4, 2018 · 0 comments
Closed

Heap-buffer-overflow on dcputs #148

legend-issue opened this issue Jul 4, 2018 · 0 comments

Comments

@legend-issue
Copy link

=================================================================
==105317==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62e000082400 at pc 0x7f7de115606e bp 0x7ffedc440790 sp 0x7ffedc43ff38
WRITE of size 45 at 0x62e000082400 thread T0
    #0 0x7f7de115606d in strcat (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x7306d)
    #1 0x40f823 in dcputs /home/aflgo/libming-ming-0_4_8/util/decompile.c:104
    #2 0x41db61 in decompileIMPLEMENTS /home/aflgo/libming-ming-0_4_8/util/decompile.c:3094
    #3 0x41e515 in decompileAction /home/aflgo/libming-ming-0_4_8/util/decompile.c:3375
    #4 0x41e5cc in decompileActions /home/aflgo/libming-ming-0_4_8/util/decompile.c:3401
    #5 0x41e6f9 in decompile5Action /home/aflgo/libming-ming-0_4_8/util/decompile.c:3423
    #6 0x40b6bf in outputSWF_DOACTION /home/aflgo/libming-ming-0_4_8/util/outputscript.c:1547
    #7 0x40dc79 in outputBlock /home/aflgo/libming-ming-0_4_8/util/outputscript.c:2079
    #8 0x40ecab in readMovie /home/aflgo/libming-ming-0_4_8/util/main.c:277
    #9 0x40f3da in main /home/aflgo/libming-ming-0_4_8/util/main.c:350
    #10 0x7f7de051082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #11 0x401b18 in _start (/home/aflgo/libming-ming-0_4_8/util/.libs/lt-swftotcl+0x401b18)

0x62e000082400 is located 0 bytes to the right of 40960-byte region [0x62e000078400,0x62e000082400)
allocated by thread T0 here:
    #0 0x7f7de117b79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
    #1 0x40f75a in dcinit /home/aflgo/libming-ming-0_4_8/util/decompile.c:84
    #2 0x41e61e in decompile5Action /home/aflgo/libming-ming-0_4_8/util/decompile.c:3415
    #3 0x40b6bf in outputSWF_DOACTION /home/aflgo/libming-ming-0_4_8/util/outputscript.c:1547
    #4 0x40dc79 in outputBlock /home/aflgo/libming-ming-0_4_8/util/outputscript.c:2079
    #5 0x40ecab in readMovie /home/aflgo/libming-ming-0_4_8/util/main.c:277
    #6 0x40f3da in main /home/aflgo/libming-ming-0_4_8/util/main.c:350
    #7 0x7f7de051082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 strcat
Shadow bytes around the buggy address:
  0x0c5c80008430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5c80008440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5c80008450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5c80008460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c5c80008470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c5c80008480:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5c80008490: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5c800084a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5c800084b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5c800084c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c5c800084d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
==105317==ABORTING

swftotcl $poc
https://github.com/legend-issue/pocs/blob/master/libming/id:000235%2Csig:11%2Csrc:000000%2Cop:havoc%2Crep:4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant