TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Dmitry Sergienko
from: Alex Woick
date: 2004-01-15 16:26:32
subject: hpt expanding variables in area description

Hallo Dmitry,

 AW>> bash-supplied path to hpt. If your area forwarding lists are generated
 AW>> by a coordinator and not by yourself, and you use them without
 AW>> filtering such variable references, he could inject arbitrary
 AW>> variables there and let people peek at them via areafix %list. I
 AW>> suggest a modification of the config file scanner. I imagine, htick
 AW>> has the same problem.

 DS> What exact modifications do you propose?

Difficult in general, since it is deep inside the fidoconf config parser.
If I have read correctly, the variable expansion is done with the
var_expand() call at the beginning in fidoconf's line.c::parseLine(). This
is before any semantic analysis of the keywords.
Perhaps the areafix could be modified: It could filter out [variable]
constructs out of area forwarding lists before writing back information
into the -d "description" field from auto-created EchoArea
definitions. I don't know if it does this already, since that is a piece of
software that changed very much recently.

Tschau
Alex

--- GEcho/2 1.20/beta+
* Origin: WOMBAZ Systems Heusenstamm [06104-923056 V34+/ISDN] (2:244/1351)
SEEN-BY: 633/267 270
@PATH: 244/1500 1200 2432/200 2476/418 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.