openbsd-ports/www/analog/Makefile
form f77f85dd37 upgrade to 5.22
SECURITY ADVISORY                                      20th March 2002
----------------------------------------------------------------------
Program: analog
Versions: all versions prior to 5.22
Operating systems: all
----------------------------------------------------------------------
Yuji Takahashi discovered a bug in analog which allows a cross-site
scripting type attack.

It is easy for an attacker to insert arbitrary strings into any web
server logfile. If these strings are then analysed by analog, they can
appear in the report. By this means an attacker can introduce
arbitrary Javascript code, for example, into an analog report produced
by someone else and read by a third person. Analog already attempted
to encode unsafe characters to avoid this type of attack, but the
conversion was incomplete.

Although it is not known that this bug has been exploited, it is easy
to exploit, and all users are advised to upgrade to version 5.22 of
analog immediately. The URL for analog is http://www.analog.cx/
I apologise for the inconvenience.

Thank you to Yuji Takahashi, Motonobu Takahashi and Takayuki Matsuki
for their help with this bug.

                                                        Stephen Turner
                                         analog-author@lists.isite.net
2002-03-20 13:09:29 +00:00

63 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2002/03/20 13:09:29 form Exp $
COMMENT= "extremely fast program for analysing WWW logfiles"
DISTNAME= analog-5.22
CATEGORIES= www
MASTER_SITES= http://www.analog.cx/ \
http://www.statslab.cam.ac.uk/~sret1/analog/ \
http://www.magma.ca/~brendanr/analog/ \
http://brendanr.simplenet.com/analog/ \
http://analog.gsp.com/ \
http://redmoon.reverse.net/analog/ \
http://www.rge.com/pub/infosystems/statistics/analog/ \
http://blip.cetlink.net/analog/ \
http://analog.technomancer.com/ \
http://analog.wizard.net/ \
ftp://ftp.netcasting.net/pub/packages/analog/
HOMEPAGE= http://www.analog.cx/
MAINTAINER= Oleg Safiullin <form@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
ANALOGDIR= ${PREFIX}/share/analog
CONFIGFILE= ${SYSCONFDIR}/analog.cfg
DOCDIR= ${PREFIX}/share/doc/analog
HTTPDIR= /var/www
IMAGEDIR= /analog-images
CFLAGS+= -DANALOGDIR=\"${ANALOGDIR}/\" \
-DDEFAULTCONFIGFILE=\"${CONFIGFILE}\" \
-DHTTPDIR=\"${HTTPDIR}/\" \
-DIMAGEDIR=\"${IMAGEDIR}/\" \
-DLANGDIR=\"${ANALOGDIR}/lang/\" \
-DANALOG=\"${PREFIX}/bin/analog\"
ALL_TARGET= analog
post-patch:
@mv ${WRKSRC}/anlgform.pl ${WRKSRC}/anlgform.pl.src
@sed -e "s,@PREFIX@,${PREFIX},g" < ${WRKSRC}/anlgform.pl.src \
> ${WRKSRC}/anlgform.pl
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/analog
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/analog
${INSTALL_DATA_DIR} ${ANALOGDIR}/lang
${INSTALL_DATA_DIR} ${ANALOGDIR}/images
${INSTALL_PROGRAM} ${WRKBUILD}/analog ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/analog
${INSTALL_DATA} ${WRKSRC}/examples/*.cfg \
${PREFIX}/share/examples/analog
${INSTALL_DATA} ${WRKSRC}/images/* ${ANALOGDIR}/images
${INSTALL_DATA} ${WRKSRC}/lang/* ${ANALOGDIR}/lang
${INSTALL_DATA} ${WRKSRC}/anlgform.html ${ANALOGDIR}
${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${ANALOGDIR}
.include <bsd.port.mk>