php - Im using javascript and I have some questions about security
Get the solution ↓↓↓I'm learning to use LAMP stack but now im using javascript and I have some questions
Is there any security thread related to this kind of scripts:
Let's say there is a script
- that modifies the input values of a form
- or maybe animations for a carousel of images
- or show or hide an image
- or a confirmation message like this:
<script type="text/javascript">
function delete() {
return window.confirm( 'Are you sure?' );
}
</script>
Is there any security threat using that kind of things? Or security is only compromised when I enter data without validating and sanitizing in my server
Im asking because I always read XSS are related to javascript. Also Im using the session variables of php, I read that javascript can steal those, how can I prevent that? Is there any kind of threat that attacks my page without the information being sent to my server? Just with validating and sanitizing and escaping i'm already safe?. Im learning on my own.
Any article or book you know that explains these things, I would appreciate it if you would share it with me. I have not found anything very specific for these doubts, especially that of stealing php sessions.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: filter_sanitize_string deprecated
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.