Skip to content

Security-related question about a possible exposed credential #6

@Emma-NYL

Description

@Emma-NYL

Hello,

My name is Emma, I am conducting an academic study on possible credential exposure in public GitHub repositories.

While analyzing this repository, I found a string that may represent a credential. I'm including the code snippet below containing possible leakage. To avoid exposing sensitive information publicly, I marked the sensitive information.

Could you please help clarify whether the detected string is:

  1. a real credential, or
  2. a placeholder / example value?

Thank you for your time.


Code snippet (sensitive values masked):

                "put %s\n"
                "ls \n"
                "EOF\n",
                ftp_ip,
                ftp_port ? ftp_port : 21,
                ftp_uname ? ftp_uname : "an****ous",
                ftp_pwd ? ftp_pwd : "an****ous",
                src_dir, out_file);
        fclose(f);

        if (chmod("ftp.sh", S_IRUSR | S_IWUSR | S_IXUSR) < 0) {
                sigma_dut_print(dut, DUT_MSG_ERROR, "Failed to chmod ftp.sh");
                unlink("ftp.sh");

Thank you in advance for your time - I really appreciate it!

Sincerely,
Emma

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