Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4343818
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:48:29+00:00 2026-05-21T11:48:29+00:00

I’ve been tasked with allowing users to upload files to a webpage, and then

  • 0

I’ve been tasked with allowing users to upload files to a webpage, and then other users can download that file.

The file format is a custom one, for this example I’ll just call it .ccx. This is opened by our own custom software. The idea is, users can upload tutorial files to share with each other.

However, I’m concerned that someone could engineer a .ccx file to implant a virus on the users computer. This could have a very negative impact on our site if ever such a file was engineered, users would become fearful of downloading, and our competitors might use that to take advantage of us.

  • How can I as a web developer make sure that uploaded files are safe? I know it’s not possible to be 100% sure, but I want to improve on currently being ‘very unsure’.

  • Also, in our custom software, what steps can be taken to ensure that the .ccx file wont cause harm to the users computer (A Windows program written in C++)? I’m talking about the exe equivalent of an SQL injection.

Thanks for all answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:48:30+00:00Added an answer on May 21, 2026 at 11:48 am

    On the server, you can run any command line virus scanner over them and have them look for known virus signatures. However, it is questionable whether this will improve security: since the virus writers would need to taylor your format, it doesn’t seem very likely that their malicious files would match any known signatures, secondly you have the risks of false positives, causing otherwise valid uploads to be rejected.

    You need to make your client app’s handling of the file format as secure as possible. This means:

    • Do not trust the input files. Validate everything. Don’t be fault tolerant. If you are in control of the only application that writes such files, then any unexpected byte should trigger alarm bells.
    • Do extensive testing (for example some kind of fuzzy testing to simulate random input changes)
    • Design your file format as simple as possible. If the file format is complex, the implementation will be, too. And the more complex the implementation, the more format features to handle, the higher the risk of security vulnerabilities becomes.
    • Make sure you use OS security features, such as DEP or ASLR.
    • Ensure that all developers working on the project know about common security vulnerabilities and how to avoid them.
    • If you are really, really worried about possible attack vectors, try sandboxing the loading code. This can, for example, be achieved by using an embedded scripting language.

    You can never be 100% sure that your code is secure. So better take some precautions:

    • Implement automatic updates to be able to patch security holes quickly.
    • Warn users not to open files from untrusted authors (and tell them you’re not liable for any damage caused by ‘infected’ files …).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm looking for suggestions for debugging... If you view this site in Firefox or
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.