Skip to content

Segmentation fault when uploading file with SecStreamInBodyInspection enabled #394

Closed

Description

@rcbarnett-zz

MODSEC-240: I get a segmentation fault when uploading file with SecStreamInBodyInspection enabled. The crash is during upload and no rules need to be running.

Activity

  1. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    Original reporter: ivanr

  2. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    ivanr: This is the debug log of the crash.

  3. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    bpinto: Please .. can u attach your main configuration file and the backtrace ?

  4. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    ivanr: Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000018
    0x000000010033ca7d in modsecurity_request_body_to_stream ()
    (gdb) bt full
    #0 0x000000010033ca7d in modsecurity_request_body_to_stream ()
    No symbol table info available.
    #1 0x000000010033d0a6 in modsecurity_request_body_end ()
    No symbol table info available.
    #2 0x0000000100309718 in read_request_body ()
    No symbol table info available.
    #3 0x0000000100302969 in hook_request_late ()
    No symbol table info available.
    #4 0x0000000100024d0e in ap_run_fixups ()
    No symbol table info available.
    #5 0x0000000100025996 in ap_process_request_internal ()
    No symbol table info available.
    #6 0x000000010004123a in ap_process_request ()
    No symbol table info available.
    #7 0x000000010003dabc in ap_process_http_connection ()
    No symbol table info available.
    #8 0x0000000100012d27 in ap_run_process_connection ()
    No symbol table info available.
    #9 0x00000001000131f5 in ap_process_connection ()
    No symbol table info available.
    #10 0x000000010005cc62 in child_main ()
    No symbol table info available.
    #11 0x000000010005cd55 in make_child ()
    No symbol table info available.
    #12 0x000000010005d328 in ap_mpm_run ()
    No symbol table info available.
    #13 0x0000000100009dac in main ()
    No symbol table info available.

  5. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    ivanr: SecRuleEngine On
    SecRequestBodyAccess On
    SecResponseBodyAccess On

    SecAuditEngine On
    SecAuditLogType Serial
    SecAuditLog logs/modsec_audit.log
    SecAuditLogParts ABCDEFHJKZ

    SecDebugLog logs/modsec_debug.log
    SecDebugLogLevel 9

  6. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    bpinto: Ivan,

    I will create a env and try to reproduce it. What is the file size your are submitting ?

  7. rcbarnett-zz commented on Oct 17, 2013

    @rcbarnett-zz
    ContributorAuthor

    ivanr: Sorry, forgot to mention (but you can still deduce it from the debug log ;). It's 680 KB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions