Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50982

AppScanStandardBuilder persists PrintStream to the disk (JEP-200)

      According to the code inspection, there is a JEP-200 issue in the plugin:

      This code likely causes a JEP-200 security exception when the object gets persisted to the disk. "java.io.PrintStream" is not whitelisted in Jenkins for a reason, because loggers are not expected reliably after being deserialized from the disk.

      Useful links about JEP-200:

          [JENKINS-50982] AppScanStandardBuilder persists PrintStream to the disk (JEP-200)

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Component/s New: ibm-security-appscanstandard-scanner-plugin [ 21689 ]
          Component/s Original: ibm-security-appscansource-scanner-plugin [ 21460 ]
          Oleg Nenashev made changes -
          Description Original: According to the code inspection, there is a JEP-200 issue in the plugin:
          * https://github.com/jenkinsci/ibm-security-appscansource-scanner-plugin/blob/3a925c5b9016a6a5db8c5c68d2764805a4603f94/src/main/java/com/aspectsecurity/automationservices/plugins/jenkins/appscansource/AppScanSourceBuilder.java#L55

          This code likely causes a JEP-200 security exception when the object gets persisted to the disk. "java.io.PrintStream" is not whitelisted in Jenkins for a reason, because loggers are not expected reliably after being deserialized from the disk.

          Useful links about JEP-200:

          * Blog post for users: https://jenkins.io/blog/2018/03/15/jep-200-lts/
          * JEP-200 guidelines for plugin developers: https://jenkins.io/blog/2018/01/13/jep-200/#for-plugin-developers
          New: According to the code inspection, there is a JEP-200 issue in the plugin:
          * https://github.com/jenkinsci/ibm-security-appscanstandard-scanner-plugin/blob/62c0967a9d2e623d6eb97dd2c2f354f9ff87f5ac/src/main/java/appscanstdrdintegration/appscanstandard/AppScanStandardBuilder.java#L146

          This code likely causes a JEP-200 security exception when the object gets persisted to the disk. "java.io.PrintStream" is not whitelisted in Jenkins for a reason, because loggers are not expected reliably after being deserialized from the disk.

          Useful links about JEP-200:

          * Blog post for users: https://jenkins.io/blog/2018/03/15/jep-200-lts/
          * JEP-200 guidelines for plugin developers: https://jenkins.io/blog/2018/01/13/jep-200/#for-plugin-developers
          Oleg Nenashev made changes -
          Assignee Original: Kevin Fealey [ kevinfealey ] New: Tiago Lopes [ tlopespt ]

          Tiago Lopes added a comment -

          I'll have a look into it and deploy an update asap, thanks.

          Tiago Lopes added a comment - I'll have a look into it and deploy an update asap, thanks.

            tlopespt Tiago Lopes
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: