Course Hero Logo

CS 410 Project Two Security Report.docx - CS 410 Project...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 3 out of 5 pages.

CS 410 Project Two Security ReportMason VoorheesInstructionsFill in the table in step one. In steps two and three, replace the bracketed text with your answer inyour own words.1.Identify where multiple security vulnerabilities are present within the blocks of C++code. You may add columns and extend this table as you see fit.1
Block of C++ CodeIdentified Security VulnerabilityvoidCheckUserPermissonAccess (){while (!status){cout << "Enter username:" <<endl;cin >> inputUser;cout << "Enter password" <<endl;cin >> inputPass;if (inputPass == password){status = true;}Only Password is checked so thelevel of security is lower since weonly need to check for a matchingpassword.void DisplayInfo (){cout << "Client's NameService Selected (1 =Brokerage, 2 = Retirement)" <<endl;for (int i = 0; i<5;i++){int listNumber = i+1;cout << listNumber << ". "<<client[i] << " selected option"<< option[i] << endl;}}All info is shown before checkinguser credentials again.stringpassword = "123";At the beginning we see that the valueof the password id hard coded when itshould not be.void ChangeCustomerChoice (){int change;string newVal;cout << "Enter the number ofthe client that you wish tochange" << endl;When running the Display infofunction we can set the service to anynumber not just 1 or 2.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Computer Security, Mason Voorhees

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture