Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 768387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:10:24+00:00 2026-05-14T18:10:24+00:00

I am not a guru of stack traces, at all. I don’t even know

  • 0

I am not a guru of stack traces, at all. I don’t even know how to get them. Anyway, I am wondering if entering a password entered in an inputbox is safe. Can’t it be retrieved by getting a stack trace?

A password entered that way will be found in many places:

  • Caption property of the TEdit
  • Result of the function which creates the inputbox
  • probably, a variable that stores the Result of the InputBox Command
  • etc…

If the answer is “yes, it is a vulnerability”, then my world collapses :p. What can be done to avoid this security hole?

NOTE: The InputBox is an example but it can be with a “homebrewed” login prompt.
InputBox is a Delphi command but I haven’t tagged the question with the Delphi tag because I suppose that the question concerns any language.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:10:25+00:00Added an answer on May 14, 2026 at 6:10 pm

    This is called the airtight hatchway problem, and stems (at least one of the sources) from a chapter in a book by Douglas Adams called The Hitchhikers Guide to the Galaxy. In it, our two protagonists are being carried by a large guard and dumped into a airlock, pending being evacuated into space. At some point, one of our protagonists says that he had a solution, but “it rather involved being on the other side of the airtight hatchway.”.

    Let me explain.

    If you have a cracker that is able to execute code (or in other ways “be”) on your own machine, you have already lost. There’s a ton of things that the cracker can do at that point.

    So your first line of defense should be to prevent bad-guys access to your machine, if you can handle that, security becomes much easier.

    So no, this is not a vulnerability, it is the fundamental way your computer works.

    In the simplest form, if someone is able to get hold of runtime live stack-traces of your program in motion, it probably means they have hooked up something that looks like a debugger to your program and is able to “debug” your program as it runs. A breakpoint could easily grab data from memory, process it, and then resume the program without the user ever knowing anything has happened, but in practice, there are far easier way to get hold of such information provided you can execute code on the system.

    Now, having said that, in .NET and many other runtimes there is support for attempts to at least make it harder, by instead of storing the whole string, they intercept one and one keystroke into your input box, and encodes it together with the rest of the password, so that each character is not stored in plain-text.

    However, the code that handles this becomes very cumbersome to work with, simply because any attempt to get the whole password in clear-text would make the whole exercise pointless, so unless you’re able to pass such encoded passwords end-to-end around your system, this won’t really help much.

    In .NET, the class in question is System.SecureString.

    However, again, if the bad-guy can execute code on your platform, what is there to stop him from intercepting the keystrokes and just combining them together to form your password?

    Here’s a couple of links with examples of similar questions:

    • It rather involved being on the other side of this airtight hatchway: Dubious escalation
    • It rather involved being on the other side of this airtight hatchway: If they can inject code, then they can run code
    • It rather involved being on the other side of this airtight hatchway: Elevation to administrator

    You can tell I’m a fan of Raymond Chen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a developer ... not so much the UI guru type. I can get
i'm not a c++ guru at all, and i've tried to replicate this error
I'm not a sql guru at all but why does this query return error?
I'm not guru of javascript, so don't blame me much. My task is to
First of all, let me warn you that i am not a javascript guru.
I'm not any jersey guru but i read that jersey cannot resolve java methods
I'm not a JavaScript guru (yet). I am trying to figure out a way
Not to sound like a koan, but just wondering if there are definite rules
NOT USING A XML PARSER I want to get the contents of the XML
I am not a guru of databases, do most of the things through PHP,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.