I'm sure all the CS people reading this (and maybe even some of the non-CS types!) are familiar with buffer overflow attacks, and know how to both protect against them and exploit them in other people's code, or at least have a vague idea about how to do it. However, fewer people have heard of format string attacks. Here's a
fairly detailed
(
Read more... )
Comments 11
Which is to say, (a) NEVER TRUST YOUR USER, and (b) many languages have a "quote" or "escape" function on strings that will go through a string and escape all the control characters it contains.
That's a pretty stylish hack, I must say.
Reply
XSS (as discussed in this very informative tech talk around minute 55) is a web-based vulnerability in which websites allow users to post arbitrary code on the site. As a general rule, websites with user logins put unique "session ID" cookies on users' machines to validate their sessions after they log in (and remove these cookies when they log out). If you can get someone else's cookie, you can log in as them (at least for a while) without that tedious business of actually logging in ( ... )
Reply
It's funny, because the first thing I thought when you said "...C++..." was "Prof. O'Neill would kill me if I used printf() in a C++ program", even though she's thousands of miles from here. ostreams and << all the way, was the message that got pounded into our heads. (Even though formatted printing this way is a pain in the assAn interesting side note is that lots of languages implement variations on printf(); strings in Python have __mod__ set up to take iterable structures and format them, for instance (more an "sprintf" than a "printf", strictly speaking ( ... )
Reply
What all have you been doing with OCaml lately?
Reply
:)
I'm pretty sure C++ is still The Right Language to be using for games and other high-performance programs, although a well-integrated higher-level scripting language is nice for things like game logic if you can keep it lean and mean...
Reply
Reply
Reply
\sheep{Perhaps I'll just suffer these security problems, since fixing them is a hard task.}
Reply
I wouldn't be terribly upset if we threw out the x86 architecture. Aside from the economic impact of everyone upgrading, it would let us get rid of a mammoth pile of backwards compatibility garbage in hardware and software.
Reply
Reply
Leave a comment