contrast-agent 3.12.1 → 3.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/funchook/autom4te.cache/output.0 +1 -13
  3. data/funchook/autom4te.cache/requests +50 -51
  4. data/funchook/autom4te.cache/traces.0 +0 -3
  5. data/funchook/config.log +378 -217
  6. data/funchook/config.status +23 -24
  7. data/funchook/configure +1 -13
  8. data/funchook/src/Makefile +7 -7
  9. data/funchook/src/config.h +2 -2
  10. data/funchook/src/decoder.o +0 -0
  11. data/funchook/src/distorm.o +0 -0
  12. data/funchook/src/funchook.o +0 -0
  13. data/funchook/src/funchook_io.o +0 -0
  14. data/funchook/src/funchook_syscall.o +0 -0
  15. data/funchook/src/funchook_unix.o +0 -0
  16. data/funchook/src/funchook_x86.o +0 -0
  17. data/funchook/src/instructions.o +0 -0
  18. data/funchook/src/insts.o +0 -0
  19. data/funchook/src/libfunchook.dylib +0 -0
  20. data/funchook/src/mnemonics.o +0 -0
  21. data/funchook/src/operands.o +0 -0
  22. data/funchook/src/os_func.o +0 -0
  23. data/funchook/src/os_func_unix.o +0 -0
  24. data/funchook/src/prefix.o +0 -0
  25. data/funchook/src/printf_base.o +0 -0
  26. data/funchook/src/textdefs.o +0 -0
  27. data/funchook/src/wstring.o +0 -0
  28. data/funchook/test/Makefile +2 -2
  29. data/funchook/test/funchook_test +0 -0
  30. data/funchook/test/libfunchook_test.so +0 -0
  31. data/funchook/test/libfunchook_test.so.dSYM/Contents/Info.plist +20 -0
  32. data/funchook/test/libfunchook_test.so.dSYM/Contents/Resources/DWARF/libfunchook_test.so +0 -0
  33. data/funchook/test/test_main.o +0 -0
  34. data/funchook/test/x86_64_test.o +0 -0
  35. data/lib/contrast/agent/assess/policy/trigger_method.rb +1 -1
  36. data/lib/contrast/agent/version.rb +1 -1
  37. data/lib/contrast/utils/class_util.rb +3 -1
  38. metadata +16 -14
  39. data/funchook/src/libfunchook.so +0 -0
@@ -1,4 +1,4 @@
1
- #! /bin/bash
1
+ #! /bin/sh
2
2
  # Generated by configure.
3
3
  # Run this file to recreate the current configuration.
4
4
  # Compiler output produced by configure, useful for debugging
@@ -8,7 +8,7 @@ debug=false
8
8
  ac_cs_recheck=false
9
9
  ac_cs_silent=false
10
10
 
11
- SHELL=${CONFIG_SHELL-/bin/bash}
11
+ SHELL=${CONFIG_SHELL-/bin/sh}
12
12
  export SHELL
13
13
  ## -------------------- ##
14
14
  ## M4sh Initialization. ##
@@ -433,7 +433,7 @@ Copyright (C) 2012 Free Software Foundation, Inc.
433
433
  This config.status script is free software; the Free Software Foundation
434
434
  gives unlimited permission to copy, distribute and modify it."
435
435
 
436
- ac_pwd='/opt/atlassian/pipelines/agent/build/funchook'
436
+ ac_pwd='/Users/donaldpropst/Projects/ruby-agent/funchook'
437
437
  srcdir='.'
438
438
  test -n "$AWK" || AWK=awk
439
439
  # The default lists apply if the user does not specify any file.
@@ -512,10 +512,10 @@ if $ac_cs_silent; then
512
512
  fi
513
513
 
514
514
  if $ac_cs_recheck; then
515
- set X /bin/bash './configure' $ac_configure_extra_args --no-create --no-recursion
515
+ set X /bin/sh './configure' $ac_configure_extra_args --no-create --no-recursion
516
516
  shift
517
- $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6
518
- CONFIG_SHELL='/bin/bash'
517
+ $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
518
+ CONFIG_SHELL='/bin/sh'
519
519
  export CONFIG_SHELL
