Question

5
Replies
257
Views
Vinay Rallapalli (VinayR28)
Anthem

Anthem
US
VinayR28 Member since 2017 10 posts
Anthem
Posted: May 22, 2020
Last activity: September 11, 2020
Posted: 22 May 2020 14:45 EDT
Last activity: 11 Sep 2020 18:30 EDT

Execute shell script from PEGA

Hello ,

My requirement is to execute a shell script from PEGA 8.3.

I tried the below code and it is throwing vulnerable code detected error (Please see the SS). In order to resolve this I created a new DSS as mentioned in help article https://community.pega.com/sites/default/files/help_v83/procomhelpmain.htm#security/rule-security/configuring-java-injection-check-tsk.htm, but it did not seem to work. 

Code tried:

try{     new ProcessBuilder("/apps/Myshellscript.sh").start();   } catch(java.io.IOException ioEx) {   throw new PRRuntimeException(ioEx); }

***Edited by Moderator: Pallavi to update support request details***  

 

Pega Platform 8.3 Security Healthcare and Life Sciences Support Case Created