Subscribe: Pete Freitag's Homepage
Added By: Feedage Forager Feedage Grade B rated
Language: English
cfml  code  coldfusion  conference  filter  flex  fuseguard  java  jep  new  security training  security  server  servlet  web 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Pete Freitag's Homepage

Pete Freitag's Homepage

Covering ColdFusion, Java, Web Development, and other topics

Last Build Date: Thu, 30 Nov 2017 23:47:00 GMT


Announcing FuseGuard Version 3

Thu, 30 Nov 2017 23:47:00 GMT

After many hours in development and testing we are proud to announce the release of FuseGuard 3! FuseGuard 3 ships with 11 new filters, 1 new logger and several additional improvements to better protect your CFML applications. With FuseGuard 3 we've tweaked and improved the protections that were included in version 2, and have added new methods identifying malicious requests. The result is that more malicious requests to your applications can be detected, blocked, and logged with FuseGuard 3. What is FuseGuard? If you are not familiar with FuseGuard, it is a web application firewall written in CFML. It runs onRequestStart to block or log malicious requests made to your application. If configured to, FuseGuard will block the malicious request before it hits your application code. It can also log these events. What's New in FuseGuard 3? Configuring FuseGuard is now much easier as FuseGuard 3 can be fully configured from within the FuseGuard Manager web admin. That means you can add filters, edit filter settings, and do it all from the web UI. If you want to keep using the CFC based configuration you used in FuseGuard 2 that is also still fully supported. Configure Filters in FuseGuard Manager There are 11 new filters in FuseGuard 3: Geographical Filter - Does your application only serve users in a specific geographic region? FuseGuard 3 makes it easy to connect IP country data to whitelist or blacklist IP addresses based upon country. Remote Execution Filter - this new filter looks for several patterns used to exploit CFML specific remote code execution vulnerabilities. XML Entity Injection Filter - looks for xml entity injection patterns. Shell Execution Filter - looks for common shell execution patterns and paths. Remote Method Filter - block remote CFC method calls or SOAP requests. HoneyPot Filter - Uses project honeypot data to block malicious IP addresses. XML External DTD Filter - looks for xml external DTD patterns. User Agent Filter - looks for malicious or malformed user agents. IP BlackList Filter - easily black list IPs using the IP List managers IP WhiteList Filter - create IP whitelists easily. File Upload Content Filter - inspects file upload contents for executable CFML experimental. Those filters listed above are just the new filters in FuseGuard 3, the 18 filters which were part of FuseGuard 2 are also included which look for things like SQL Injection, Cross Site Scripting, Path Traversals, Malicious File Uploads, Null Byte Injection and more. The FuseGuard manager UI has been updated and improved in this version, here are a few screenshots: Updated FuseGuard Manager UI New Subscription Pricing We are now offering FuseGuard with subscription pricing for an annual term. A one year subscription allows you to always have access to the latest version of FuseGuard. Server License Subscription - $48/month per server Enterprise License Subscription - $450/month PS: here's a coupon code for you: Take $50 off your FuseGuard 3 order when you order by December 31 2017. Use Coupon Code: fuseguard2017 [...]

CFSummit 2017

Tue, 28 Nov 2017 00:09:00 GMT

It was another great ColdFusion Summit event in Las Vegas this year. My company Foundeo Inc. was a sponsor again this year. It was great to meet so many new people this year. During the keynote Tridib Roy Chowdhury asked for a show of hands as to how many people were attending for the first time. It was impossible to count, but to me it looked like about half the room were first time attendees. That was great to see.

This year I did another full day training on Writing Secure CFML for the pre-conference. It was sold out at 50 seats and was a lot of fun to present. The demo code for that session can be found here: I don't publish the slides for this topic because I offer this CFML security training commercially as well.

On Thursday my company announced FuseGuard 3 which is a new update to our web application firewall product for CFML. I will post a blog entry with more details on that later this week.

Finally on Friday I presented on Securing Mature CFML Code Bases (slides, code).

Looking forward to another CFSummit in 2018.

Java Unlimited Strength Crypto Policy for Java 9 or 1.8.0_151

Thu, 19 Oct 2017 21:27:00 GMT

Starting with Java 1.8.0_151 and 1.8.0_152 there is a new somewhat easier way to enable the unlimited strength jurisdiction policy for the JVM. Without enabling this you cannot use AES-256 for example.

First download the JRE, I like to use the server-jre for servers. When you extract the server-jre look for the file in the jre/lib/security folder. For example for Java 1.8.0_152 the file structure looks like this:

   |- /jre
        |- /lib
              |- /security

Now open with a text editor and look for the line that defines the java security property crypto.policy it can have two values limited or unlimited - the default is limited.

By default you should find a commented out line:


You can enable unlimited by uncommenting that line, remove the #:


Now restart your java applications that point to the JVM and you should be all set.

Java 9 Security Enhancements

Thu, 21 Sep 2017 22:33:00 GMT

With the General Availability release of Java 9 scheduled for today, I thought it would be appropriate to go over the new features that pertain to security.

Implement HTTP/2 Client
Implementation of a HTTP/2 Client in the standard java SDK. JEP 110

SHA-3 Hash Algorithms
Implements the SHA-3 cryptographic hash functions defined by NIST FIPS 202: SHA3-224, SHA3-256, SHA3-384, and SHA3-512. JEP 287

Improve Secure Application Performance
Improves performance of applications that run with a SecurityManager enabled. JEP 232

Disable SHA-1 Certificates
Allows you to disable X.509 certificate chains with SHA-1 based signatures (eg TLS / HTTPS). JEP 288

TLS Application-Layer Protocol Negotiation Extension (ALPN)
Implements the ALPN TLS extension, needed for HTTP/2. JEP 244

Create PKCS12 Keystores by Default
Instead of the proprietary JKS format, use standard PKCS12 format. JEP 229

OCSP Stapling for TLS
Implements OCSP stapling via TLS Certificate Status Request Extension and Multiple Certificate Status Request Extension. JEP 249

Leverage CPU Instructions for GHASH and RSA
Improves performance by leveraging CPU instructions. JEP 246

DRBG-Based SecureRandom Implementations
Implements Deterministic Random Bit Generator defined in NIST 800-90Ar1. JEP 273

Filter incoming serialization data
Allows filtering of incoming streams of object-serialization data. JEP 290

Datagram Transport Layer Security (DTLS) API
Defines an API for working with DTLS (RFC 4347). JEP 219

Overall some nice security improvements to look forward to.

Upcoming CFML Conferences in April 2017

Tue, 04 Apr 2017 22:14:00 GMT

I will be speaking at two conferences this month.

The conference is the Adobe CFSummit East also known as the Adobe ColdFusion Government Summit. It will be held on April 18-19, 2017 in Washington DC. The first day is two half day hands on sessions, I will be presenting the first session which is a CFML security training class (sold out). On day two I will be presenting a 1hr session: Bulletproof Your Adobe ColdFusion Server with the Lockdown Guide.

This conference is free to attend, so if you are on the east cost it may be worth it to consider attending. Other speakers besides myself include: Rakshith Naresh, Giancarlo Gomez, Matt Hintze, Elishia Dvorak, Charlie Arehart, Dan Wilson, Nolan Erck, Masha Edelen, and Dan Fredericks. The opening keynote will be given by Tridib Roy Chowdhury & Steve Drucker. My company Foundeo Inc. is a sponsor of the event.

The following week is the Into the Box Conference. This conferences is loaded with tons of great speakers and should be a really good place to learn the latest techniques for modern CFML development. While the conference organized on by the makers of the ColdBox framework, you don't need to use ColdBox to get a lot out of this conference. Many of the tools in the Box ecosystem can be utilized on their own and can provide great benefits to developers. Take for example CommandBox, if you are not using this tool spend 5 minutes looking into it right now and find out why you should be.

At Into the Box I will be speaking on Securing CFML Codebases, a look at techniques to improve the security of your existing CFML codebase.

CFSummit 2016 Slides

Tue, 18 Oct 2016 01:02:00 GMT

Here are my slides from the Adobe ColdFusion Summit 2016 conference in Las Vegas:

The conference appeared to be a great success with about 500 people in attendance. My company Foundeo Inc. was a Gold Sponsor again this year. I met a lot of great ColdFusion developers, thanks for saying hello.

I also presented a full day pre-conference workshop on CFML Security along with Dave Epler. This session went very well and was sold out at 50 people. For this session (and other CFML security training classes I teach) I built a CFML web application called Bank of Insecurity you can find the code on github here.

Securing Legacy CFML - dev.Objective() 2016 Slides

Mon, 20 Jun 2016 23:10:00 GMT

Back from another great dev.Objective() conference in Minneapollis. This year Foundeo was a sponsor, and I spoke on Securing Legacy CFML Code. Find the slides here.

My CFSummit 2015 Slide Decks

Fri, 13 Nov 2015 02:05:00 GMT

I was fortunate enough to be able to do two different talks this year at the Adobe CFSummit 2015 conference.

My first session, was a hands on Pre-Conference workshop taught by David Epler and myself, it was titled: Hack & Fix - Hands on ColdFusion Security Training. This was a 3 hour workshop which had a VM preloaded with the hackable CFML training app: HackableType that was first created by Jason Dean and I in 2010. Students then try to hack the vulnerable code, and then fix it. It went very well thanks to David, and all who attended!

Hack & Fix - Hands on ColdFusion Security Training - View Slides

For my second session I presented on Locking down ColdFusion Servers, an overview of the ColdFusion 11 Lockdown Guide. View Slides

My company Foundeo was a Gold sponsor of CFSummit 2015. I enjoyed meeting lots of our HackMyCF and FuseGuard customers and hopefully a few soon to be customers!

Adding Chrome Custom Search for CFDocs

Fri, 16 Oct 2015 20:07:00 GMT

I read some complaints recently that the new Adobe documentation site is not friendly with a chrome custom search engine (because the URIs are different based on what the tag/function starts with).

If you want to setup a custom search engine in chrome, it is really easy:

  1. Using Chrome go to chrome://settings/searchEngines
  2. Scroll down to an empty text box that says Add a new search engine
  3. In the first box type in the second box type cf and in the third box type

Now type cf followed by a space in the address bar, and then a tag or function name.

Disable Flash Remoting on ColdFusion Servers

Thu, 03 Sep 2015 20:37:00 GMT

Due to the recent security vulnerability ABSP15-20 / APSB15-21 in BlazeDS there has been increased interest in disabling flash remoting when not needed -- if you followed the lockdown guide for CF9, CF10, or CF11 you should already have it disabled. This only applies to ColdFusion 10 and ColdFusion 11 right? Nope! Your ColdFusion 7-9 servers may also be vulnerable to this issue but since they are considered EOL or End Of Life, they are no longer supported or patched by Adobe so there is no hotfix to apply. If you do need flash remoting on these servers you can manually update the flex-messaging-core.jar file in your lib directory. I tested this on a CF 9.0.2 server tested that it worked by using the ColdFusion Server Monitor. David Epler has posted some instructions for manually patching a CF9 server. How can I disable Flash Remoting on ColdFusion Servers There are a few ways this can be accomplished, I recommending doing each way to provide layers of assurance or defense in depth. Uncheck: Enable Flash Remoting in ColdFusion Administrator - this is the easiest way to go, but I don't trust this method to fully disable anything that might be vulnerable to a security issue. Block URIs on your web server web server blocks are always my favorite approach because they are blocked before hitting the CF server at all, they are the most efficient way to protect resources in most cases. If you are using IIS 7+ you can block (if you are using IIS6 or lower you are running an EOL operating system with many other security issues to consider, time to upgrade!) using Request Filtering. It can run on a per site basis or on a global basis - for security rules like this it makes sense to run them on a global basis. Click on the URL tab and then Deny Url Sequence to add the following URIs to block, test them out in your browser to make sure you get a 404: /flex2gateway /flashservices /flex-internal /CFFormGateway /cfform-internal To block them on Apache you could do something like this globally in httpd.conf: RedirectMatch 404 (?i).*/flex2gateway.* RedirectMatch 404 (?i).*/flashservices.* RedirectMatch 404 (?i).*/flex-internal.* RedirectMatch 404 (?i).*/cfformgateway.* RedirectMatch 404 (?i).*/cfform-internal.* Using nginx you can do something like this (thanks Joseph Lamoree) : location ~* ^/(flex2gateway|flashservices|flex-internal|CFFormGateway|cfform-internal|messagebroker) { return 403; } Keep in mind that when blocking only on the web server Flash Remoting is still enabled so you could still use the server monitor over the Internal Web Server, or if you have it running on its own port. Disable by Removing Servlet Mappings Removing Servlet Mappings removes the URL pattern to Servlet (the java code that executes requests) definition at the JEE servlet container level. It is done by editing the web.xml file found in the WEB-INF folder. You can either delete the ... tag or comment it out with an <-- XML comment --> (only uses two dashes). Here's an example of a servlet mapping on CF9: MessageBrokerServlet /flex2gateway/* You can also disable the servlet mappings that have the following URL patterns: /flashservices/gateway/* /flex-internal/* /CFFormGateway/* /cfform-internal/* You can also remove the Servlets that correspond to these servlet-mapping but I have seen cases where CF would not start due to removing a servlet that is expected to be there. Removing unnecessary servlets can improve your CF server startup time and potentially reduce resource utilization, so it may be worth experimenting with for you. What if I a[...]