You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117721 Possible False Positive Detection in Image File

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 11 June 2026 14:55 BST

quichot

While testing file uploads, I noticed that JCE File Browser reports a standard JPEG image as containing embedded PHP code and blocks the upload.

After examining the file, I found no indication of executable code, malware, or any suspicious payload. The file appears to be a normal JPEG image containing standard image data and metadata only.

My understanding is that the detection may be triggered by a sequence of bytes occurring naturally within the compressed binary image data. Since image files contain arbitrary binary content, certain byte combinations can coincidentally resemble patterns that are typically associated with source code, even though they are not part of any executable content.

This suggests that the current detection mechanism may be generating a false positive by matching patterns within binary image data without verifying whether the match occurs in a valid textual or executable context.

Could you please review the detection logic to determine whether binary image content is being scanned in a way that may lead to false positives?

Thank you for your time and assistance.

Attachments

semaphore

Hi,

Same issue with a random PDF (generated with word maybe ?) (can't attach the file : extention error code)
Once compressed with an online compressor it work because it strip most of the code ^^

Ryan

Please try JCE Pro 2.9.99.7 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development/jce-pro-2-9-99-7-dev

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

semaphore

Same issue for me and my pdf (tested on different browser cache clean etc)😅

quichot

Hi Ryan, 
Thnx for this quick fix,

Now upload works fine with this specific file. Looks good now.

Regards

 

Ludo 

Ryan

I can't reproduce the issue with many different PDF files from different sources.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan

Please try JCE Pro 2.9.99.7 Beta 3 - https://www.joomlacontenteditor.net/downloads/editor/pro/development/jce-pro-2-9-99-7-dev

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.