代做DSCI 525、Java/Python程序代写
Assignment 3
Objective
The objective of this assignment is to provide you the opportunity to apply secure software
development concepts studied in class.
Task 1 (50 points)
Answer the following questions.
1. The following program is vulnerable to a buffer overflow (assuming the absence of automated
defenses like ASLR, etc.).
a. What is the name of the buffer that can be overflowed?
b. What line of code can overflow the vulnerable buffer?
c. Recall the vulnerable overflow from the previous two questions. We can change one line of
code and make the buffer overrun go away. Which one-line change will eliminate the
vulnerability?
d. Which of the attacks that we studied do you think the program is susceptible to?
e. If we changed printf("%s",buf) to printf(buf) then the program would be
vulnerable to what sort of attack?
2. Recall Heartbleed attack.
a. What type of exploitation of the Heartbleed bug permits?
b. Why is it that anti-virus scanners would not have found an exploitation of Heartbleed?
3. Consider the following code:
char *foo(char *buf) {
char *x = buf +s trlen(buf);
char *y = buf;
while (y != x) {
if (*y == 'r')
break;
y++;
}
return y;
}
void bar() {
char input[10] = "test123";
foo(input);
}
The definition of spatial safety models pointers as capabilities, which are triples (p,b,e) where
p is the pointer, b is the base of the memory region the pointer is allowed to access, and e is
the extent of that region. Assuming characters are 1 byte in size, what is a triple (p,b,e) for the
variable y when it is returned at the end of the code?
4. In a return-oriented program (ROP), what is the role of the stack pointer?
5. A colleague proposes using a heap allocator that randomizes the addresses of allocated objects.
What is the impact of this design on security and performance?
6. Recall that classic enforcement of CFI requires adding labels prior to branch targets, and adding
code prior to the branch that checks the label to see if it's the one that is expected. Now consider
the following program:
To ensure that the instrumented program runs correctly when not being attacked, which of the
following functions would have to be given the same label?
7. Suppose you design software for a bank and the bank's customers may remotely log into its site
using commodity PCs. Which threat model (network-only, snooping, co-located) makes the most
sense for you to consider, when designing the bank's site? Briefly explain.
8. Suppose that x and y in the following program are symbolic. When the symbolic executor
reaches the line that prints "Hi" what will the path condition be?
/* assume x and y are both symbolic */
void foo(int x, int y) {
if (x > 5)
if (y > 7) {
printf("here
");
} else {
if (x < 20)
printf("Hi
");
else
printf("Bye
");
}
}
9. Suppose that x in the following program is symbolic. When the symbolic executor reaches the
line that prints "now" what will the path condition be?
void bar(int x) {
int z;
if (x > 5)
z = 5;
else
z = 1;
if (z > 3)
printf("now
");
}
10. Which of the following styles of fuzzer is more likely to explore paths covering every line of
code in the following program?
• Black Box
• Grammar based
• White Box
Task 2 (50 points)
Research the design of the Google Fuchsia OS (please do more than just reading Wikipedia). The code is
available here: https://fuchsia.googlesource.com.
Describe the techniques (studied in class and those that were not discussed in class) that this new OS uses
for security. For this task write a 3-page report. Include your references.
Deliverable and Grading
Upload your written report to D2L “Homework3” folder. For task1, each question is worth 5 points.
请加QQ:99515681 邮箱:99515681@qq.com WX:codinghelp
- TG-WS-LINE频道号,直登号,协议号,老号,怎么识别可靠的代筛全球app机构
- ws/WhatsApp营销引流群发工具,ws协议群发/ws拉群/ws协议号
- 商务科技狂想曲 科幻魔法师推荐WhatsApp拉群工具 为用户呈现出业务体验的未知魔幻之境
- 在国际市场上 WhatsApp拉群营销工具 是你事业成功的国际通行证
- 高合丁磊准确分析市场,积极创新引领汽车发展新方向
- 海纳AI面试官发布智能校招一体化解决方案
- TT语音公司六次上榜中国互联网综合实力百强企业
- Instagram营销软件,ins最稳群发工具/ig群发引流必备神器
- 外贸小白新篇章 WhatsApp拉群工具的创新思维是我业务迅速成长的秘密
- 代做ELEC 292、代写Python/c++编程设计
- 成年人高度近视矫正方式如何选?北京爱尔新力眼科赵可浩院长这样说!
- ins群发软件,ins营销软件,ins拉群软件天宇爆粉【TG:@cjhshk199937】
- 印度#Telegram协议号-telegram劫持号-telepram拉群软件稳定耐用欢迎盘口直购
- 定制化推广方案,WhatsApp代拉群让品牌推广更精准!
- 代做COMP9334、Python/Java程序设计代写
- Instagram群发私信工具,ins营销软件,ig采集神器
- Ins拉群营销软件,Instagram引流工具,让你的营销如虎添翼!
- 电报拉群神器!Telegram营销软件助你实现社交爆发!
- 龟仙洞酒荣获“中国十八大新名酒”
- 擘画蓝图 向新而行 英轩集团2024年度商务年会圆满召开
- Ins/Instagram一键爆粉推广软件,ins群发采集利器强力推荐!
- ins群发营销软件,ins营销软件,协议操作自动发送日日爆粉
- 代做Godunov-Type Scheme
- 北京爱尔英智眼科医院范春雷为母子俩施眼外斜手术,眼病、心病都好了!
- 代做data程序、代写Java/Python编程设计
- 进入元宇宙,体验令人惊叹的新东京 - The Virtual Edo-Tokyo Project (虚拟江户东京项目)
- 海外反馈机制:全球app云筛在全球用户沟通中的关键作用
- WhatsApp协议营销软件/ws群发/ws拉群/ws美国号/ws注册工具
- XC95144XL-7TQ144I: Unleashing FPGA Power for Advanced System Integration | ChipsX
- 刷爆朋友圈,AlphaGPT在法律ai圈子火了,案件仅需3分钟搞定
推荐
- 如何经营一家好企业,需要具备什么要素特点 我们大多数人刚开始创办一家企业都遇到经营 科技
- 智慧驱动 共创未来| 东芝硬盘创新数据存储技术 为期三天的第五届中国(昆明)南亚社会公共安 科技
- 老杨第一次再度抓握住一瓶水,他由此产生了新的憧憬 瘫痪十四年后,老杨第一次再度抓握住一瓶水,他 科技
- B站更新决策机构名单:共有 29 名掌权管理者,包括陈睿、徐逸、李旎、樊欣等人 1 月 15 日消息,据界面新闻,B站上周发布内部 科技
- 丰田章男称未来依然需要内燃机 已经启动电动机新项目 尽管电动车在全球范围内持续崛起,但丰田章男 科技
- 全力打造中国“创业之都”名片,第十届中国创业者大会将在郑州召开 北京创业科创科技中心主办的第十届中国创业 科技
- 苹果罕见大降价,华为的压力给到了? 1、苹果官网罕见大降价冲上热搜。原因是苹 科技
- 升级的脉脉,正在以招聘业务铺开商业化版图 长久以来,求职信息流不对称、单向的信息传递 科技
- 疫情期间 这个品牌实现了疯狂扩张 记得第一次喝瑞幸,还是2017年底去北京出差的 科技
- 创意驱动增长,Adobe护城河够深吗? Adobe通过其Creative Cloud订阅捆绑包具有 科技