An application that sits outside of our network will allow the user to store pdf files on the database.
The concern is that these pdf files could contain viruses.
The vendor says the file will be stored in a bitstream form so there should be no threat to the database.
The field type being used is varbinary(max).
I can't find info on what I can do - all my internet searches point to sql injection or remote code execution - nothing on viruses that could be stored in a pdf that would be stored as bitstream.
Any help is appreciated.
Thanls in advance
I had done a little bit of research when i read a similar thread;
I was surprised that pdf's support the embedding of pretty much any object, so anything embedded could potentially execute malicious code.
HOW it gets stored does not in any way prevent malicious code execution...whethere it's a file or filestream doesn't matter at all...it's the opening of the file that could potentially execute code.
I might consider adding a custom process...dump varbinary(max to disk, virus scan them, and delete or clean and put it back if it raises an alert.
another option might be to run the exisitng pdf into a CutePDF printer driver, which converts everything to presentable text/images , which MIGHT strip out other objects?
it's a tough
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!