Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 624fc3a85c52564f81e72fc8e45aec00ffaf2621e887870a5036a43e419e7a2d
Ticket: 00d04c4f120904aa0c6bd76d542d57f4a0dd2eb3
base64 transchan over a refchan: segmentation fault
User & Date: pooryorick on 2018-11-14 19:53:36
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The following script:
    
    <code><verbatim>
    package require base64
    package require tcl::chan::string
    package require tcl::transform::base64
    set chan [tcl::chan::string {T3JpZ2luYWwtUmVjaXBpZW50OiA8L2ZheD1ibHViYkBndW1taS5ib290PgpBY3Rpb246IGZhaWxl
    ZApEaWFnbm9zdGljLUNvZGU6IHNtdHA7IDU1MCAjNS4xLjAgQWRkcmVzcyByZWplY3RlZC4KUmVt
    b3RlLU1UQTogNTMuMjQuMjgyLjE1MA=
    }]
    
    tcl::transform::base64 $chan
    puts [read $chan]
    </verbatim></code>
    
    
    produces a segmentation fault:
    
    <code><verbatim>
    #0  0x00007ffff793df53 in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
    #1  0x00007ffff7ef1249 in ResultAdd (rPtr=0x55555561bdf8, buf=0x55555566fd88 "\300\306`UUU", toWrite=-1) at /path/to/generic/tclIORTrans.c:3005
    #2  0x00007ffff7ef199a in TransformDrain (rtPtr=0x55555561bda0, errorCodePtr=0x7fffffffdac0) at /path/to/generic/tclIORTrans.c:3239
    </verbatim></code>
    
    
    Beware!  This is the kind of report that could contain a trojan script that
    could conduct a terminal attack to execute arbitrary code.
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "pooryorick"
  13. subsystem changed to: "25. Channel System"
  14. title changed to: "transchan over a refchan: segmentation fault"
  15. type changed to: "Bug"