ColdFusion Posts Around the World.

Win a Ticket for ColdFusion Summit 2023
Pete Freitag
The Adobe ColdFusion Summit is coming up in October. I will be speaking at the conference, and my company Foundeo is also one of the conference sponsors. As part of the sponsorship I have an extra entry ticket to CFSummit that I am going to give away to ...
Into The Box 2023 Slides
Pete Freitag
I'm back from Houston Texas after another great Into the Box conference. Slides for my talk Taming the top 25 Most Dangerous Software Weaknesses
File Create Time in ColdFusion / CFML
Pete Freitag
Today I needed to get the time that a file was created from within some CFML code. I had first thought that cfdirectory or directory...
Speaking at ColdFusion Summit Online Next Week
Pete Freitag
I will be giving my talk Taming the Top 25 Most Dangerous Software Weaknesses (for ColdFusion Developers) next Tuesday, December 6th 2022 at 1
OpenSSL and ColdFusion / Lucee
Pete Freitag
I've had a several people asking me about the openssl vulnerabilities that were patched this week: CVE-2022-3602 and CVE-2022-3786 aka Spooky SSL
ColdFusion Security Training Class December 2022
Pete Freitag
Early bird registration is open for my ColdFusion Security Training deep dive c
How Long Has Your ColdFusion Server Been Running?
Pete Freitag
Someone asked on the CFML slack recently how can you find out how long your ColdFusion (or Lucee) server has been running via code. How
Adding CloudFlare Turnstile CAPTCHAs to CFML Sites
Pete Freitag
CloudFlare recently released a new CAPTCHA service called Turnstile, which aims to provide a better user experience for CAPTCHA's. At the wors
ColdFusion Summit 2022 Slides
Pete Freitag
I'm back from another excellent CFSummit. So many great presentations and conversations. This year I gave a presentation on the 25 Most Dangerous S
Ways to suppress a finding in Fixinator
Pete Freitag
Code is complex, so any static application security testing (SAST) tool will find things that may not be an actual security issue.
Simple Parallel Execution in ColdFusion or Lucee
Pete Freitag
A really handy feature of the arrayEach() function is the parallel argument. It has been suppor
Creating a ColdFusion UUID in MySQL
Pete Freitag
The uuid() function in MySQL returns a 36 character hex string, formatted as: aa479ea9-1d9d-11ed-ba03-564760fe47b7 ColdFusio
Better CFML Code with CI
Pete Freitag
I gave a presentation for the Adobe ColdFusion Developer Week Conference today titled: Better CFML Code with CI. You can find the
Firefox Hosts File Not Working?
Pete Freitag
I'm probably not the first one to notice this, but if you have a hosts file (eg /ect/hosts or c:\windows\system32\drivers\etc\hosts
How to read a ColdFusion Stacktrace
Pete Freitag
This question came up recently: How do you read a stack trace? Are there any resources that will educate me? While the
How I cut AWS Lambda Java Cold Start Times in Half
Pete Freitag
It is rare that a simple JVM argument change can have a dramatic impact on execution times, but in the case of AWS Lambda adjusting the Tiered Comp
Spring4Shell and ColdFusion
Pete Freitag
I've had a bunch of people ask me if ColdFusion / Lucee servers need to worry about the recent Java vulnerability in Spring, nick named Spring4Shel
Order by NULL Values in MySQL, Postgresql and SQL Server
Pete Freitag
If you have a column that may contain NULL values, and you want sort on that column with an ORDER BY clause, which comes firs
CloudFlare Authenticated Origin Pulls
Pete Freitag
If you are using CloudFlare in front of your web server, it is a good idea to setup
Log4j 1.x Vulnerability Guide
Pete Freitag
Almost every day I see someone asking what to do about log4j 1.2 / 1.x versions. It can be quite a lot of wrap your head around, and it can't be answer...
Log4Shell Vulnerability Timeline
Pete Freitag
When I created a blog entry covering Log4Shell log4j on ColdFusion, and said I would update it a
How to get Log4j Version at Runtime in Java
Pete Freitag
Here's how you can get the version of Log4j you are using at runtime using Java: Java Code to Get the Log4j Version at Runtime
Log4j CVE-2021-44228 Log4Shell Vulnerability
Pete Freitag
There is a critical security vulnerability (CVE-2021-44228 aka Log4Shell) in the java library log4j which is a popular logging library for java applica...
Listing loaded OSGI Bundles in Lucee
Pete Freitag
Here's a quick code snippet that will output a list of OSGI java bundles and bundle versions that are loaded / installed on Lucee: //CFMLEngi
Replacing Twitter Share / Follow Widget Buttons with CSS
Pete Freitag
While looking at the PageSpeed Insights for my blog I noticed that the Twitter widgets I was using to display a twitter follow button and a tw
Docker for Devs
Pete Freitag
A few years ago I gave a presentation to my local CFUG titled Docker for Devs. I recently realized that I never posted the slides or the examp
Securing ColdFusion Applications - DevWeek 2021
Pete Freitag
It was great to be a speaker at the ColdFusion DevWeek event last week. I spoke on the topic Securing ColdFusion Applications. As promi
Java versions supporting TLS 1.3
Pete Freitag
What versions of Java support TLSv1.3 / TLS 1.3? Java 8 TLS 1.3 Support If you are on Java 8 (or 1.8 if you prefer) then you need versi
URL Safe Base64 Encoding / Decoding in CFML
Pete Freitag
ColdFusion / CFML has a builtin function that can convert a string or a binary object to a standard Base64 encoded string:
TLSv1 and TLSv1.1 Disabled by Default in Java after April 2021
Pete Freitag
The OpenJDK Crypto Roadmap states that TLSv1 and TLSv1.1 will be disabled in OpenJDK relea
Bash Script to log file modifications with osquery
Pete Freitag
Here's a bash script that uses osquery to log which files in a specific folder have been modified over a 15 minute period. My use case her
Using Hashicorp Vault with ColdFusion
Pete Freitag
Hashicorp Vault is an open source, enterprise grade security vault. It is designed to grant secure access to the secrets that it stores. It can also act as an encryption as a service API. Vault is very powerful, and there are lots of resources and videos describing how it works. Using Vault is somet...
SessionInvalidate for JEE Sessions
Pete Freitag
The builtin CFML function sessionInvalidate() works great for invalidating or clearing a ColdFusion session (CFID/CFTOKEN). But it doesn't invalidate the underlying J2EE / JEE session (the JSESSIONID). You can dip down into the underlying JEE API and invoke the invalidate() function on the javax.ser...
Is maxlength necessary in cfqueryparam with timestamps?
Pete Freitag
Jakob Ward recently posted an interesting question to the CFML slack channel: Is there a point to setting maxlength for a timestamp value in cfqueryparam? Or can this be ignored safely? My guess was that cfqueryparam would ignore the maxlength attribute when the cfsqltype is timestamp (or cf_sql_t...
Java LTS Version Roadmap and Guide
Pete Freitag
People often download and install the latest version of Java, rather than the latest LTS version of java. In most cases, especially if it is on a server you probably want to be using the LTS version of java. So what is a Java LTS Version? LTS stands for Long Term Support, this means that the java ve...
ColdFusion Summit Fall 2020
Pete Freitag
Thanks to all who attended my talk today on Securing ColdFusion Applications. You can find the slides here. Many had asked me about the link to ColdFusion Security Training class to be held on Thursday December 10, 2020 @ 11am-2pm & Friday December 11 @ 11am-2pm (Eastern Standard Time, UTC -5). In t...
One liner to download a Browser with PowerShell on Windows Server
Pete Freitag
It would be nice if Windows Server 2019 came with Microsoft Edge Browser, but it still comes with good old IE 11, and on a Windows Server, you have to jump through hoops to let IE download anything due to its default security settings. First I tried downloading Microsoft Edge Browser with IE on Wind...
CFML Left and Right Functions can Accept Negative Counts
Pete Freitag
Here is a handy trick I saw in some code recently. It turns out you can use a negative integer in the count argument of the left() and right() functions in CFML. This works in multiple versions of both Lucee and Adobe ColdFusion! Here's an example: left("Peter", -1) This will trim 1 character off th...
Setting Lucee Admin Password with CommandBox
Pete Freitag
One of the recent changes to Lucee is that no longer allows you to enter an admin password from the web based lucee admin if one had not been set yet. This is a great feature for security, but for local development it makes things a bit more cumbersome. You'll see what I mean when you hit this error...
Cleaning up Development Disk Space CommandBox
Pete Freitag
I've been using CommandBox to startup CF servers on my dev laptop and desktop for several years, maybe even since the first version was released! CommandBox does a great job of hiding its internal magic, and thus the amount of disk space it consumes can creep up on you. To make matters worse it stor...