<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>752</bug_id>
          
          <creation_ts>2013-06-11 16:05:46 +0200</creation_ts>
          <short_desc>Review Code Vulnerabilities (Permission Checks of new exposed code and privileged access)</short_desc>
          <delta_ts>2013-06-21 05:09:31 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>General</product>
          <component>source_code</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>gluegen 1a01dce6c42b398cdd68d405828774a3ab366456
joal 072ac81a76db9c9eb24c639a38bee75bf0ed5c9e
jogl 05eef46e33f41f5c234ffb1563fd8f641208fe85</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2650</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-06-11 16:05:46 +0200</bug_when>
    <thetext>This review focuses on how we perform permission checks,
or better - do we circumvent some assuming full privileges ?
Some native methods do need extra permission validation, i.e. loading native libraries.

Further more AccessController.doPrivileged(..) shall not cover generic code
exposing a critical feature to the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2651</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-06-11 16:11:33 +0200</bug_when>
    <thetext>Further more .. we should rely on the SecuritManager, i.e. AccessControlContext&apos;s
&apos;checkPermission(Permission)&apos; code to comply w/ fine grained permission access.

It is also possible to have full permission w/o having any certificates (-&gt; policy file).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2652</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-06-11 16:48:48 +0200</bug_when>
    <thetext>Impact:

- SecurityUtil&apos;s assumption of allowing to use internal AcceccControllerContext (medium):
  - access insecure properties
  - get  temp folder w/o write access

- Native Library loading bug: No dyn. link permission check (medium+):
  - Overwrite a currently in use library ?
  - Actually not w/ our code, since we cache the dynamic looked-up symbols
    (right after loading the library)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>