2012-09-03 20 views
6

Dopo alcune ore di ricerca dell'errore, ho trovato un test riproducibile. Esso utilizza una forma semplice:Errore strano POST/PHP

<form name="test" method="POST" action="test.php"> 
    <textarea name="content"></textarea> 
    <input name="submit" type="submit" value="send"/> 
</form> 

Dopo aver riempito la textarea esattamente substring((SELECT e premendo il tasto 'invio' il server restituisce un errore generale: Connection with the server was reset while downloading ho guardato in http error_log ma non ci sono rapporti per questo.

Usando:

Linux 2.6.32-220.23.1.el6.x86_64 
Build Date Jul 3 2012 
Server API Apache 2.0 Handler 
Apache Version Apache/2.2.15 (CentOS) 
Apache API Version 20051115 
PHP Version 5.3.3 

test.php non ha codice PHP c'è solo la forma. Se rinominare il file in test.html e cambiare action = "test.html" l'errore rimane lo stesso.

provata su 15 FF e Chrome 21, (ERR_CONNECTION_RESET)

Firebug: POST test.php 192.168.1.1 Interrotto 0 192.168.1.1:80


E 'possibile che Apache è il filtraggio mia Dati POST? Ho notato che substring ((SELECT è menzionato in diversi exploit apache. Come è possibile disattivare questo tipo di filtri?

non riesco a vedere alcun mod_security nei miei moduli.

+5

ciò che è nel vostro test.php? –

+2

lavorare per me, nessun errore! –

+2

Esattamente, ci mostrano 'test.php' o non possiamo dicembre ide se questo ha qualcosa a che fare con il tuo codice. – think123

risposta

2

Assicurarsi che

echo '<pre>'; 
var_dump(apache_get_modules()); 

non elenca mod_security o un altro modulo relative alla sicurezza.