CfBlogs
 Data Grids  CF Overflow  Follow Us!  RSS

ColdFusion Posts Around the World.
ColdFusion Summit 2024 Slides: 20 ways to secure CF
ColdFusion Summit 2024 Slides: 20 ways to secure CF
Pete Freitag
This year at the Adobe ColdFusion summit in Las Vegas I presented on 20 ways to secure ColdFusion. You can download my slides here. When giving a presentation on security there are certain topics t...
Latest ColdFusion Security Updates - September 2024
Latest ColdFusion Security Updates - September 2024
Pete Freitag
I am going to attempt to keep this page updated with the latest ColdFusion Security Updates and Hotfixes published by Adobe. This will allow me to update this page as more info becomes available about updates. I will also try to back fill this so it has past info as well. September 2024...
Left and Right Accept Negative Counts
Left and Right Accept Negative Counts
Pete Freitag
Here's something I learned recently: you can pass negative values into the left() and right() functions in CFML. Thanks to John Whish for pointing this out in a pull request on cfdocs.org. The left() and right() functions work great for...
Fixinator fixes unscoped variables
Fixinator fixes unscoped variables
Pete Freitag
Last week's Adobe ColdFusion security update disabled searchImplicitScopes by default. Prior to that update, and for the past twenty five years, ColdFusion would search through the all the possible scopes until it found a ma...
ColdFusion searchImplicitScopes and APSB24-14
ColdFusion searchImplicitScopes and APSB24-14
Pete Freitag
Adobe has published a ColdFusion Security Hotfix APSB24-14 today which describes "a critical vulnerability that could lead to arbitrary file system read". One of the things you will want to take...
Lucee RCE Vulnerabilities February 2024
Lucee RCE Vulnerabilities February 2024
Pete Freitag
Last week security researchers from Project Discovery published details on three Lucee vulnerabilities: A Remote Code Execution (RCE) on isDefined, StructGet, Empty functions ...
DNS over HTTPS is not what I thought
DNS over HTTPS is not what I thought
Pete Freitag
A few months ago I was on a mission to remove some of the old broken links on my blog. I started blogging back in 2002, so many of the sites that I linked to twenty years ago were no longer active, or no longer under the same ownership. I decided to start this task by weeding out any domains tha...
Remove the Server Header in any IIS Version
Remove the Server Header in any IIS Version
Pete Freitag
Removing the Server Header as of IIS 10 (the version of IIS installed by default on Windows Server 2016, 2019 or 2022) is now much easier than it had been with prior versions of IIS. By default IIS will return a HTTP response header like this: Server: Microsoft-IIS/10.0 This te...
Self Signed Certificates in Edge on Windows 2022
Self Signed Certificates in Edge on Windows 2022
Pete Freitag
When setting up a server for training purposes I wanted to create a self signed certificate for app1.example.com and trust it in Edge on Windows Server 2022. Normally when I create a self signed certificate on Windows Server I just use the IIS Server Certificates button C...
Self Signed Certificates in Edge on Windows 2022
Self Signed Certificates in Edge on Windows 2022
Pete Freitag
When setting up a server for training purposes I wanted to create a self signed certificate for app1.example.com and trust it in Edge on Windows Server 2022. Normally when I create a self signed certificate on Windows Server I just use the IIS Server Certificates button C...
The newline cat mystery
The newline cat mystery
Pete Freitag
I ran into a really strange problem today, whenever I would write a file it would show up as empty on my file system. Here's a simplified version of my code: var nl = chr(13); var csv = '"order_id","date"' & nl; csv &= '"1","2023-01-01"' & nl; fileWrite("/tmp/test.tx...
The newline cat mystery
The newline cat mystery
Pete Freitag
I ran into a really strange problem today, whenever I would write a file it would show up as empty on my file system. Here's a simplified version of my code: var nl = chr(13); var csv = '"order_id","date"' & nl; csv &= '"1","2023-01-01"' & nl; fileWrite("/tmp/test.tx...
Ticket to ColdFusion Summit 2023
Ticket to 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 ...
Win a Ticket for ColdFusion Summit 2023
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
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
Into The Box 2023 Slides
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 can be found here. For code samples I used my
File Create Time in ColdFusion / CFML
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...
File Created Date Time in ColdFusion / CFML
File Created Date 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 directoryList would return this, but it only returns the date the a file was modified, not the date that it was created. My next thought was...
Speaking at ColdFusion Summit Online Next Week
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
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
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?
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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...
Creating a Symbolic Link with ln -s What Comes First?
Creating a Symbolic Link with ln -s What Comes First?
Pete Freitag
One thing I've had to google more times than I'd like to admit is the path argument order for the ln command. What comes first in the ln -s command on linux or Mac? So I thought I'd write a little blog entry for future me to find. Here's an example: ln -s /real/path /linked/path To answer my own que...



Footer Logo

Powered by Galaxy Blog

If you have an ideathat you want to share, please contact us! This community can only thrive if we continue to work together.

Images and Photography:

Gregory Alexander either owns the copyright, or has the rights to use, all images and photographs on the site. If an image is not part of the "Galaxie Blog" open sourced distribution package, and instead is part of a personal blog post or a comment, please contact us and the author of the post or comment to obtain permission if you would like to use a personal image or photograph found on this site.

Credits:

Portions of Galaxie Blog are powered on the server side by BlogCfc, an open source blog developed by Raymond Camden. Revitalizing BlogCfc was a part of my orginal inspiration that prompted me to design this site.

Version:

Galaxie Blog Version 3.0 (Toby's Edition) June 14th 2022 Tropical Wave theme