server side code execution vulnerbility

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?
trojan81Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
trojan81Author Commented:
DAvid,

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 ConsultantCommented:
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.

https://www.google.com/amp/s/www.we45.com/blog/3-ways-an-xxe-vulnerability-could-hit-you-hard%3fhs_amp=true
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cyber Security

From novice to tech pro — start learning today.