<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Smitha venugopal on Medium]]></title>
        <description><![CDATA[Stories by Smitha venugopal on Medium]]></description>
        <link>https://medium.com/@smvenugo?source=rss-ba2204d5f785------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Stl1A9VNBMsRvJLJh3rhLg.jpeg</url>
            <title>Stories by Smitha venugopal on Medium</title>
            <link>https://medium.com/@smvenugo?source=rss-ba2204d5f785------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:26:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@smvenugo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Code to Production with IBM Operation Decision Manager on Cloud]]></title>
            <link>https://medium.com/@smvenugo/from-code-to-production-with-ibm-operation-decision-manager-on-cloud-7784e347a70f?source=rss-ba2204d5f785------2</link>
            <guid isPermaLink="false">https://medium.com/p/7784e347a70f</guid>
            <dc:creator><![CDATA[Smitha venugopal]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 15:08:28 GMT</pubDate>
            <atom:updated>2025-08-20T15:08:28.582Z</atom:updated>
            <content:encoded><![CDATA[<p>IBM’s Operational Decision Manager on Cloud (ODM on Cloud) is a cloud-based platform for creating and managing business. While it enables users to express organizational decisions and policies as business rules, making them available to production applications, it facilitates collaborative development, testing, and deployment of these rules in a cloud-based environment</p><p>One of the Key focuses organizations have is to deliver software faster and with higher quality by automating the software development lifecycle, thereby be able to respond to market demands quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1DrxnIcv_dhTKr4kmuWsw.jpeg" /></figure><p>This article focuses on how to automate CI/CD (Continuous Integration/Continuous Delivery or Deployment) specifically for decision services on ODM on Cloud.</p><p>The build and deploy strategy is covered as two separate sections below</p><p>Build Pipeline:<br> <br> While on On-premise systems you can build and publish Decision services using ANT tasks/Java API, on ODM on Cloud, you could rely on available REST APIs on the Decision Center to get the same effect.</p><p>For instance, /v1/decisionservices/{decisionServiceId}/import, part of the <strong>Decision Center REST API</strong> can used for <strong>importing a Decision Service </strong>into Decision Center — typically <strong>via automation </strong>(e.g., CI/CD pipeline), <strong>not from Rule Designer</strong>.</p><blockquote>Note: Synchronization using ANT tasks is not available out of the box on ODM on Cloud. To do so, extra work is required and is beyond the scope of this document</blockquote><p>The below summarizes the differences based on a few factors like Automation, scripting coverage and Auth Support</p><p>REST API <br>✔ Automation friendly <br>✔ Works in Shell, Python, Node, etc. <br>✔ OAuth or Basic Auth <br>✔ Any language or curl</p><p>Ant Tasks<br>───────────────────────────────────────────────<br> ⚠ Requires ANT + setup<br> ⚠ Requires build.xml<br> ✘ Plaintext creds by default<br>✘ Java/ANT only</p><p>Thus, use of REST API is more flexible, scriptable, and better aligned with modern DevOps practices as compared to Ant tasks.</p><p>The REST Apis that could be useful here can be referred from <a href="https://www.ibm.com/docs/en/odmoc?topic=api-rest">https://www.ibm.com/docs/en/odmoc?topic=api-rest</a></p><blockquote>For instance,</blockquote><blockquote>1. POST /v1/decisionservices/{decisionServiceId}/import</blockquote><blockquote>2. GET /v1/decisionservices/{decisionServiceId}/export</blockquote><blockquote>3. <em>POST /v1/deployments/{deploymentId}/build?deploy=false</em></blockquote><h3>Build Pipeline</h3><h4>If not using Source code control system (SCCS)</h4><ol><li><strong>Export Decision Service</strong> (Export → Rule Project Archive (.zip)from Rule Designer).</li><li>On Regular intervals, <strong>export the rule project (Decision Service)</strong> from the Decision Center using REST API</li><li><strong>Store or pass credentials/token</strong> securely.</li><li><strong>Invoke the import API</strong> with the rule project .zip file.</li><li>(Optional) Call /build?deploy=false if you want to build without deploying.</li></ol><h4>If using a Source code control system (SCCS)</h4><p>Some customers have their source rules stored in some Source code control system like GIT or SVN etc. In this case, the pipeline needs to take in account,</p><p>· Check in and check out the Rule projects into and from the SCCS system using standard Git/SVN commands</p><p>· You could import the rule projects into Decision Center and further trigger a build only operation using REST API. For instance, <em>/v1/deployments/{deploymentId}/build</em></p><p>· Regularly, you could also export the rule project from Decision Center and push it to the SCC using automation. Note that when you export a rule project archive, the dependent XOM projects are not included.</p><blockquote>Note : It is recommended to baseline all code in SCC from Decision Center to avoid trouble as business users author and work with the rules once published to Decision Center while the rules are developed by technical users on Rule Designer. Additionally, Business Console offers the capabilities for business users to collaborate and author the rules along with a variety of functions like maintaining versions of rule artifacts, sophisticated governance features through DGF (Decision Governance Framework). An added advantage is that high resilience built in through backup and recoverability options, can be leveraged on ODM on Cloud</blockquote><h3>Limitations with ODM on Cloud</h3><p>· You <strong>cannot</strong> directly push/pull between <strong>Decision Center (cloud)</strong> and <strong>Git</strong>.</p><p>· Decision Center manages its own internal version history (branches/baselines).</p><p>· If the Decision Service does <strong>not yet exist</strong> in Decision Center, you must create it first (via UI or API).</p><p>· The rule project (.zip) must include the correct internal structure (automatically handled if exported via Rule Designer).</p><h3>Deploy Pipeline:</h3><p>Once the rule project is imported into Decision Center, the generation of the rule app is automatically done.<br>Alternatively, you can also use the REST api to build a deployment snapshot for testing purpose as mentioned in the previous section. <br> REST APIs can be employed to deploy apps to the Rule Execution Server in the desired environment. <br><br> For instance, a deploy automation could make use of REST API invocations as below</p><p>· On the decision center api, <br> <em>GET /v1/decisionservices/{decisionServiceId}/deployments</em><br> Retrieves the list of Deployment Configurations for the Decision Service in question</p><p>· On the decision center API, <br> <em>GET /v1/deployments/{deploymentId}/download </em><br> Downloads the rule app archive that can be then used to offline deploy onto Rule execution using the available REST apis on the Decision Server Console</p><p>· On the Decision Server Console, <br> <em>POST /v1/ruleapps</em> to deploy the rule app archive downloaded in the above step.</p><h4>Promotion to higher environments.</h4><p>In a typical life cycle, customer applications are first QA tested in the lower environments before they are deployed and tested onto the higher environments. <br>Finally, when deemed fit, the rule apps are deployed on Production servers. <br> <br>This can be achieved by use of REST apis available with the Decision Server Console ( ODM versions 9.0. and above )</p><h3>Examples:</h3><p>A few examples using for CI/CD are provided for illustration purposes. All the API needs appropriate access through a relevant Authorization Header ( either Basic or Bearer token in case of OAuth)</p><p>· Export rule project Archive from Rule Designer. The resultant archive file(zip) will have contents as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*3LodocUlVkK3VceFwW0uAw.png" /></figure><p>· <em>GET /v1/decisionservices— Re</em>trieves Decision Services</p><pre>curl -X ‘GET’ \<br>‘https://hostname/odm/dev/decisioncenter-api/v1/decisionservices&#39; \<br>-H ‘accept: application/json’ \</pre><p>Expected response:<br>HTTP Code : 200<br>Response Body : json element listing all Decision Services as shown in the extract below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*SBlMt6JJLU3ANFWGpFX9Pw.png" /></figure><p>· <em>POST /v1/decisionservices/{decisionServiceId}/import </em>— Imports an existing Decision Service project into Decision Center :</p><pre>curl -X &#39;POST&#39; \<br>  &#39;https://hostname/odm/dev/decisioncenter-api/v1/decisionservices/a199cacf-8b56-4693-b677-1570dbaa7487/import?override=true&#39; \<br>  -H &#39;accept: */*&#39; \<br>  -H &#39;Content-Type: multipart/form-data&#39; \<br>  -F &#39;file=@Miniloan.zip;type=application/zip&#39;</pre><p>Expected Reponse:<br> HTTP Code : 200<br> Response Body : JSON with details of the imported service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Wy4X40bvebwyktpFrAYOEg.png" /></figure><blockquote>To import a decision service that does not exist yet (same UUID) or you don’t intend to override any project element in ‘main’ branch, then u could also use the REST API POST <a href="https://vhost120.blueworkscloud.com/odm/dev/decisioncenter-api/swagger-ui/index.html#/Admin/decisionServicesImport">/v1/decisionservices/import</a></blockquote><p>· <em>GET /v1/decisionservices/{decisionServiceId}/deployments</em> — Retrieve the deployment for a particular decision service of interest</p><pre>curl -X ‘GET’ \<br>‘https://hostname/odm/dev/decisioncenter- api/v1/decisionservices/a199cacf-8b56–4693-b677- 1570dbaa7487/deployments’ \<br>-H ‘accept: */*’</pre><p>Expected Response:<br>HTTP Code : 200<br>Response: JSON containing all deployment configurations as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*T24P0fAkt-4zw4-8X3rMTg.png" /></figure><p>· <em>GET /v1/deployments/{deploymentId}/download</em> — Download the Rule App Archive from Decision Center for offline deployment</p><pre>curl -X ‘GET’ \<br>‘https://hostname/odm/dev/decisioncenter-api/v1/deployments/54da698f-889b-477e-97a3-7195cfe146cf/download?includeXOMInArchive=true&#39; \<br>-H ‘accept: */*’</pre><p>Expected Response:<br>HTTP code : 200 <br>Response: A Rule App Archive file ( .jar ). For instance, Miniloan_Service_main.jar</p><p>· <em>POST /api/v1/ruleapps</em>— Deploys Rule Archive in the Rule execution server of the environment</p><pre>curl -i -X POST \<br>‘https://hostname/odm/dev/res/api/v1/ruleapps&#39;<br>-H “Accept:*/*” \<br>-H “Content-Type:application/octet-stream” \<br>-T “./Miniloan Service_main.jar” </pre><p>Expected Response :<br>HTTP code : 200<br>Response Body: XML detailing the deployment report as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*ZdyAzF1KlmDxxACSgSSzZg.png" /></figure><p>· <em>GET /api/v1/ruleapps/{ruleappname}/{ruleappversion}/archive</em> — Retrieves the rule app archive from Rule Exceution Server Console</p><pre>curl -X ‘GET’ ‘https://hostname/odm/dev/res/api/v1/ruleapps/CarRental_Smitha/1.0/archive&#39; — output ruleapp.jar</pre><p>Expected Response:<br>HTTP code : 200<br>Response Body: The resultant jar contents should be like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*yUziJj6GiudsJXd6e5O1aQ.png" /></figure><p>· <em>POST /api/v1/ruleapps</em> — Deploys the rule app archive to Rule Exceution Server Console</p><pre>curl -X ‘POST’ ‘https://hostname/odm/dev/res/api/v1/ruleapps&#39; -H ‘Content-Type: application/octet-stream’ -T ‘ruleapp.jar’</pre><p>Expected Response:<br>HTTP code : 200<br>Response Body: XML detailing the deployment report as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*11IXTRi1CnKKj9BXck8s7w.png" /></figure><p>· <em>POST /api/v1/ruleapps— </em>Deploy Rule Archive to a higher environment ( e.g Production)</p><pre>curl -X ‘POST’ ‘https://hostname/odm/prod/res/api/v1/ruleapps&#39; -H ‘Content-Type: application/octet-stream’ -T ‘ruleapp.jar’</pre><p>Expected Response:<br>HTTP code : 200<br>Response Body: XML detailing the deployment report as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*lVOmsrl1tsEK8ssweQvBog.png" /></figure><h3>Acknowledgements</h3><p>I would like to thank my colleague, Mr. Srikanth Ganesan, Business Automation Specialist, IBM Expert Labs, for reviewing this article and providing valuable feedback based on his expertise in IBM Operational Decision Manager (ODM).</p><h3>Useful References and links</h3><p>IBM Operational Decision Manager on Cloud Knowledge Center: <a href="https://www.ibm.com/docs/en/odmoc">https://www.ibm.com/docs/en/odmoc</a></p><p>IBM Operational Decision Manager Decision Center REST API: <a href="https://www.ibm.com/docs/en/odm/9.0.0?topic=api-rest">https://www.ibm.com/docs/en/odm/9.0.0?topic=api-rest</a></p><p>IBM Operational Decision Manager Rule Execution Server REST API: <a href="https://www.ibm.com/docs/en/odm/9.0.0?topic=reference-rest-representational-state-transfer-apis">https://www.ibm.com/docs/en/odm/9.0.0?topic=reference-rest-representational-state-transfer-apis</a></p><p>The ODM and DevOps Series: <a href="https://community.ibm.com/community/user/blogs/guilhem-molines1/2020/12/15/the-odm-and-devops-series-post-1">https://community.ibm.com/community/user/blogs/guilhem-molines1/2020/12/15/the-odm-and-devops-series-post-1</a></p><p>Automation with Build Command Tool (ODM):<a href="https://www.ibm.com/docs/en/odm/9.0.0?topic=command-building-projects-build-line">https://www.ibm.com/docs/en/odm/9.0.0?topic=command-building-projects-build-line</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7784e347a70f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IBM Business Automation Workflow, Security Vulnerability Analysis Part2: Examples from my…]]></title>
            <link>https://medium.com/ibm-business-automation-ap-el/ibm-business-automation-workflow-security-vulnerability-analysis-part2-examples-from-my-a4412bd5ccef?source=rss-ba2204d5f785------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4412bd5ccef</guid>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[baw]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <dc:creator><![CDATA[Smitha venugopal]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 09:01:01 GMT</pubDate>
            <atom:updated>2020-07-14T09:01:01.696Z</atom:updated>
            <content:encoded><![CDATA[<h3>IBM Business Automation Workflow, Security Vulnerability Analysis Part2: Examples from my experience</h3><p>A practical approach to creating secure environments is to be proactive and defensive and most companies today strive to protect their systems from security threats. At the same time, they adapt to the latest technologies and trends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G3Onvk4_s3JXiJ3u" /></figure><p>In this two-part article, I will share approaches and experience in addressing security risks and vulnerabilities. In <a href="https://medium.com/ibm-business-automation-workflow-tips-tricks-and/ibm-business-automation-workflow-security-vulnerability-analysis-part1-the-method-c51965868149">part 1:IBM Business Automation Workflow, Security Vulnerability Analysis Part1: The Method</a>, I described the method and steps towards securing BAW environments. In this second part, I shall share my experience in addressing vulnerabilities using examples that I have seen and worked with clients.</p><p>It is not uncommon to see message interactions that appear malicious (especially the ones from Burp collaborator servers) in the application logs. But, this is often evidence that there that vulnerability assessment is occurring. Most customers employ security teams to run vulnerability scans repeatedly to uncover any risks posed by their systems and solutions.</p><p>I have been engaged with customers to help mitigate security vulnerabilities in situations where traces of security risks were found at the firewall or appeared in the application logs.</p><h3>My experience with Security Vulnerabilities</h3><p>The following are a few examples of common security vulnerabilities, I have encountered in BAW solutions and how I have addressed them in my recent projects</p><blockquote>Most of these examples are from environments from IBM BPM version 8.6 with cumulative fix 2018.03. However, these do apply to later versions of Business Automation Workflow as well.</blockquote><h4>Path-Based Vulnerability -Path disclosure</h4><p>Threat: Users can discover web server paths and gain access to potentially sensitive files, directories, or directory listings.<br>Example URLs,</p><pre><em>/ProcessPortal/dashboards/SYSRP/1052</em></pre><pre><em>/rest/bpm/wle/v1/users/</em></pre><p>Configuration settings in the application server (Web Container) or the web server can mitigate this risk. We handled this in IBM HTTP Server by disabling directory browsing as specified in <a href="https://www.ibm.com/support/knowledgecenter/en/SS9JLE_8.2.0/com.ibm.itamesso.doc/tasks/disable_directory_browsing.html">Disabling Directory Browsing</a>. <br>Later versions of WAS have directory browsing disabled by default. However, any contradicting configuration in a deployed application can override the server defaults for that application.</p><p>For instance, a property setting <em>&lt;enable-directory-browsing value=” true”/&gt;</em> in an application’s ibm-web-ext.xml overrides the default behavior of WAS. In these cases, the value of the setting ‘<em>enable-directory-browsing value’</em> has to be changed to false.</p><p>The below applications in IBM BAW have Directory browsing property enabled:</p><ul><li>IBM_BPM_Teamworks</li><li>BSpaceEAR</li></ul><h4>Slow HTTP POST — Denial of Service vulnerability (DoS)</h4><p>Threat: An application-level DoS that consumes server resources by maintaining open connections for an extended period by slowly sending traffic to the server.</p><blockquote>This vulnerability can be posed due to many reasons as seen in the page <a href="https://owasp.org/www-community/attacks/Denial_of_Service">Denial Of Service</a>. The mitigation steps to be taken depends upon the cause of the attack</blockquote><p>My customer faced this vulnerability due to slow HTTP POST. Specifying timeouts for receiving request headers and body in the IBM HTTP Server configuration mitigated this risk. Refer to the <a href="http://publib.boulder.ibm.com/httpserv/manual70/mod/mod_reqtimeout.html">HTTP Server manual</a> for more details.</p><h4>Cross-Site Request Forgery vulnerability (CSRF)</h4><p>Threat: Forms /assets are susceptible to CSRF attack<br> Example URL,</p><pre><em>/ProcessPortal/dashboards/SYSRP/1004</em></pre><p>The standard CSRF countermeasure is to include a hidden form field with a random value specific to the user’s current session, which is then validated by the application on the server-side. Protect all forms within the application from CSRF attacks.<br> <br>My customer mitigated CSRF attacks by setting Workflow Security hardening properties,</p><ol><li>Whitelist a list of Referer /Origin headers.</li><li>Use Session tokens for CSRF Filtering.</li></ol><p><strong>Whitelist a list of Referer /Origin headers</strong>. <br>Requests with headers that do not match the whitelisted (Referer or Origin) values will be blocked. Requests that do not have Referer and or Origin headers specified are allowed.</p><p>To be able to set this property, you need to inspect the Referer and the Origin headers in between requests. Besides, an understanding of the use cases that could be affected by this setting is necessary.</p><p>Things to keep in mind,</p><ul><li>It is not advisable to whitelist a very long list of Referers.</li><li>It’s a good practice to review the existing headers using Developer tools (F12/fiddler) before you whitelist them. If any value for the Referer or origin is wrongly whitelisted, valid requests may get blocked.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*Chom3Gv5xCXaGrDuSECu8A.png" /><figcaption>Figure 1: Illustration of reviewing headers using Fiddler</figcaption></figure><ul><li>In cases where a web server sits in front of a Workflow Server cluster, and when there is a need to access a page (e.g. Process Admin console ) on individual nodes, bypassing the web server, the respective hosts have to be added to the referer list as well.</li><li>Customers may utilize remote locations (e.g., Kiosks, or other systems at outlets) to leverage IBM BAW services. Investigate the probability of the requests getting blocked due to CORS (Cross-Origin Resource Sharing), and apply measures to avoid invalid blockage.</li></ul><p>Whitelist Referer and Origin headers by using the following commands as given in <a href="https://www.ibm.com/support/knowledgecenter/en/SS8JB4/com.ibm.wbpm.imuc.doc/topics/rsec_harden_properties.html">IBM BAW Security Hardening properties</a>.</p><pre><em>Security.CsrfProtectionRefererWhitelist Security.CsrfProtectionOriginWhitelist</em></pre><blockquote>The Referer and Origin whitelisting takes the form of’ <em>hostname</em>’ and ‘protocol://hostname: port<em>’</em> respectively.<br> For example, ‘myhost.domain’ or ‘myhost’ for a Referer and https://myhost.domain:port’ for an origin</blockquote><blockquote>Note that ‘hostname.domain’ is not same as ‘hostname’</blockquote><p><strong>Use Session Tokens For CSRF Filtering<br></strong>Often a stream of <em>/teamworks/ajaxCoach</em> related URLs could pose as suspected attacks. Customers should evaluate complete URLs and ensure they are valid requests related to coaches built by them.</p><p>In some cases, it may be difficult to pinpoint which of these requests are malicious and hence may find its way past the firewall. Protecting IBM BAW systems from these become crucial in such cases.</p><p>CSRF blocking can be enabled for these URLs, in addition to Process Monitor console URLs, by setting the following BPM Properties</p><pre><em>Security.CsrfSessionTokenSalt </em>with a Value <em>‘verySecret’</em></pre><pre><em>Security.CsrfSessionTokenProtectedUris </em>for URIs <em>/teamworks/ajaxCoach </em>and <em>/teamworks/_cs</em></pre><p>Please refer to <a href="https://www.ibm.com/support/knowledgecenter/en/SS8JB4/com.ibm.wbpm.imuc.doc/topics/rsec_harden_properties.html">IBM BAW Security Hardening properties</a> for more information.</p><h4>Session Cookie (Authentication Related) Does Not Contain The “HTTPOnly” Attribute</h4><p>Threat: The session cookie used to identify authenticated users of the Web application does not contain the “HTTPOnly” attribute.</p><p>Session Cookie (Authentication Related) Does Not Contain The “HTTPOnly” Attribute is a common vulnerability reported for IBM BAW workflows. Ignore Session cookies that contain no sensitive information. I<a href="https://www.ibm.com/support/pages/interpreting-ibm-security-appscan-findings-ibm-business-automation-workflow">nterpreting IBM Security AppScan findings</a> documents an enumeration of a few cookies of this kind.</p><p>In the absence of evidence and documentation, you will need to complete further investigation. For instance, if the vulnerability complains about XSRF-TOKEN cookie not set as HTTPOnly, then this is as per design. The presence of HTTPOnly header in this case inhibits the creation of an intermediate token. In this case, valid POST requests may be blocked when session token-based CSRF filtering is active.</p><p>It is advisable to contact the IBM support team to understand the vulnerability posed by any session token not otherwise listed anywhere.<br><em>com.ibm.bpm. servlet. LaunchDashboardServlet.avatarKey</em> cookie is another example that doesn’t carry any sensitive information. <br> <br>If needed, session cookies like <em>JSESSIONID</em> can be configured as Secure and HTTPOnly in the Session Management section, if not already set, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*pOTAVeFICwpmAm9cgRQppw.png" /><figcaption>Figure 2: Session tokens Properties: Secure and HTTPOnly</figcaption></figure><h4>Cross-Site Scripting (XSS )</h4><p>Threat: HTML injection attacks such as cross-site scripting (XSS) use characters such as single quotes, double quotes, and angle brackets.</p><p>Example URLs,</p><pre><em>rest/bpm/wle/v1/searches/tasks/%22%3e%3cimg%20src%3dq%20on error%3dalert (9)%3e</em></pre><pre><em>/rest/bpm/wle/v1/coachflow/instancedata</em></pre><pre><em>/ProcessPortal/login.jsp?errorMessage=”&gt;&lt;script&gt;alert(String.fromCharCode(88,83,83))&lt;/script&gt;</em></pre><pre><em>/rest/bpm/wle/v1/tasks [name JSON parameter]</em></pre><pre><em>/rest/bpm/wle/v1/user/current [value parameter]</em></pre><pre><em>/rest/bpm/wle/v1/system/rep/Mashups_ConfigService [ JSON parameter within the properties parameter]</em></pre><p>Someone could add Script tags to request URL or the request parameters. The choice of request URL or request parameters can alter the Response.<br> <br> A typical task of addressing this kind of vulnerability is to repeat the request. In almost all cases that we tested, BAW did NOT execute the injected script determining that the injected script was ignored and not honored by IBM BPM/BAW systems.</p><p>Protection for XSS can be configured in the Web Server (IBM HTTP Server) or IBM BAW through BPM Property setting for X-XSS protection as given below,</p><pre>Value of S<em>ecurity.XXssProtectionHeaderValue</em> can be set to<em> 1 </em>and<em> mode=block.</em></pre><p>Please refer to <a href="https://www.ibm.com/support/knowledgecenter/en/SS8JB4/com.ibm.wbpm.imuc.doc/topics/rsec_harden_properties.html">IBM BAW Security Hardening properties</a> for more information.</p><p><strong>Path-relative style sheet import (PRSSI) vulnerability<br> </strong>Threat: Relative URLs can be dangerous since the browser may not determine the correct directory. If the HTML uses path-relative CSS links, it may be susceptible to Path Relative Style Sheet Import (PRSSI) vulnerabilities. It could allow an attacker to take advantage of CSS imports with relative URLs by overwriting their target file.</p><p>Example URLs,</p><pre>/ProcessPortal/login.jsp</pre><p>Setting the following IBM BPM/BAW security hardening properties as given below mitigated PRSSI vulnerability.</p><ul><li>Set response header X-Frame-Options: ‘<em>DENY’</em>. Since my customer used a lot of client-side human services, a more compromised setting of ‘<em>SAME ORIGIN’</em> was set. Set the property as given below,<br> <em>Security.XFrameOptionsHeaderValue </em>with a value<em> </em>“<em>DENY</em>” or “<em>SAMEORIGIN</em>”</li><li>To avoid sniffing on the web page, set response header X-Content-Type-Options;<br> <em>Security.XContentTypeOptionsHeaderValue </em>with a value<em> “nosniff”</em></li></ul><p>Information on the above settings can be found in <a href="https://www.ibm.com/support/knowledgecenter/en/SS8JB4/com.ibm.wbpm.imuc.doc/topics/rsec_harden_properties.html">IBM BAW Security Hardening properties</a>.</p><p>Use Web server settings as an alternative configuration option. But preference should be to have them set only in one place.</p><p><strong>SQL Injection <br></strong>Threat: The data JSON parameter within the ‘params’ parameter appears to be vulnerable to SQL injection attacks.</p><p>Example URLs,</p><pre>/rest/bpm/wle/v1/service/1.</pre><pre>/teamworks/cfecontroller</pre><pre>/rest/bpm/wle/v1/coachflow/service/1.</pre><p>This vulnerability needs to be tried and reviewed to see whether the parameters with any injected query can cause harm to the system. It is not desirable if it either writes to a database or returns sensitive information. Please note that the service could return data that, in turn, can be used to extract sensitive information from any other system.</p><blockquote>The exact same request with the exact same parameters as reported needs to be tested. Replacement of single quotes by double quotes in the same parameters can lead to a completely different response.</blockquote><p>The <a href="https://www.ibm.com/support/pages/interpreting-ibm-security-appscan-findings-ibm-business-automation-workflow">Interpreting AppScan findings</a> document mentions a few cases that fall in this category, such as injected URLs with CMIS like SQL Queries. These URLs, unless stated very clearly with the request, are subject to trial.</p><p>In my recent project, one of the requests for <em>/teamworks/cfecontroller</em>, had a CMIS -like a query in the JSON Parameter and was observed to cause a task completion replay. Seek help from IBM Support if you see similar behaviors. <br> <br>Mitigate SQL injection by following good Programming practices, a few examples include:</p><ul><li>Always use parameterized queries.</li><li>Double up any single quotation marks appearing within user input before incorporating that input into a SQL query. This defense is to prevent the insertion of malformed data from terminating the string. However, this may fail if the data is numeric.</li><li>Use stored procedures. While stored procedures can provide security benefits, they are not guaranteed to prevent SQL injection attacks, such as in the case of dynamically constructed SQL.</li></ul><p><strong>Cross-Domain Referer Leakage <br></strong>Threat: An attacker may be able to inject links referring to a domain they control, to capture data from URLs used within the application, primarily when the content within the application has been authored.</p><p>Example URLs,</p><pre><em>/ProcessPortal/login.jsp</em> with customized links</pre><p>When a web browser requests for a resource, it typically adds an HTTP header, called the “Referer” header, indicating the URL of the resource from which the request originated. <br> <br> If requested resources reside in a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information gets transmitted to the other domain. If the receiving domain is not trusted, this may lead to security compromises.</p><p>Whether domains are trusted, and the data transmitted is necessary must be reviewed.</p><p>In my customer’s scenario, the cross-domain was a fully trusted domain and well within the organization’s control and limits. It, therefore, posed no vulnerability. However, set Referrer policies in the web server should this be an issue.</p><p>For instance, a ‘<em>no-referrer’</em> policy can set so that no referrer information is sent with requests made to a cross-domain site, omitting the header entirely.</p><p>By default, the Referrer-Policy in WAS and IBM BPM is ‘<em>no-referrer-when-downgrade’,</em> which allows the headers to be sent only in cases of strict HTTP transport situations.</p><p><strong>Cache-able HTTPS response<br></strong>Threat: Local caches storing sensitive information found in responses makes them vulnerable to being seen by users who are not supposed to view it. <br> <br> Example URLs,</p><pre>/rest/bpm/wle/v1/coachflow/1.</pre><pre>/teamworks/generatecoachng</pre><p>Unless directed otherwise, browsers may store a locally cached copy of content received from web servers — some browsers, including Internet Explorer, cache content accessed via HTTPS.</p><p>The responses from the application should contain caching directives instructing browsers not to store local copies of any sensitive data. <br> <br>Prevent caching for relevant paths within the webroot by configuring the web server (IBM HTTP Server refer to <a href="http://publib.boulder.ibm.com/httpserv/manual70/caching.html">HTTP Caching Guide</a>).</p><p>Responses with HTTP cache-control headers, set to <em>no-cache</em> or <em>no-store</em>, are not cached in either the memory or file system cache. The value of <em>private</em> prevents public caching servers from caching content for more than one user. <br> <br> Observation revealed that most responses did have a <em>private</em> cache control and, in some cases, <em>no-store</em> by default.</p><p>However, in cases like <em>/teamworks/generatecoachng</em>, it was desirable to have a cache-control value set to the <em>public</em> to avoid performance issues. Set expiration and age limit configurations to reduce the severity of this compromise.</p><blockquote>Performance is affected when several files are loaded directly from the IBM Business Process Manager (BPM) server instead of the files being cached.</blockquote><h4>Error Responses Contain The Error Codes / Detailed Messages</h4><p>Threat: Users can make attacks against the system based on knowledge gleaned from information found in error messages.</p><p>Example URLs,</p><pre><em>/teamworks/generatecoachng</em></pre><pre><em>/rest/bpm/wle/v1/service/1</em></pre><pre><em>/</em><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__guna.titan.in_teamworks_cfecontroller&amp;d=DwQGAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=3vhyOl7CSmVQtgXd8R7Cjqds_3QW0yXWT5VupQ6LsDA&amp;m=FmBLIeh5ABIQmcoF3bCHgTtsWO0NUbBwYaQk2H77K2I&amp;s=3hQFTZrBSc35QPzZQDA4OuUBgNLrhT3aERzzjvU3nxc&amp;e="><em>teamworks/cfecontroller</em></a></pre><p>For example, if a user sees an HTTP/1.1 500 Internal Server error, they may gain information on the types of servers being used and use it to design a more specific attack. Similarly, in some cases of SQL injection, error Messages that contain SQL exception codes give a potential attacker insight that they can use to alter and plan their next attack.</p><p>One defense mechanism to this could be sending out responses that are not indicative of an error.</p><p>In one of my customers’ scenario, the error message from BPM was intercepted and masked with normal successful responses by the Web Application Firewall System.</p><h3>Troubleshooting Tips</h3><p>This section talks about the troubleshooting techniques that were employed in order to analyze and mitigate any particular vulnerability.</p><ul><li>Debugging on the Console with the browser provided developer tools e.g. F12. <br>The browser-specific web developer tools are useful to debug client-side errors especially to inspect values like <br>1. Request headers like Referers and Origins, cookies, and tokens.<br>2. Response headers that contain instructions to browsers on request handling.For example. Strict HTTP transport, cookies set to secure, HTTPOnly, caching, etc.</li><li>It could be useful to use tools like Fiddler to be able to inspect the entire request message with parameters and data.</li><li>Employing BPM Rest API UI tester (<em>//host:port/bpmrest-ui</em>) and other tools.<br> It has been observed that most of the internal scans done on the BAW systems to uncover vulnerabilities are done using a privileged user. It is then difficult to say if a particular finding is really a vulnerability or can be deemed false-positive. <br> Many such requests can be tried and verified for other roles and users using the REST tester UI Web Application provided by IBM BPM.<br> This can also be complemented by the use of tools like SOAP UI testers and chrome extensions to cover varied user scenarios and derive analysis results.</li><li>Enabling trace strings on the BPM Server to trace out the headers, token generation, and other details. These can be enabled in the ‘<em>Runtime</em>’ tab in IBM BPM servers, under ‘<em>Logging and Tracing’</em> per JVM. <br>The trace strings, I found useful were ,<br> <em>com.ibm.bpm.rest.*=all and com.ibm.bpm.servlet.filters.*=all</em></li></ul><h3>In summary</h3><p>This two-part article focused on methods and procedures that could be followed for addressing security vulnerabilities with a few illustrations in the second part.</p><p>In addition to the security hardening configurations, provided by IBM BAW properties, there are a number of security fixes on IBM BPM/BAW and WAS that aim at remediating known vulnerabilities. A few of the BPM/BAW fixes, my customers have used are listed in the section “Useful references and links”.</p><p>Security is a very technical and complex area. Hence, it is recommended to engage experts from the field while accessing the environment.</p><p>This concludes part 2 for “IBM Business Automation Workflow, Security Vulnerability Analysis Part 2: Examples from my experience”.</p><h3>Useful References and links</h3><p>This section lists a number of useful links that I found handy during my security vulnerability engagements.</p><p><strong>IHS Vulnerability reports</strong></p><ul><li><a href="http://publib.boulder.ibm.com/httpserv/ihsdiag/vulnerabilities.html#general-guidance-on-scan-and-pentest-reports">http://publib.boulder.ibm.com/httpserv/ihsdiag/vulnerabilities.html#general-guidance-on-scan-and-pentest-reports</a></li></ul><p><strong>IBM BPM Vulnerability listing</strong></p><ul><li><a href="https://www.cvedetails.com/vulnerability-list/vendor_id-14/product_id-25452/IBM-Business-Process-Manager.html">https://www.cvedetails.com/vulnerability-list/vendor_id-14/product_id-25452/IBM-Business-Process-Manager.html</a></li></ul><p><strong>Cross-Site Request forgery Cheat Sheet by OWASP</strong></p><ul><li><a href="https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html">https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html</a></li></ul><p><strong>Cross-Origin Resource Sharing</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing">https://en.wikipedia.org/wiki/Cross-origin_resource_sharing</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS</a></li></ul><p><strong>Denial of service</strong></p><ul><li><a href="https://owasp.org/www-community/attacks/Denial_of_Service">https://owasp.org/www-community/attacks/Denial_of_Service</a></li><li><a href="http://publib.boulder.ibm.com/httpserv/manual70/mod/mod_reqtimeout.html">http://publib.boulder.ibm.com/httpserv/manual70/mod/mod_reqtimeout.html</a></li></ul><p><strong>SQL injection</strong></p><ul><li><a href="https://portswigger.net/web-security/sql-injection">https://portswigger.net/web-security/sql-injection</a></li><li><a href="https://portswigger.net/web-security/sql-injection/cheat-sheet">https://portswigger.net/web-security/sql-injection/cheat-sheet</a></li></ul><p><strong>10 most common web-security vulnerabilities</strong></p><ul><li><a href="https://www.toptal.com/security/10-most-common-web-security-vulnerabilities">https://www.toptal.com/security/10-most-common-web-security-vulnerabilities</a></li><li><a href="https://owasp.org/www-project-top-ten/">https://owasp.org/www-project-top-ten/</a></li></ul><p><strong>IBM BPM/BAW Security Fixes</strong></p><ul><li><a href="https://www.ibm.com/support/pages/security-bulletin-cross-site-request-forgery-vulnerability-ibm-business-automation-workflow-cve-2018-2000">https://www.ibm.com/support/pages/security-bulletin-cross-site-request-forgery-vulnerability-ibm-business-automation-workflow-cve-2018-2000</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-information-leakage-ibm-business-automation-workflow-cve-2018-1999">https://www.ibm.com/support/pages/security-bulletin-information-leakage-ibm-business-automation-workflow-cve-2018-1999</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-path-traversal-vulnerability-websphere-application-server-admin-console-cve-2019-4442">https://www.ibm.com/support/pages/security-bulletin-path-traversal-vulnerability-websphere-application-server-admin-console-cve-2019-4442</a></li><li><a href="https://www.ibm.com/support/pages/node/888037">https://www.ibm.com/support/pages/node/888037</a></li><li><a href="https://www.ibm.com/support/pages/node/885104">https://www.ibm.com/support/pages/node/885104</a></li><li><a href="https://www.ibm.com/support/pages/node/3552261">https://www.ibm.com/support/pages/node/3552261</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-blind-sql-injection-vulnerability-ibm-business-automation-workflow-and-ibm-business-process-manager-cve-2018-1674">https://www.ibm.com/support/pages/security-bulletin-blind-sql-injection-vulnerability-ibm-business-automation-workflow-and-ibm-business-process-manager-cve-2018-1674</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-denial-service-vulnerability-ibm-business-automation-workflow-cve-2018-1997">https://www.ibm.com/support/pages/security-bulletin-denial-service-vulnerability-ibm-business-automation-workflow-cve-2018-1997</a></li><li><a href="https://www.ibm.com/support/pages/apar/JR60556">https://www.ibm.com/support/pages/apar/JR60556</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-vulnerability-ibm-business-automation-workflow-cve-2018-1848">https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-vulnerability-ibm-business-automation-workflow-cve-2018-1848</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-ibm-business-automation-workflow-and-ibm-business-process-manager-bpm-cve-2019-4204">https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-ibm-business-automation-workflow-and-ibm-business-process-manager-bpm-cve-2019-4204</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4412bd5ccef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-business-automation-ap-el/ibm-business-automation-workflow-security-vulnerability-analysis-part2-examples-from-my-a4412bd5ccef">IBM Business Automation Workflow, Security Vulnerability Analysis Part2: Examples from my…</a> was originally published in <a href="https://medium.com/ibm-business-automation-ap-el">IBM Digital Business Automation Tips and Assets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IBM Business Automation Workflow, Security Vulnerability Analysis Part1: The Method]]></title>
            <link>https://medium.com/ibm-business-automation-ap-el/ibm-business-automation-workflow-security-vulnerability-analysis-part1-the-method-c51965868149?source=rss-ba2204d5f785------2</link>
            <guid isPermaLink="false">https://medium.com/p/c51965868149</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[bpm]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[baw]]></category>
            <dc:creator><![CDATA[Smitha venugopal]]></dc:creator>
            <pubDate>Thu, 21 May 2020 10:09:58 GMT</pubDate>
            <atom:updated>2020-07-16T10:02:35.505Z</atom:updated>
            <content:encoded><![CDATA[<p>In this two part article, I will examine the practice of security vulnerability scanning for IBM Business Automation workflow (BAW) projects. I will share my approach and discuss specific vulnerabilities and how to address them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QdL3kdX-ByvnxEOF" /></figure><p>Protecting computer systems from breaches is a real and constant concern for companies. Today, there is an increasing need to have an eye for protection and defensive strategies. It is no different for IBM BAW projects where it is important to run a rigorous cycle testing to secure the system from known vulnerabilities.</p><p>In this article, I will share my experience on the method and steps, while dealing with security vulnerabilities for workflow projects. This will be detailed in two parts. This first part focuses on the procedure and methods, to address vulnerabilities, in order to create a safe and secure system. In the second article of the series, <a href="https://medium.com/ibm-business-automation-workflow-tips-tricks-and/ibm-business-automation-workflow-security-vulnerability-analysis-part2-examples-from-my-a4412bd5ccef">(part 2)</a> based on my experience, I will share common and specific vulnerabilities and how each one was addressed.</p><h4>Preparing for Security Scanning</h4><p>IBM BAW (formerly IBM Business Process Manager) releases are <br>tested/scanned by IBM before it is released, as part of the labs, to support clients in creating secure workflows, that are built using prescribed best practices.</p><p>The first step in preparing the environment is to make sure your systems and subsystems are up to date with the latest fixes and patches, especially the ones that are security related. In case, any security vulnerabilities are seen in the product post release, IBM will typically create an Interim Fix (iFix) or add fixes to the closest Cumulative Fix (CF). Recent fixes should be reviewed and applied in the environment as soon as practical.</p><p>This applies to relevant fixes and upgrades for IBM WebSphere Application Server (WAS) as well as IBM HTTP Server (IHS), besides IBM BAW.</p><p>Few of the fixes on IBM BPM/BAW, that I have applied in my recent customer engagements, are provided in the section “<strong>Useful References and links”.</strong></p><blockquote><strong>TIP: </strong>As a matter of best practice, clients should track fixes and releases and monitor especially for security related fixes. Risk assessment for any Security fixes should be immediate and needed fixes should be applied quickly in environments.</blockquote><p>BAW is a platform for workflow applications and as such each business may have some varying security needs. IBM BAW has a number of customisable security hardening settings that should be reviewed and set as appropriate to the environment. These settings include:</p><p><strong>i). </strong>Response headers can be used to manipulate actions of browsers (allow/block) when handling requests, that may appear to have ill intent.<br>For example,</p><ul><li><em>XframeOptions</em> can be set to DENY, SAMEORIGIN or ALLOW-FROM to disallow browsers from embedding user interfaces in iframes and thus, mitigating potential clickjacking attacks.</li><li><em>Content Security Policy</em> to instruct browsers to load and run assets in the context of BAW user interfaces only from a set of whitelisted origins.</li><li><em>StrictTransportSecurity</em> to upgrade any http:// link to https://</li><li><em>X-XSS Protection</em> to instruct browsers to enable their built-in cross-site scripting protection.</li></ul><p><strong>ii). </strong>Requests can be handled, by way of tokens /salts to protect against Cross Site Request Forgery, XSS etc.<br>For example,</p><ul><li>Whitelist set of referers and the origin headers.</li><li>Set property <em>CsrfSessionTokenSalt</em> with a value of ‘verySecret’.</li><li>Protection of ajax links from coaches and ProcessAdmin console through <em>CsrfSesstionTokenProtectedURI.</em></li></ul><blockquote><strong>NOTE: </strong>These properties are not set by default. These can be set using wsadmin commands from the Deployment Manager (Examples of these configurations can be found @ <a href="https://www.ibm.com/support/knowledgecenter/en/SS8JB4/com.ibm.wbpm.imuc.doc/topics/rsec_harden_properties.html">BPM Security Hardening</a>).</blockquote><p>Since there is always some element of custom code, that may expose any vulnerability, it is a good practice to have vulnerability scans run on applications regularly. IBM’s customers do have dedicated testing cycles for vulnerability scans using tools that aim at uncovering any vulnerability.</p><blockquote><strong>TIP:</strong> It was observed, that running these scans can impact system performance if there are a lot of bad requests sprayed in, hence, scans need to be scheduled appropriately, to minimise the impact on business activities and transactions. This can be especially relevant if the plan is to run scans on the production system. My recent client engagement revealed that this can be true even when the scans are claimed to be “non-intrusive”.</blockquote><h4><strong>Steps for Reviewing Security vulnerability Reports</strong></h4><p>Speciality products and teams are normally used to execute the security scan. It is our job to review and understand the outcomes . The end state or outcome expected from addressing a security vulnerability could be any of the following</p><ul><li>Remediation —An example would be to be a fix pack for a particular vulnerability.</li><li>Mitigation — An example would be to apply configuration that alters the system behaviour i.e. block suspicious requests.</li><li>Acceptance — This is subject to individual client considerations in occasions of security risks observed.</li></ul><p>The flow chart below depicts a methodical approach to assessing vulnerability reports. This captures the sequence of activities I used in addressing identified vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaRNlfME7NKA0KR8HNULBg.png" /><figcaption>Figure 1: Methods/steps to address Vulnerability</figcaption></figure><p><strong>Scan, Categorize and Prioritize</strong></p><p>Firstly, scan the report holistically and then categorize the line items into severity levels of vulnerabilities and Information exposure. <br>Beware of the tendency to first strike out the obvious ones. Most reports provide possible remedies to what appears to allay the vulnerability (See Figure 2 below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*WprVdHcjXBkYIXo1Yxl3EQ.png" /><figcaption>Figure 2: Sample vulnerability as reported</figcaption></figure><p>It is very important to prioritize here and address the critical items.</p><p><strong>Know your landscape</strong></p><p>Know the overall architecture, this is important as you will need to make decisions and prioritize remediation based on your solution architecture and the role that different components have in the architecture. It is crucial for multiple teams to collaborate in the triage of vulnerabilities to ensure that these are remediated at the right place.<br> <br>For example, customers using servers accessed from the internet may employ a DMZ that includes firewalls. The DMZ provides passage for all requests flowing in and out of the system. A vulnerability of returning error responses back to the user could be well handled at the Firewall(e.g WAF/F5), where in the response is intercepted and masked indicating a success. Here, it is expected to see collaboration between the firewall and the application teams.</p><p>The diagram below depicts a typical layout of components that participate in the request/response handling process for the requests that make up a business transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*i520PhePLa8RWdhcyY19kw.png" /><figcaption>Figure 3: Typical Component layout</figcaption></figure><p>Similarly, urls could be denied access /whitelisted at the Firewall itself to block out suspicious urls. Customer needs to work with their Firewall team to unblock legitimate requests.</p><p>Normal requests which have &lt;script&gt; tags could be formed due to customizations that are done during development. These would need whitelisting.</p><p>For example <br> <em>/rest/bpm/wle/v1/coachflow/instancedata</em> containing <em>&lt;script&gt;</em> tags and other suspicious tags like <em>innerhtml</em> could be allowed, after review,</p><p>while URLs like <em>/ProcessPortal/login.jsp?errorMessage=”&gt;&lt;script&gt;alert(String.fromCharCode(88,83,83))&lt;/script&gt;</em> can be blocked since it is indicative of XSS.</p><p>If a vulnerability is accounted to be remediated by another team such as infrastructure or database, it has to be routed accordingly.</p><p><strong>Repeat for each vulnerability</strong></p><ul><li>Check for known vulnerabilities published based on CVE Details. E.g<a href="https://www.cvedetails.com/vulnerability-list/vendor_id-14/product_id-25452/IBM-Business-Process-Manager.html">. IBM BPM Vulnerability-list</a>.<br> <br>This would uncover any fixes that may be have been published to remediate the vulnerability. Some fixes that address the said vulnerability might be needed for application on WAS or IHS. The IBM Support team may be contacted for any clarification. A few fixes, my customer has applied, are listed in the section <strong>“Useful References and links”.</strong></li><li>If not found in the known vulnerabilities, look for results published for IBM BAW on the App-scan findings @<a href="https://www.ibm.com/support/pages/interpreting-ibm-security-appscan-findings-ibm-business-automation-workflow">Interpreting IBM Security appscan findings</a>. Another useful though a bit older publication can be found @<a href="https://www.ibm.com/support/pages/running-security-appscan-software-ibm-business-process-manager-bpm-and-websphere-lombardi-edition">Running security Appscan software</a>.<br>These provide insights into what has been tested and deemed <strong>false-positive</strong> by IBM and some others that may need more investigation.<br> <br>For example, a number of vulnerabilities could be reported for cookies used/set in IBM BAW requests and responses. The published findings indicate that Cookies like TeamWorks=8.6.0, isBidi … . can be ignored as they do not carry any sensitive information.<br> <br>A common practice is to use a privileged user of the system when scanning for vulnerabilities. This can cause a lot of reported information exposure which may also considered a false positive, post verification.</li><li>If the line item in question is not listed as a known vulnerability or false positive, it must be analysed further. This may involve testing the URL in question (exact same request with the exact same parameters) and derive decisions from the response.<br> <br>For example, <br>SQL injection vulnerabilities for URLs like <em>rest/bpm/wle/v1/coachflow/service/1..</em> would need inspection of the service flow to determine if the injected code/script could cause issues such as writing to the data store or accessing sensitive information. <br> <br>Analysis of vulnerabilities, cited for requests that contained <em>/bpm/notification/cometd/</em> and cookie BAYEUX_BROWSER, indicated that these could be ignored. This is based on how notification, that employ cometd in a transport mode of long polling, works. The mechanism used is described at <a href="https://docs.cometd.org/current/reference/#_security">Cometd-security</a>. It is always a good idea to confirm with the IBM Support team if in doubt. as to whether notifications are followed the same way in IBM BPM/BAW.<br> <br>I have also had scenarios where configurations done in IHS and WAS had to be disabled, so that tokens that are critical for CSRF filtering could be effectively generated between requests in BPM.<br> <br>Investigations and analysis could cover different systems/subsystems involved in the request lifecycle. Some of the security breaches are best handled at the firewall or the web server. For example, the Firewall component is known to employ data guards in order to mask what appears to be sensitive information like a credit card pattern.</li><li>Ensure configurations are tested completely in a lower environment. While you set a property /configuration for one aspect of security, it may not work in some other use case. Let the application run through rounds of testing before it can be deemed remediated.</li></ul><h4>In summary</h4><p>Communication between teams responsible for different sub-systems is very critical so that any aspect of the functionality is not compromised. In situations of uncertainty, the IBM Support team can be engaged to get deeper insight on how the product behaves given certain configurations that are set in IBM HTTP Server(IHS), Websphere Application Server (WAS) and BPM/BAW servers.</p><p>Under situations, where security violation possibilities are detected in IBM BAW Solutions, customers may engage IBM Services to provide advisory support.</p><p>This concludes the part1 for “IBM Business Automation Workflow, Security Vulnerability Analysis Part1: The Method”.</p><h4><strong>Acknowledgements</strong></h4><p>I would like to thank my colleagues Ms. Maya Shenoi (<a href="/service/mailto:mashenoi@in.ibm.com">mashenoi@in.ibm.com</a>), Accelerated Value Leader, IBM India Software Services, and <a href="https://medium.com/@leonard.blunt">Leonard Blunt</a>, Cloud Integration Expert Labs, ASEAN who have been very kind to review this article.</p><h4><strong>Useful References and links</strong></h4><p>This section lists a few links and references to information, I found useful during the course of my engagements.</p><p><strong>IBM BPM Vulnerability listing</strong></p><p>1. <a href="http://publib.boulder.ibm.com/httpserv/ihsdiag/vulnerabilities.html#general-guidance-on-scan-and-pentest-reports">https://www.cvedetails.com/vulnerability-list/vendor_id-14/product_id-25452/IBM-Business-Process-Manager.html</a></p><p><strong>Cross-Site Request forgery Cheat Sheet by OWASP</strong></p><p>1.<a href="http://publib.boulder.ibm.com/httpserv/ihsdiag/vulnerabilities.html#general-guidance-on-scan-and-pentest-reports">https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html</a></p><p><strong>Cross-Origin Resource Sharing</strong></p><ol><li><a href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing">https://en.wikipedia.org/wiki/Cross-origin_resource_sharing</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS</a></li></ol><p><strong>SQL injection</strong></p><ol><li><a href="https://portswigger.net/web-security/sql-injection">https://portswigger.net/web-security/sql-injection</a></li></ol><p><strong>10 most common web-security vulnerabilities</strong></p><ol><li><a href="https://owasp.org/www-project-top-ten/">https://owasp.org/www-project-top-ten/</a></li></ol><p><strong>IBM BPM/BAW Security Fixes</strong></p><ol><li><a href="https://www.ibm.com/support/pages/security-bulletin-cross-site-request-forgery-vulnerability-ibm-business-automation-workflow-cve-2018-2000">https://www.ibm.com/support/pages/security-bulletin-cross-site-request-forgery-vulnerability-ibm-business-automation-workflow-cve-2018-2000</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-information-leakage-ibm-business-automation-workflow-cve-2018-1999">https://www.ibm.com/support/pages/security-bulletin-information-leakage-ibm-business-automation-workflow-cve-2018-1999</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-path-traversal-vulnerability-websphere-application-server-admin-console-cve-2019-4442">https://www.ibm.com/support/pages/security-bulletin-path-traversal-vulnerability-websphere-application-server-admin-console-cve-2019-4442</a></li><li><a href="https://www.ibm.com/support/pages/node/888037">https://www.ibm.com/support/pages/node/888037</a></li><li><a href="https://www.ibm.com/support/pages/node/885104">https://www.ibm.com/support/pages/node/885104</a></li><li><a href="https://www.ibm.com/support/pages/node/3552261">https://www.ibm.com/support/pages/node/3552261</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-blind-sql-injection-vulnerability-ibm-business-automation-workflow-and-ibm-business-process-manager-cve-2018-1674">https://www.ibm.com/support/pages/security-bulletin-blind-sql-injection-vulnerability-ibm-business-automation-workflow-and-ibm-business-process-manager-cve-2018-1674</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-denial-service-vulnerability-ibm-business-automation-workflow-cve-2018-1997">https://www.ibm.com/support/pages/security-bulletin-denial-service-vulnerability-ibm-business-automation-workflow-cve-2018-1997</a></li><li><a href="https://www.ibm.com/support/pages/apar/JR60556">https://www.ibm.com/support/pages/apar/JR60556</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-vulnerability-ibm-business-automation-workflow-cve-2018-1848">https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-vulnerability-ibm-business-automation-workflow-cve-2018-1848</a></li><li><a href="https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-ibm-business-automation-workflow-and-ibm-business-process-manager-bpm-cve-2019-4204">https://www.ibm.com/support/pages/security-bulletin-cross-site-scripting-ibm-business-automation-workflow-and-ibm-business-process-manager-bpm-cve-2019-4204</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c51965868149" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-business-automation-ap-el/ibm-business-automation-workflow-security-vulnerability-analysis-part1-the-method-c51965868149">IBM Business Automation Workflow, Security Vulnerability Analysis Part1: The Method</a> was originally published in <a href="https://medium.com/ibm-business-automation-ap-el">IBM Digital Business Automation Tips and Assets</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>