520
520
  exec "$@"
521
521
  fi
@@ -604,24 +604,24 @@ echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
604
604
  cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
605
605
  S["LTLIBOBJS"]=""
606
606
  S["LIBOBJS"]=""
607
- S["IF_OSX"]="#"
608
- S["IF_LINUX"]=""
607
+ S["IF_OSX"]=""
608
+ S["IF_LINUX"]="#"
609
609
  S["IF_WIN32"]="#"
610
610
  S["PIC_CFLAGS"]="-fPIC"
611
611
  S["LINK_SHARED"]="$(CC) -shared"
612
- S["LIBFUNCHOOK_SO"]="libfunchook.so"
612
+ S["LIBFUNCHOOK_SO"]="libfunchook.dylib"
613
613
  S["FUNCHOOK_OS"]="unix"
614
614
  S["FUNCHOOK_CPU"]="x86_64"
615
- S["host_os"]="linux-gnu"
616
- S["host_vendor"]="unknown"
615
+ S["host_os"]="darwin18.6.0"
616
+ S["host_vendor"]="apple"
617
617
  S["host_cpu"]="x86_64"
618
- S["host"]="x86_64-unknown-linux-gnu"
619
- S["build_os"]="linux-gnu"
620
- S["build_vendor"]="unknown"
618
+ S["host"]="x86_64-apple-darwin18.6.0"
619
+ S["build_os"]="darwin18.6.0"
620
+ S["build_vendor"]="apple"
621
621
  S["build_cpu"]="x86_64"
622
- S["build"]="x86_64-unknown-linux-gnu"
623
- S["EGREP"]="/bin/grep -E"
624
- S["GREP"]="/bin/grep"
622
+ S["build"]="x86_64-apple-darwin18.6.0"
623
+ S["EGREP"]="/usr/bin/grep -E"
624
+ S["GREP"]="/usr/bin/grep"
625
625
  S["CPP"]="gcc -E"
626
626
  S["OBJEXT"]="o"
627
627
  S["EXEEXT"]=""
@@ -633,10 +633,10 @@ S["CC"]="gcc"
633
633
  S["target_alias"]=""
634
634
  S["host_alias"]=""
635
635
  S["build_alias"]=""
636
- S["LIBS"]="-ldl"
636
+ S["LIBS"]=""
637
637
  S["ECHO_T"]=""
638
- S["ECHO_N"]="-n"
639
- S["ECHO_C"]=""
638
+ S["ECHO_N"]=""
639
+ S["ECHO_C"]="\\c"
640
640
  S["DEFS"]="-DHAVE_CONFIG_H"
641
641
  S["mandir"]="${datarootdir}/man"
642
642
  S["localedir"]="${datarootdir}/locale"
@@ -649,7 +649,6 @@ S["infodir"]="${datarootdir}/info"
649
649
  S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
650
650
  S["oldincludedir"]="/usr/include"
651
651
  S["includedir"]="${prefix}/include"
652
- S["runstatedir"]="${localstatedir}/run"
653
652
  S["localstatedir"]="${prefix}/var"
654
653
  S["sharedstatedir"]="${prefix}/com"
655
654
  S["sysconfdir"]="${prefix}/etc"
@@ -668,7 +667,7 @@ S["PACKAGE_VERSION"]="0.1"
668
667
  S["PACKAGE_TARNAME"]="funchook"
669
668
  S["PACKAGE_NAME"]="funchook"
670
669
  S["PATH_SEPARATOR"]=":"
671
- S["SHELL"]="/bin/bash"
670
+ S["SHELL"]="/bin/sh"
672
671
  _ACAWK
673
672
  cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
674
673
  for (key in S) S_is_set[key] = 1
@@ -732,8 +731,8 @@ D["_GNU_SOURCE"]=" 1"
732
731
  D["_POSIX_PTHREAD_SEMANTICS"]=" 1"
733
732
  D["_TANDEM_SOURCE"]=" 1"
734
733
  D["SIZEOF_VOIDP"]=" 8"
735
- D["HAVE_DECL__SYS_NERR"]=" 1"
736
- D["HAVE_DECL__SYS_ERRLIST"]=" 1"
734
+ D["HAVE_DECL__SYS_NERR"]=" 0"
735
+ D["HAVE_DECL__SYS_ERRLIST"]=" 0"
737
736
  D["HAVE_DECL_SYS_NERR"]=" 1"
738
737
  D["HAVE_DECL_SYS_ERRLIST"]=" 1"
739
738
  for (key in D) D_is_set[key] = 1
@@ -665,7 +665,6 @@ infodir
665
665
  docdir
666
666
  oldincludedir
667
667
  includedir
668
- runstatedir
669
668
  localstatedir
670
669
  sharedstatedir
671
670
  sysconfdir
@@ -736,7 +735,6 @@ datadir='${datarootdir}'
736
735
  sysconfdir='${prefix}/etc'
737
736
  sharedstatedir='${prefix}/com'
738
737
  localstatedir='${prefix}/var'
739
- runstatedir='${localstatedir}/run'
740
738
  includedir='${prefix}/include'
741
739
  oldincludedir='/usr/include'
742
740
  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -989,15 +987,6 @@ do
989
987
  | -silent | --silent | --silen | --sile | --sil)
990
988
  silent=yes ;;
991
989
 
992
- -runstatedir | --runstatedir | --runstatedi | --runstated \
993
- | --runstate | --runstat | --runsta | --runst | --runs \
994
- | --run | --ru | --r)
995
- ac_prev=runstatedir ;;
996
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
997
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
998
- | --run=* | --ru=* | --r=*)
999
- runstatedir=$ac_optarg ;;
1000
-
1001
990
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002
991
  ac_prev=sbindir ;;
1003
992
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1135,7 +1124,7 @@ fi
1135
1124
  for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136
1125
  datadir sysconfdir sharedstatedir localstatedir includedir \
1137
1126
  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138
- libdir localedir mandir runstatedir
1127
+ libdir localedir mandir
1139
1128
  do
1140
1129
  eval ac_val=\$$ac_var
1141
1130
  # Remove trailing slashes.
@@ -1288,7 +1277,6 @@ Fine tuning of the installation directories:
1288
1277
  --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289
1278
  --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290
1279
  --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1292
1280
  --libdir=DIR object code libraries [EPREFIX/lib]
1293
1281
  --includedir=DIR C header files [PREFIX/include]
1294
1282
  --oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -7,11 +7,11 @@ VPATH = $(DISTORM3_DIR)/src:$(top_srcdir)/include
7
7
 
8
8
  CC = gcc
9
9
  CFLAGS = -g -O2 -Wall -fvisibility=hidden -fPIC -g -I. -I$(top_srcdir)/include -I$(DISTORM3_DIR)/include
10
- LIBS = -ldl
10
+ LIBS =
11
11
  LINK_SHARED = $(CC) -shared
12
12
 
13
13
  #LIBS += -lpsapi
14
- #LDFLAGS += -install_name @rpath/libfunchook.dylib
14
+ LDFLAGS += -install_name @rpath/libfunchook.dylib
15
15
 
16
16
  FUNCHOOK_OBJS = \
17
17
  os_func.o \
@@ -22,8 +22,8 @@ FUNCHOOK_OBJS = \
22
22
  funchook_x86.o \
23
23
  funchook_unix.o
24
24
 
25
- FUNCHOOK_OBJS += funchook_syscall.o
26
25
  #FUNCHOOK_OBJS += funchook_syscall.o
26
+ FUNCHOOK_OBJS += funchook_syscall.o
27
27
 
28
28
  DISTORM3_OBJS = \
29
29
  mnemonics.o \
@@ -43,13 +43,13 @@ HEADERS = \
43
43
 
44
44
  OBJS = $(FUNCHOOK_OBJS) $(DISTORM3_OBJS)
45
45
 
46
- all: libfunchook.so
46
+ all: libfunchook.dylib
47
47
 
48
48
  check:
49
49
  cd ../test && $(MAKE) check
50
50
 
51
- libfunchook.so: $(OBJS)
52
- $(LINK_SHARED) $(LDFLAGS) -o libfunchook.so $(OBJS) $(LIBS)
51
+ libfunchook.dylib: $(OBJS)
52
+ $(LINK_SHARED) $(LDFLAGS) -o libfunchook.dylib $(OBJS) $(LIBS)
53
53
 
54
54
  funchook.o: funchook.c $(HEADERS)
55
55
  funchook_linux.o: funchook_linux.c $(HEADERS)
@@ -64,7 +64,7 @@ insts.o: insts.c
64
64
  $(CC) $(CFLAGS) -c -o $@ $< -Wno-missing-braces
65
65
 
66
66
  clean:
67
- $(RM) libfunchook.so $(OBJS)
67
+ $(RM) libfunchook.dylib $(OBJS)
68
68
 
69
69
  Makefile config.h: $(srcdir)/Makefile.in $(srcdir)/config.h.in $(top_builddir)/config.status
70
70
  cd $(top_builddir) && ./config.status
@@ -11,11 +11,11 @@
11
11
 
12
12
  /* Define to 1 if you have the declaration of `_sys_errlist', and to 0 if you
13
13
  don't. */
14
- #define HAVE_DECL__SYS_ERRLIST 1
14
+ #define HAVE_DECL__SYS_ERRLIST 0
15
15
 
16
16
  /* Define to 1 if you have the declaration of `_sys_nerr', and to 0 if you
17
17
  don't. */
18
- #define HAVE_DECL__SYS_NERR 1
18
+ #define HAVE_DECL__SYS_NERR 0
19
19
 
20
20
  /* Define to 1 if you have the <inttypes.h> header file. */
21
21
  #define HAVE_INTTYPES_H 1
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -14,7 +14,7 @@ DLLTOOL = $(firstword $(CC:gcc=dlltool))
14
14
  SO_OBJS = $(srcdir)/libfunchook_test.c $(srcdir)/libfunchook_test2.c
15
15
  #LDFLAGS += -Wl,--out-implib,funchook_test.lib
16
16
  #FUNCHOOK_TEST_LIB = funchook_test_exe.lib
17
- #LDFLAGS += -Wl,-undefined,dynamic_lookup
17
+ LDFLAGS += -Wl,-undefined,dynamic_lookup
18
18
 
19
19
  VPATH = ../src
20
20
 
@@ -24,7 +24,7 @@ test: funchook_test$(EXEEXT)
24
24
  # cmp -s $(top_builddir)/src/funchook.dll funchook.dll || cp $(top_builddir)/src/funchook.dll funchook.dll
25
25
  ./funchook_test$(EXEEXT)
26
26
 
27
- funchook_test$(EXEEXT): $(OBJS) libfunchook.so libfunchook_test.so
27
+ funchook_test$(EXEEXT): $(OBJS) libfunchook.dylib libfunchook_test.so
28
28
  $(CC) -o funchook_test$(EXEEXT) $(OBJS) $(LIBS)
29
29
 
30
30
  libfunchook_test.so: $(SO_OBJS) $(FUNCHOOK_TEST_LIB)
Binary file
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>English</string>
7
+ <key>CFBundleIdentifier</key>
8
+ <string>com.apple.xcode.dsym.libfunchook_test.so</string>
9
+ <key>CFBundleInfoDictionaryVersion</key>
10
+ <string>6.0</string>
11
+ <key>CFBundlePackageType</key>
12
+ <string>dSYM</string>
13
+ <key>CFBundleSignature</key>
14
+ <string>????</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleVersion</key>
18
+ <string>1</string>
19
+ </dict>
20
+ </plist>
Binary file
Binary file
@@ -230,7 +230,7 @@ module Contrast
230
230
  else
231
231
  logger.warn('Trigger source is of unknown type. Unable to inspect.',
232
232
  node_id: trigger_node.id,
233
- source_id: target.__id__,
233
+ source_id: source.__id__,
234
234
  source_type: source.cs__class.to_s)
235
235
  logger.trace(source.to_s[0..99])
236
236
  end
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Contrast
5
5
  module Agent
6
- VERSION = '3.12.1'
6
+ VERSION = '3.12.2'
7
7
  end
8
8
  end
@@ -56,7 +56,9 @@ module Contrast
56
56
  # @return [String] the human readable form of the String, as defined by
