You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/01/29 11:31:00 UTC

[jira] [Work logged] (IO-712) SecurityExceptions are hidden instead of breaking the regular flow

     [ https://issues.apache.org/jira/browse/IO-712?focusedWorklogId=544221&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-544221 ]

ASF GitHub Bot logged work on IO-712:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jan/21 11:30
            Start Date: 29/Jan/21 11:30
    Worklog Time Spent: 10m 
      Work Description: boris-unckel opened a new pull request #197:
URL: https://github.com/apache/commons-io/pull/197


   …flow
   
   Fixes https://issues.apache.org/jira/browse/IO-712
   SecurityExceptions are rethrown now.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 544221)
    Remaining Estimate: 0h
            Time Spent: 10m

> SecurityExceptions are hidden instead of breaking the regular flow
> ------------------------------------------------------------------
>
>                 Key: IO-712
>                 URL: https://issues.apache.org/jira/browse/IO-712
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.8.0
>            Reporter: Boris Unckel
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Several points in the code hide SecurityException. These _must_ always _break_ the regular control flow, if you're not the SecurityManager. 
> UseCase A: One wants to configure the SecurityManager and grant permissions. Part of the application is to delete a file. If the permission is missing, cleaning does not work. The missing exception does not allow to recognize that.
>  UseCase B: One has activated the SecurityManager. An attacker abuses the relevant method. The missing SecurityException hides this attempt, ones IDS can't alarm.
>  UseCase C: One utilizes the SecurityManager to test the system, to ensure every property (like file location) is set properly. The missing SecurityException does not support this UseCase.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)