3

Is there a way to verify that the user changed the jQuery/JavaScript with Firebug during the use of client-side page?

3 Answers 3

4

No, there is no way to verify this.

When it comes to input from the browser, you should always verify and validate. Never trust the client.

Sign up to request clarification or add additional context in comments.

4 Comments

Too bad, it seems that with the passing years, there is something missing.
@achat.net - Something missing? The advice is not new.
Not the advice, the possibility to control is missing ! probably my english.
@achat.net - But that possibility was never there. As soon as the process runs on a different machine, it is out of your control (assuming you don't control the other machine).
1

No. The client is fundamentally unsafe and belongs to the user, not you.

Comments

0

Short answer it doesn't matter.
Long answer:
It matters if you are treating the JavaScript as part of your application structure, similar to how a SQL injection attack does bad things to your system. You should validate that anything that gets passed from the client is sanitized before being stored. The interesting attack vector here is if you allow me to persist elements into the structure of the web page and retrieve them at a later time. You have opened the doors to a reflected XSS attack (one of my favorites). This is indicative of a failure to sanitize user input and/or a failure to separate concerns UI from the system level code.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.