57
57
  # https://bitbucket.org/contrastsecurity/assess-specifications/src/master/vulnerability/capture-snapshot.md
58
58
  def to_contrast_string object
59
- if object.cs__is_a?(String)
59
+ # Only treat object like a string if it actually is a string
60
+ # some subclasses of String override string methods we depend on
61
+ if object.cs__class == String
60
62
  cached = to_cached_string(object)
61
63
  return cached if cached
62
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contrast-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.1
4
+ version: 3.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - galen.palmer@contrastsecurity.com
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2020-07-01 00:00:00.000000000 Z
15
+ date: 2020-07-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amazing_print
@@ -462,20 +462,20 @@ executables:
462
462
  - contrast_service
463
463
  extensions:
464
464
  - ext/cs__common/extconf.rb
465
- - ext/cs__assess_active_record_named/extconf.rb
466
- - ext/cs__assess_basic_object/extconf.rb
467
- - ext/cs__assess_string/extconf.rb
468
- - ext/cs__assess_string_interpolation26/extconf.rb
469
- - ext/cs__assess_array/extconf.rb
470
- - ext/cs__protect_kernel/extconf.rb
465
+ - ext/cs__assess_module/extconf.rb
471
466
  - ext/cs__assess_yield_track/extconf.rb
472
- - ext/cs__assess_kernel/extconf.rb
473
467
  - ext/cs__assess_hash/extconf.rb
474
- - ext/cs__assess_module/extconf.rb
475
- - ext/cs__contrast_patch/extconf.rb
468
+ - ext/cs__protect_kernel/extconf.rb
476
469
  - ext/cs__assess_regexp/extconf.rb
470
+ - ext/cs__assess_string_interpolation26/extconf.rb
471
+ - ext/cs__assess_kernel/extconf.rb
472
+ - ext/cs__assess_array/extconf.rb
477
473
  - ext/cs__assess_fiber_track/extconf.rb
478
474
  - ext/cs__assess_marshal_module/extconf.rb
475
+ - ext/cs__assess_string/extconf.rb
476
+ - ext/cs__contrast_patch/extconf.rb
477
+ - ext/cs__assess_basic_object/extconf.rb
478
+ - ext/cs__assess_active_record_named/extconf.rb
479
479
  extra_rdoc_files: []
480
480
  files:
481
481
  - ".clang-format"
@@ -664,7 +664,7 @@ files:
664
664
  - funchook/src/funchook_x86.o
665
665
  - funchook/src/instructions.o
666
666
  - funchook/src/insts.o
667
- - funchook/src/libfunchook.so
667
+ - funchook/src/libfunchook.dylib
668
668
  - funchook/src/mnemonics.o
669
669
  - funchook/src/operands.o
670
670
  - funchook/src/os_func.c
@@ -684,6 +684,8 @@ files:
684
684
  - funchook/test/funchook_test
685
685
  - funchook/test/libfunchook_test.c
686
686
  - funchook/test/libfunchook_test.so
687
+ - funchook/test/libfunchook_test.so.dSYM/Contents/Info.plist
688
+ - funchook/test/libfunchook_test.so.dSYM/Contents/Resources/DWARF/libfunchook_test.so
687
689
  - funchook/test/libfunchook_test2.c
688
690
  - funchook/test/suffix.list
689
691
  - funchook/test/test_main.c
@@ -958,7 +960,7 @@ files:
958
960
  - service_executables/mac/contrast-service
959
961
  - shared_libraries/.gitkeep
960
962
  - shared_libraries/funchook.h
961
- - shared_libraries/libfunchook.so
963
+ - shared_libraries/libfunchook.dylib
962
964
  homepage: https://www.contrastsecurity.com
963
965
  licenses:
964
966
  - CONTRAST SECURITY (see license file)
@@ -986,7 +988,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
986
988
  - !ruby/object:Gem::Version
987
989
  version: '0'
988
990
  requirements: []
989
- rubygems_version: 3.0.3
991
+ rubygems_version: 3.0.8
990
992
  signing_key:
991
993
  specification_version: 4
992
994
  summary: Contrast Security's agent for rack-based applications.
Binary file