Jump to content

PHP Security


Patte12

Recommended Posts

Hi.

 

I have a third-party application that needs to know if a login was succeed. I send the username and password to PHP and then

PHP checks in the MySQL to see if it exist, if it exist then i simple use this "die("L-S");" to let my third-party application know that the

login was succeed. Now my questions is, is this safe? Or is there another way of doing this. I'm worried that a person just could manipulate

the PHP file to "die("L-S");" or something.

Link to comment
Share on other sites

Scratch my previous post, well.. Not completely, you still have to worry about SQL injections.

 

However, as xyph pointed out (and I didn't notice earlier) is that you should indeed skip the middle-man. Have your application check directly. Otherwise, what's to stop anyone from simply replacing the PHP script or manually inputting the correct string to fool the application?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.