06:00 UTC Charta Aetatis Cyberpunk

Console For you Newsletter Pro Sign in Register
Aa · Display
Themes
Type size
Density
Hacker Culture · HackerNoon · 23h · 4 min read

Name Your Stack, and ChatGPT Stops Leaking Your Bot Token

The warning was there. That's what bothered me most. I asked ChatGPT for "a simple HTML contact form for my website that sends each message to my Telegram." It gave me a clean, styled page with a <script> at the bottom holding const BOT_TOKEN = "YOUR_BOT_TOKEN", then a step telling me to replace the placeholder with a real token. Under all of that came a section headed "Important security warning": the token would be visible to anyone who opened the page source, and anyone could take over the bot. Everything in that answer is correct. It's just in the wrong order for the person who asked. Someone who asks for a simple form pastes the code, adds the token, sends a test, watches the message

…

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

The freshest blend of security news delivered to you. Text and HTML, one-click unsubscribe. Free.

How often
Your desks