Skip to content
The Chat Archive
gpt-3.5-turbo-0613· OpenAI WildChat-4.8M (AI2)

1. Question 1 Three of the following are classic security properties; which one is not?…

  1. User

    Question 1 Three of the following are classic security properties; which one is not?

    1 point

    Integrity

    Confidentiality

    Availability

    Correctness

    Question 2 What was the first buffer overflow attack?

    1 point

    Code Red

    Love Bug

    Morris Worm

    SQL Slammer

    Question 3 The stack is memory for storing

    1 point

    Global variables

    Dynamically linked libraries

    Program code

    Local variables

    Question 4 Why is it that the compiler does not know the absolute address of a local variable?

    1 point

    Compiler writers are not very good at that sort of thing

    As a stack-allocated variable, it could have different addresses depending on when its containing function is called

    Programs are not allowed to reference memory using absolute addresses

    The size of the address depends on the architecture the program will run on

    Question 5 When does a buffer overflow occur, generally speaking?

    1 point

    when the program notices a buffer has filled up, and so starts to reject requests

    when a pointer is used to access memory not allocated to it

    when writing to a pointer that has been freed

    when copying a buffer from the stack to the heap

    Question 6 How does a buffer overflow on the stack facilitate running attacker-injected code?

    1 point

    By writing directly to the instruction pointer register the address of the code

    By writing directly to %eax the address of the code

    By overwriting the return address to point to the location of that code

    By changing the name of the running executable, stored on the stack

    Question 7 What is a nop sled?

    1 point

    It is an anonymous version of a mop sled

    It is a sequence of nops preceding injected shellcode, useful when the return address is unknown

    It is a method of removing zero bytes from shellcode

    It is another name for a branch instruction at the end of sequence of nops

    Question 8 The following program is vulnerable to a buffer overflow (assuming the absence of automated defenses like ASLR, DEP, etc., which we introduce in the next unit). What is the name of the buffer that can be overflowed?

    1 point

    len

    msg

    buf

    out

    Question 9 Here is the same program as the previous question. What line of code can overflow the vulnerable buffer?

    1 point

    strncat(buf,out,sizeof(buf)-len-1);

    printf("%s",buf);

    sprintf(out, "argument %d is %s\n", argc-1, argv[argc-1]);

    len = strlen(buf);

    printf(msg)

    Question 10 Recall the vulnerable overflow from the previous two questions. We can change one line of code and make the buffer overrun go away. Which of the following one-line changes, on its own, will eliminate the vulnerability?

    1 point

    change char msg[] = "Welcome to the argument echoing program\n" to char msg[42] = "Welcome to the argument echoing program\n"

    change printf(msg) to printf("%s",msg);

    change printf("%s",buf) to printf(buf);

    change sprintf(out, "argument %d is %s\n", argc-1, argv[argc-1])

    to snprintf(out, S, "argument %d is %s\n", argc-1, argv[argc-1])

    Question 11 Recall the vulnerable program from the previous few questions. Which of the following attacks do you think the program is susceptible to?

    1 point

    code injection

    data corruption

    reading arbitrary addresses in memory

    all of the above

    Question 12 Recall the program again.

    If we changed to then the program would be vulnerable to what sort of attack?

    1 point

    heap overflow

    format string attack

    use-after-free attack

    all of the above

    Question 13 Exploitation of the Heartbleed bug permits

    1 point

    a format string attack

    a read outside bounds of a buffer

    a kind of code injection

    overwriting cryptographic keys in memory

    Question 14 Why is it that anti-virus scanners would not have found an exploitation of Heartbleed?

    1 point

    Heartbleed attacks the anti-virus scanner itself

    Heartbleed exploits are easily mutated so the files they leave

    behind do not appear unusual

    Anti-virus scanners tend to look for viruses and other malicious

    code, but Heartbleed exploits steal secrets without injecting any code

    It's a vacuous question: Heartbleed only reads outside a buffer, so

    there is no possible exploit

    Question 15 An integer overflow occurs when

    1 point

    an integer is used as if it was a pointer

    an integer is used to access a buffer outside of the buffer's bounds

    an integer expression's result "wraps around"; instead of creating a very large number, a very small (or negative) number ends up getting created

    there is no more space to hold integers in the program

  2. Assistant

    The answer to question 1 is "Correctness". The answer to question 2 is "Morris Worm". The answer to question 3 is "Local variables". The answer to question 4 is "As a stack-allocated variable, it could have different addresses depending on when its containing function is called". The answer to question 5 is "when a pointer is used to access memory not allocated to it". The answer to question 6 is "By overwriting the return address to point to the location of that code". The answer to question 7 is "It is a sequence of nops preceding injected shellcode, useful when the return address is unknown". The answer to question 8 is "buf". The answer to question 9 is "strncat(buf,out,sizeof(buf)-len-1);". The answer to question 10 is "change char msg[42] = "Welcome to the argument echoing program\n"". The answer to question 11 is "all of the above". The answer to question 12 is "heap overflow". The answer to question 13 is "a read outside bounds of a buffer". The answer to question 14 is "Anti-virus scanners tend to look for viruses and other malicious code, but Heartbleed exploits steal secrets without injecting any code". The answer to question 15 is "an integer expression's result "wraps around"; instead of creating a very large number, a very small (or negative) number ends up getting created".

  3. User

    صحح لي التنسيق للحصول على منحة ممولة بلكامل يرجى مشاركة القليل عن وضعك المالي ولماذا تتقدم بطلب إلى UoPeople. ستسهل قصتك علينا أن نطابقك بمنحة دراسية معينة. مرحبا أنا طالب من اليمن انا مهتم بالحصول على منحة من جامعتكم الموقرة University Of The People واريد ان اكمل تعليمي في الحصول على شهادة البكلريوس في ادارة الاعمال لبدء مشروع ناجح و لتكملة المسار التخصصي في ادارة الاعمال و لادارة مشروع توعوي و لترسيخ المعرفة العملية العلمية وللفهم العميق التعريفي في ادارة الاعمال ولتوعية الناس من المخاطر المالية وتنبيهاهم اولا باول ولنشر الفائدة بين المجتمع كون ان تخصص ادارة الاعمال في تقدم كل دقيقة يتم كشف ثغرة جديدة وتهدد بها التطوير الذي وصلنا له في القرن الواحد والعشرين فلابد من التعليم بشكل مستمر و لتكتمل مسارات التعلم دون انا أفقد ما تعلمته. لكن ليس لدي وظيفة خاصة بي لتحمل نفقات سداد شهادة هذه التخصص. أنا أعيش فقط من أجل المنحة الدراسية الخاصة بي ، ومن الصعب جدًا بالنسبة لي جمع هذا المبلغ من المال للحصول على الشهادة. ستساعدني المعونة المالية في أخذ هذا التخصص دون أي تأثير سلبي على احتياجاتي الأساسية الشهرية. لذا فأنا في حاجة ماسة إلى هذه المساعدة المالية. أريد أن أحصل على التخصص كما أريد أن أتعلم الحماية من المخاطر والتهديدات المالية . ستعزز هذا التخصص آفاق عملي بعد التخرج من University Of The People الذي أعمل به كطالب ومدرس مبتداء بشكل مجانا متطوع. ايضى سيساعد ذلك في أداء أفضل في فهم ادارة الاعمال والتعرف على مجنمعات وتعلمها ويمنحني ميزة على منافسي. ستعمل الشهادة التي تم التحقق منها على إرفاق المصداقية بالشهادة التي تلقيتها من الدورة التدريبية السابقة في جامعات اخرى مثل microsoft وlinkedin وedx ايضى أخطط لإكمال جميع المهام في الوقت المحدد أو قبله كما ساعدتني الدورات التدريبية على زيادة معرفتي بالبرمجة والأمن والحماية وأدارة عملي بشكل كبير في الماضي والآن اتمنى من الله ثم منكم قبول الدعم المالي في University Of The People سأستفيد منها في عمل كمدرس مبتدا كي اعيل نفسي واسرتي ومن احتياجاتي كطالب أدرس واقوم بتدريس الناس وهدفي الوظيفي الرئيسي هو التعلم كل يوم. أريد حقًا أن أتعلم وأن أتقدم في مسيرتي المهنية. ستساعدني دراسة ادارة الاعمال في فهم عميق وتطويري في خطتي الدراسية والانضمام إلى مجتمع من الاقتصاديين وقادة الأعمال ورجال الأعمال والتقنيين الذين يشكلون هذه التكنولوجيا في الوقت الحالي.و تحديد جوانب مهم جدا و التي تبدو أكثر أهمية وذات صلة بنا ، مع الابتعاد عن أساس قوي في ما يتجه إليه العالم في موكب التطور والامن والحماية والتي هي كل يوم في تطور مستمر، ولكي امتلك تلك المعلومات لابد لي من تطوري وتقيف نفسي بشكل مستمر ، وكيفية الاستعداد له. ستساعدني الداسة في تحقيق ذلك للتعلم وشكرا لكم.

  4. Assistant

    أهلاً، أنا طالب من اليمن وأرغب في الحصول على منحة ممولة بالكامل من جامعة الأشخاص University Of The People. أرغب في استكمال تعليمي للحصول على شهادة البكالوريوس في إدارة الأعمال بهدف بدء مشروع ناجح والاستمرار في تخصص إدارة الأعمال لتنفيذ مشروع توعوي ولتعزيز المعرفة العلمية وتوعية الناس بالمخاطر المالية وتوفير الحماية اللازمة لهم والنشر العام للفائدة. تعد إدارة الأعمال تخصصًا حيويًا حيث يتم كشف ثغرات جديدة في هذا المجال بشكل مستمر، لذلك يجب علينا الاستمرار في التعلم وتطوير مهاراتنا دون فقدان ما تعلمناه.

    للأسف، ليس لدي وظيفة تمكنني من تغطية تكاليف الدراسة في هذا التخصص. أعيش فقط على أمل الحصول على المنحة الدراسية، ومن الصعب جدًا بالنسبة لي توفير هذا المبلغ المالي للحصول على الشهادة. ستساعدني المساعدة المالية في تحقيق هدفي في دراسة هذا التخصص دون التأثير على احتياجاتي الأساسية الشهرية. أنا بحاجة ماسة إلى هذه المساعدة المالية.

    أهدافي هي الحصول على التخصص في إدارة الأعمال وتعلم كيفية الحماية من المخاطر المالية. ستسهم هذه الدراسة في تحسين فرص عملي بعد التخرج من University Of The People حيث أعمل حاليًا كطالب ومدرس متطوع. ستساعد هذه الشهادة المعترف بها في إثبات مصداقية المعرفة التي حصلت عليها من الدورات التدريبية في جامعات أخرى مثل Microsoft وLinkedIn وedx. أتطلع أيضًا إلى إكمال المهام في الوقت المحدد والاستفادة من البرمجة والأمان وإدارة الأعمال في التطبيق العملي.

    آمل أن تقبلوا طلبي للحصول على الدعم المالي في جامعة الأشخاص. سيساهم التعليم في تطوير قدراتي وزيادة فهمي لإدارة الأعمال والتعرف على مجتمع الاقتصاديين ورواد الأعمال والمهنيين الذين يتشاركون في تكنولوجيا القرن الحالي. كما سيمنحني الاستعداد اللازم لتحديات العالم المتزايدة في مجال التطوير والأمان والحماية الذي يتطور باستمرار.

    شكرًا لكم وآمل أن تتم الموافقة على طلبي للحصول على دعم مالي في جامعة الأشخاص. سأستفيد كطالب ومدرس للمبادئ التي سأتعلمها وسأستخدمها لتحقيق أحلامي ودعم نفسي وعائ