9289 matches found
CVE-2016-9438
An issue was discovered in the Tatsuya Kinoshita w3m fork before 0.5.3-31. w3m allows remote attackers to cause a denial of service segmentation fault and crash via a crafted HTML page...
CVE-2016-9622
An issue was discovered in the Tatsuya Kinoshita w3m fork before 0.5.3-33. w3m allows remote attackers to cause a denial of service segmentation fault and crash via a crafted HTML page...
shopify-scripts: Crash: A call to Symbol.new leads to a crash when inspecting the resulting object
Calling Symbol.new leads to a when inspect is called on that method probably even more methods. From my point of view the root cause is related to 185794 the underlying boxing model. Trying the same with Ruby 2.3 will lead to a NoMethodError: undefined method 'new' for Symbol:Class, which is...
shopify-scripts: Invalid memory write caused by incorrect upper bound in array_copy
Ok, here is a weird one! It only crashes in mruby, and can't be made to crash in mruby-engine as max memory possible to extend to is 256M which this requires more. The file is: values = 3,5,8 test = 1,6 results,= 1.2 values.each do |value| case value when test results 0x10000222d : movq %rdx, %ra...
shopify-scripts: Crash: mrb_any_to_s can't handle NilClass, Symbol and Fixnum
When using boxingword.h haven't tested other boxing methods yet, mrbanytos is unable to handle NilClass, Symbol and Fixnum. This can be achieved by just deleting :tos from the class and let mrbanytos crash. I tried to come up with a fix but I'm not 100% sure where this should be fixed. The boxing...
shopify-scripts: Null pointer dereference in mrb_str_concat
Hi, The following file causes a segmentation fault due to a null pointer in mrbstrconcat which calls mrbstrmodify then checkfrozen which tries to dereference it. "O=0" $ ./dev/bin/mruby --version mruby 1.2.0 2015-11-17 $ ./dev/bin/mruby crash.rb Segmentation fault: 11 $ lldb ./dev/bin/mruby...
shopify-scripts: Crash: calling Proc::initialize_copy with a Proc instance where initialize never ran leads to a crash
Using the same trick from 184661 with Proc leads to another crash, this time in Proc related functions. Again, haven't looked into it besides validity testing and an initial code lookup more detailed investigation + possible patches when there's more time on my side. Again, to give you guys the...
shopify-scripts: Denial of service due to invalid memory access in mrb_ary_concat
Hi, The following file causes a segmentation fault in mruby, which also causes a segmentation fault in mruby-engine. I've minimized this file down to the bare bones what crashes it, then renamed variables and tidied so you can see what is needed and what isn't. case "" when 0 end x case when true...
shopify-scripts: Invalid memory access while freeing memory, caused by invalid type passed to mrb_ary_unshift
Hi, Phew, this was a tricky one as the cause wasn't next door to where the dereference happened! The file causing this is: a case when nil redo end $ ./dev/bin/mruby --version mruby 1.2.0 2015-11-17 $ ./dev/bin/mruby crash.rb crash.rb:1:3: '' interpreted as argument prefix trace: 0 crash.rb:3...
shopify-scripts: Null pointer dereference in ary_concat
Hi, The following file causes a segmentation fault in mruby, which also causes a segmentation fault in mruby-engine. I've minimized this file down to the bare bones what crashes it, then renamed variables and tidied so you can see what is needed and what isn't. a=0 b=nil a.each do |a| a = case a...
shopify-scripts: Segmentation fault when a Ruby method is invoked by a C method via Object#send
We can arrange for C to call Objectsend by aliasing it over initialize. This will cause Classnew a C function to call initialize which is actually Objectsend with arbitrary arguments. If we invoke a Ruby method through Objectsend, mruby segfaults: def foo end class X aliasmethod :initialize, :sen...
shopify-scripts: Segfault and/or potential unwanted (byte)code execution with "break" and "||=" inside a loop
Introduction ============ Certain invalid inputs invalid Ruby programs crash mruby and mrubyengine including the parent MRI VM. The programs always involve the ||= operator, loops and the break keyword. Proof of Concept ================ crash.rb -------- A ||= break while break 1. Save the above...
shopify-scripts: SIGSEGV on mruby's mark_tbl() (Invalid memory access)
There is an invalid memory access on mruby when calling to marktbl which causes a SIGSEGV and leads to denial of service. Sample The following code triggers the bug attached as marktbl.min2.rb: ruby t0me=% Array.new9t0me.empty?s=Array.new9%0 s=Array.dup.new23 Array0 Array0..6 Crash Here we can se...
shopify-scripts: Broken handling of maximum number of method call arguments leads to segfault
Introduction ============ Improper logic for handling of maximum number of method call arguments leads to dereferencing an invalid pointer in some cases, which causes a segfault in both mruby and mrubyengine and the parent MRI. The crash only happens when the number of arguments, n == CALLMAXARGS...
php: xml_parse_into_struct() can crash when XML parser is re-used
The xmlparseintostruct function in ext/xml/xml.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 allows remote attackers to cause a denial of service buffer under-read and segmentation fault or possibly have unspecified other impact via crafted XML data in the second argument,...
php: wddx_deserialize allows illegal memory access
The phpwddxprocessdata function in ext/wddx/wddx.c in PHP before 5.6.25 and 7.x before 7.0.10 allows remote attackers to cause a denial of service segmentation fault or possibly have unspecified other impact via an invalid ISO 8601 time value, as demonstrated by a wddxdeserialize call that...
shopify-scripts: SIGSEV on mrb_ary_splice
Sample The following code causes a SIGSEV when executed under the sandbox t0me=methods t0me0,0=t0me Crash Here we can see the crash full crash output attached $ bin/sandbox /tmp/mrbarysplice-crash.rb bin/sandbox:21: BUG Segmentation fault at 0x00005200000004 ruby 2.3.1p112 2016-04-26...
shopify-scripts: Segfault in mruby, mruby_engine and the parent MRI Ruby due to null pointer dereference
Introduction ============ Certain valid Ruby programs are able to cause a segmentation fault in mruby through a null pointer derefence, which in turn leads to a crash in mrubyengine and the parent MRI Ruby process. Proof of concept ================ crash.rb: --------- def method yield end method&...
shopify-scripts: Range#initialize_copy null pointer dereference
Heya! It's possible to segfault mruby through mruby-engine with the following snippet of code: Range.removemethod:initializecopy 1..2.dup.tos This can be triggered through mruby-engine like this: MRubyEngine.new5121024, 1000, 1000.sandboxeval"/tmp", % Range.removemethod:initializecopy 1..2.dup.to...
ntp: ntpd crash when processing config commands with statistics type
It was found that ntpd would exit with a segmentation fault when a statistics type that was not enabled during compilation e.g. timingstats was referenced by the statistics or filegen configuration command...