Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There's a number of issues here.</p> <p>Assuming that you have identified SQL injection as a vulnerability (and leaving aside that you also need to establish whether this was the exploited vulnerability in previous attacks, along with investigating and elimintaing any other vulnerabilities - which are very likely to exist) then...</p> <p>I accept that it may not be practical to correct the configuration of a code base which has been built around magic_quotes enabled, but fixing the config first is the correct way to address the problem. Further, one of the problems with magic_quotes is that some extensions enable them via a backdoor route - you can't necessarily rely on get_magic_quotes_gpc(). But if the confiugration is not changing then the behaviour will be consistent - so measure the behaviour and adjust your code accordingly. If magic quotes are enabled, then ideally you should put in place your own indicator of whether magic quotes are <em>currently</em> enabled - which will make life simpler when someone gets round to fixing the problem properly.</p> <p>But the first big WTF here, is why are you using your own code to escape data? The only ways you shoul be doing this are via mysql_real_escape_string() or via bound parameters. There is no way you should be using remove_spc_chr() as a method of escaping data for splicing into SQL strings.</p> <p>The second WTF here is that you seem to be trying to address different types of attack with your rewrite tules - which implies that you don't know what the vulnerabilities are. But your rewrite config only addresses a few, very specific attacks. A better solution would be to use mod_security and/or fail2ban.</p> <p>Using index.html as a generic error handler does not provide a good user experience.</p> <blockquote> <p>I thought there is a problem with server because some port was not secure</p> </blockquote> <p>If that's the case, then nothing you do to the webserver will improve security.</p> <blockquote> <p>I am not able to find and communicate that with server administrator</p> </blockquote> <p>If that's the case, then there's very little you can do to improve security.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload