Likes Likes:  0
Resultaten 1 tot 2 van de 2
Geen
  1. #1
    Javor Ninov
    capi4hylafax insecure manipulation with tmp files
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    capi4hylafax insecure manipulation with tmp files

    This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
    --------------enig9F36BB3EB0D7A07D6A8441D7
    Content-Type: text/plain; charset=windows-1251
    Content-Transfer-Encoding: quoted-printable

    capi4hylafax suite (http://freshmeat.net/projects/capi4hylafax/ ) is
    addon for hylafax fax server (http://www.hylafax.org/)

    vulnerable:
    capi4hylafax-01.03.00 /probably others/

    in capi4hylafax-01.03.00/src/faxrecv/faxrecv.cpp :

    #ifdef GENERATE_DEBUGSFFDATAFILE
    dwarning (DebugSffDataFile =3D=3D 0);
    if (!DebugSffDataFile) {
    DebugSffDataFile =3D fopen ("/tmp/c2faxrecv_dbgdatafile.sff", "w")=
    ;
    }
    #endif

    in

    and in capi4hylafax-01.03.00/src/faxsend/faxsend.cpp :

    #ifdef GENERATE_DEBUGSFFDATAFILE
    dassert (DebugSffDataFile =3D=3D 0);
    DebugSffDataFile =3D fopen ("/tmp/c2faxsend_dbgdatafile.sff", "w");
    #endif

    vulnerable capi4hylafax-1.1a

    in capi4hylafax-1.1a/src/standard/ExtFuncs.h :
    #define DEBUG_FILE_NAME "/tmp/c2faxfcalls.log"

    then in capi4hylafax-1.1a/src/standard/DbgFile.c:
    unsigned DebugFileOpen (void) {
    DebugFileClose();
    hFile =3D fopen (DEBUG_FILE_NAME, "w");
    return (hFile !=3D 0);
    }
    <snip>
    void DebugFilePrint (char *string) {
    if (hFile) {
    fprintf (hFile, string);
    fflush (hFile);
    }
    printf (string);
    }

    impact:
    a regular user of the system can create a symbolic link to file on which
    hylafax has write access leading to overwriting of this file

    !!! VENDOR IS NOT NOTIFIED !!!

    Javor Ninov aka DrFrancky
    drfrancky shift+2 securax.org


    --------------enig9F36BB3EB0D7A07D6A8441D7
    Content-Type: application/pgp-signature; name="signature.asc"
    Content-Description: OpenPGP digital signature
    Content-Disposition: attachment; filename="signature.asc"

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (MingW32)

    iD8DBQFEDfq3ck4kcwaj+YIRAgkaAJ9DrwmQOjWfehs72hrVHg mzVewsXwCfe7Yq
    HsdNNRz59qLRqQCwu/UP1G8=
    =xsnA
    -----END PGP SIGNATURE-----

    --------------enig9F36BB3EB0D7A07D6A8441D7--

  2. #2
    skylazart
    capi4hylafax insecure manipulation with tmp files
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: capi4hylafax insecure manipulation with tmp files

    I can see format string problems too.

    void DebugFilePrint (char *string) {
    if (hFile) {
    fprintf (hFile, string); /* XXX: fmt string */
    fflush (hFile);
    }
    printf (string); /* XXX: here again */

    }


Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics