Quantcast
Channel: Everyday I'm coding » security
Browsing latest articles
Browse All 10 View Live

Why is using the JavaScript eval function a bad idea?

The eval function is a powerful and easy way to dynamically generate code, so what are the caveats? Solution: Improper use of eval opens up your code for injection attacks Debugging can be more...

View Article



Will web browsers cache content over https

Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it’s ok to cache? Solution: By default...

View Article

Image may be NSFW.
Clik here to view.

How do Google+ +1 widgets break out of their iframe?

Somehow, hovering over a Google+ plus-one widget can introduce a tooltip-type deal that is clearly larger than the <iframe> element in which it is contained. I’ve inspected the DOM to confirm...

View Article

RNGCryptoServiceProvider – generate number in a range faster and retain...

First I’m on a phone so please forgive poor formatting! I’ve done a lot of searching now and found no definitive answer to this. If there isn’t one, fair enough, but I’m sure somebody smarter than I...

View Article

Image may be NSFW.
Clik here to view.

How does this giant regex work?

I recently found the code below in one of my directories, in a file called doc.php. The file functions or links to a file manager. It’s quite nicely done. Basically, it lists all the files in the...

View Article


.NET obfuscation tools/strategy [closed]

My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or so of the code is written in VB.NET. For Intellectual Property reasons, I need to obfuscate the code, and until...

View Article

Where do you store your salt strings?

I’ve always used a proper per-entry salt string when hashing passwords for database storage. For my needs, storing the salt in the DB next to the hashed password has always worked fine. However, some...

View Article

Image may be NSFW.
Clik here to view.

What’s with those Do-Not-Use JavaScript People? [closed]

I really don’t understand what the problem is with those people who ask you not to use JavaScript on your site. I went through all sorts of trouble trying to remove a couple of JavaScript scripts I...

View Article


Why do people put code like “throw 1; ” and “for(;;);” in front of json...

Possible Duplicate: Why have “while(1);” in XmlHttpRequest response? Why does Google prepend while(1); to their JSON responses? Google returns json like this: throw 1; <dont be evil> { foo:...

View Article


What are the most common security mistakes programmers make? [closed]

There are the obvious wtfs that make the headlines such as SQL injection, authentication in JavaScript but are there other more fundamental and common errors programmmers tend to make when writing...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images