Tried that before and tried it now. Still the same problem. Mail gets dropped.
Would it realistic to think that a script similar to this is being used on absalut
Code:
Code:
diff -ru php-4.4.2/ext/standard/mail.c php-4.4.2-ws/ext/standard/mail.c
--- php-4.4.2/ext/standard/mail.c 2006-01-01 14:46:57.000000000 +0100
+++ php-4.4.2-ws/ext/standard/mail.c 2006-02-28 17:56:36.000000000 +0100
@@ -103,6 +103,23 @@
return;
}
+
+ if (headers_len > 0 && headers && (strstr(headers,"\n\n") || strstr(headers,"\r\n\r\n")) ) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "double newline in headers, possible injection, mail dropped");
+ RETURN_FALSE;
+ }
+
+ /* check for spam attempts with buggy webforms */
+ if (strchr(to, '\n') != NULL || strchr(to, '\r') != NULL) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "newline in to header, possible injection, mail dropped");
+ RETURN_FALSE;
+ }
+
+ if (strchr(subject, '\n') != NULL || strchr(subject, '\r') != NULL) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "newline subject header, possible injection, mail dropped");
+ RETURN_FALSE;
+ }
+
Thank you for the reply M8