server side code execution vulnerbility

trojan81 used Ask the Experts™

This question relates to cyber security and service side code execution.

In many cases I read about a vulnerability that allows an attacker to upload files.  However, how do they get the file to execute?  Normally it is mentioned as "vulnerability allowed for attacker to upload and execute the malicious payload".  I would see uploading and being able to tell the server to execute it as two separate functions that require two separate exploits.  Thoughts?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fractional CTO
Distinguished Expert 2018
Correct. Upload + Execute are two separate actions.

Whether you count this as one or two exploits, result is the same. If code can be uploaded + run, then exploit's can occur.



It's the code that is instructing the server to download and RUN the file.  What's an example or how might that code look?
btanExec Consultant
Distinguished Expert 2018
It is a two operation though related.

If the input from the XML data is not properly validated, it could leave you vulnerable to many attack possibilities, such as Server Side Request Forgery, Local File Read, Denial of Service, and XML External Entity (XXE) injection attack.  The article run through example and mainly is the server parsing the document did not handle well hence allowing code to be executed.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial