Hi!
I've reproduced the curl request via command line. My command:
$ ./curl -u user:password -T
/path/to/data/20090306-094739-RHO-wNWwoyMAADEpJYEAAAkb
https://IP_CONSOLE:8888/rpc/auditLogReceiver -k
And the response:
<html>
<head>
<title>409 Mandatory header 'X-Content-Hash' not
found.</title>
</head>
<body>
<h2>409 Mandatory header 'X-Content-Hash' not
found.</h2>
<!-- Padding:
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
#############################################
-->
</body>
</html>
What does it means? How can I create the X-Content-Hash header?
Eduard
--------------------------------------------------------------------------------------------------------
-------- Missatge original --------
Hi everybody,
I've just started using Modsecurity console. I'm trying to collect the
audit logs but I haven't yet. All seems to work fine but I recive an
#409 error when trying to submit the alerts. I don't know where to look
for.
Thanks!
More information:
My sensor is in a Solaris 10 T2000, the console is in a Linux box with
fedora 9.
Here's an extract of my mlogc-error.log with level 5 debug:
[Fri Feb 27 13:19:38 2009] [5] [24848/0] Read 261 bytes from pipe:
`server.xtec.net xx.xx.xx.xx - - [27/Feb/2009:13:19:38 +0100] \"GET
/xxxxxxx/admin/cron.php HTTP/1.1\" 403 229 \"-\" \"-\"
e4z3K9WwoyMAAGEgxu8AAAmP \"-\"
/20090227/20090227-1319/20090227-131938-e4z3K9WwoyMAAGEgxu8AAAmP 0 872
md5:1b4107ddb93d3825104abb133fb63799 \n'
[Fri Feb 27 13:19:38 2009] [5] [24848/0] Received audit log entry (count
3 queue 0 workers 0): server.xtec.net xx.xx.xx.xx - -
[27/Feb/2009:13:19:38 +0100] \"GET /xxxxxxx/admin/cron.php HTTP/1.1\"
403 229 \"-\" \"-\" e4z3K9WwoyMAAGEgxu8AAAmP \"-\"
/20090227/20090227-1319/20090227-131938-e4z3K9WwoyMAAGEgxu8AAAmP 0 872
md5:1b4107ddb93d3825104abb133fb63799
[Fri Feb 27 13:19:38 2009] [4] [24848/0] Processed 1 entries from buffer.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Worker thread starting.
[Fri Feb 27 13:19:38 2009] [5] [24848/0] Shifted buffer back 261 and
offset 0 bytes for next read: `'
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Locking mutex.
[Fri Feb 27 13:19:38 2009] [5] [24848/0] Internal state: [evnt "0"][curr
"0"][next "0"][nbytes "65536"]
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Getting one entry from the
queue.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Got one job.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Processing entry.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Regular expression matched.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] File found, activating cURL.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Connection #0 seems
to be dead!
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Closing connection #0
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS alert,
Client hello (1):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: About to connect() to
10.155.x.x port 8888 (#0)
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Trying 10.155.x.x...
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: connected
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Connected to
10.155.x.x (10.155.x.x) port 8888 (#0)
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSL re-using session ID
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS handshake,
Client hello (1):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS handshake,
Server hello (2):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS change
cipher, Client hello (1):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS handshake,
Finished (20):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS change
cipher, Client hello (1):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSLv3, TLS handshake,
Finished (20):
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSL connection using
EDH-RSA-DES-CBC3-SHA
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Server certificate:
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: \t subject:
/C=Unknown/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=Unknown
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: \t start date:
2006-06-25 14:13:59 GMT
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: \t expire date:
2008-06-24 14:13:59 GMT
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: \t issuer:
/C=Unknown/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=Unknown
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: SSL certificate
verify result: self signed certificate (18), continuing anyway.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Server auth using
Basic with user 'wiphe'
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] CURL: Connection #0 to host
10.155.x.x left intact
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Request returned with
status "409 Parsing failed.": e4z3K9WwoyMAAGEgxu8AAAmP
[Fri Feb 27 13:19:38 2009] [2] [24848/b4070] Failed to submit entry with
"409 Parsing failed.": e4z3K9WwoyMAAGEgxu8AAAmP
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Sleeping for 50 msec.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Loop completed.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Locking mutex.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Removing previous entry
from storage.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Getting one entry from the
queue.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] No more work for this
thread, exiting.
[Fri Feb 27 13:19:38 2009] [4] [24848/b4070] Thread done.
[Fri Feb 27 13:19:40 2009] [5] [24848/361d0] Management thread: Processing
[Fri Feb 27 13:19:40 2009] [5] [24848/361d0] Management thread: Last
checkpoint was 5 seconds ago.
Eduard
--
Salutacions,
Eduard Cercós
Arquitectura Tecnològica
Departament d'Educació