Skip to content

Bug: chat-telegram artifact path can escape outDir via botUsername #552

@ayskobtw-lil

Description

@ayskobtw-lil

The chat-telegram target currently builds its manifest artifact path by interpolating raw config.botUsername into a path string:

return { artifact: `${ctx.outDir}/telegram-${config.botUsername}.json` };

A username containing path separators, for example ../demo_bot, makes the returned artifact path escape or traverse relative to ctx.outDir:

<outDir>/telegram-../demo_bot.json

The artifact filename should sanitize the bot username for local filesystem use while preserving the original username for Telegram API calls and public bot URLs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions