Re: [SC-L] Insecure Java Code Snippets

2009-05-10 Thread Robert Seacord
Message- From: sc-l-boun...@securecoding.org [mailto:sc-l-boun...@securecoding.org] On Behalf Of Brad Andrews Sent: Wednesday, May 06, 2009 1:41 PM To: sc-l@securecoding.org Subject: [SC-L] Insecure Java Code Snippets Does anyone know of a source of insecure Java snippets? I would like to get

Re: [SC-L] Insecure Java Code Snippets

2009-05-10 Thread Wall, Kevin
Larry Kilgallen wrote... > So tell me what you think is easier in C/C++. Well, just from a pure language POV, in comparing C++ with Java (sorry, not qualified to comment on Ada), there is one advantage to C/C++ over Java and that is in C++ I have a much higher level of confidence of doing things t

Re: [SC-L] Insecure Java Code Snippets

2009-05-08 Thread ljknews
At 9:15 AM -0400 5/8/09, SC-L Reader Dave Aronson wrote: > ljknews wrote: >> At 12:47 PM -0500 5/7/09, Brad Andrews wrote: >>> Quoting ljknews : At 5:49 PM -0500 5/6/09, Brad Andrews wrote: > Try a few of the PC-Lint bugs, if you ever wrote C/C++ code. > They can be really hard to fig

Re: [SC-L] Insecure Java Code Snippets

2009-05-08 Thread SC-L Reader Dave Aronson
ljknews wrote: > At 12:47 PM -0500 5/7/09, Brad Andrews wrote: >> Quoting ljknews : >>> At 5:49 PM -0500 5/6/09, Brad Andrews wrote: Try a few of the PC-Lint bugs, if you ever wrote C/C++ code. They can be really hard to figure out, >>> And yet people keep choosing those programming lang

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread ljknews
At 12:47 PM -0500 5/7/09, Brad Andrews wrote: > Quoting ljknews : > >> At 5:49 PM -0500 5/6/09, Brad Andrews wrote: >> >>> Try a few of the PC-Lint bugs, if you ever wrote C/C++ code. >>> They can be really hard to figure out, >> >> And yet people keep choosing those programming languages. > > T

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Steven M. Christey
On Thu, 7 May 2009, ljknews wrote: > At 5:49 PM -0500 5/6/09, Brad Andrews wrote: > > > Try a few of the PC-Lint bugs, if you ever wrote C/C++ code. > > They can be really hard to figure out, > > And yet people keep choosing those programming languages. Yeah. Like the developers of the compiler

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Brad Andrews
Quoting ljknews : > At 5:49 PM -0500 5/6/09, Brad Andrews wrote: > >> Try a few of the PC-Lint bugs, if you ever wrote C/C++ code. >> They can be really hard to figure out, > > And yet people keep choosing those programming languages. They offer quite a bit of power in exchange for the danger.

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Rohit Sethi
Brad, I recommend you approach this problem in reverse. Think of the bug you want people to hunt for and then put together an appropriate regular expressions in Google Code Search (http://www.google.com/codesearch) For instance "lang:java request getParameter .*price" might be a good starting poin

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread ljknews
At 5:49 PM -0500 5/6/09, Brad Andrews wrote: > Try a few of the PC-Lint bugs, if you ever wrote C/C++ code. > They can be really hard to figure out, And yet people keep choosing those programming languages. -- Larry Kilgallen ___ Secure Coding mailing

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Martin Johns
Brad, I recently read a book called "Java Puzzlers" (http://www.amazon.com/Java-TM-Puzzlers-Pitfalls-Corner/dp/032133678X/ref=sr_1_1?ie=UTF8&s=books&qid=1241707826&sr=8-1 ). The book consist of small Java programs that appear to do one thing but actually behave differently than expected. I guess t

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Brad Andrews
I had the name wrong, it was PC-Lint. See http://www.gimpel.com/html/bugs.htm That is what I am looking for, not just a general listing of bugs or insecure code. I want bugs that are hard to find and formatted like this. If I do create some and do it on my own (outside work), I will try

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Ben Livshits
ilton 703.698.7454 goertzel_ka...@bah.com -Original Message- From: sc-l-boun...@securecoding.org on behalf of Brad Andrews Sent: Wed 06-May-09 13:41 To: sc-l@securecoding.org Subject: [SC-L] Insecure Java Code Snippets Does anyone know of a source of insecure Java snippets? I would li

Re: [SC-L] Insecure Java Code Snippets

2009-05-07 Thread Brad Andrews
Thanks Karen, that site may have enough of what I can use. Still a bit of work to do, but worth pursuing. The other sources were a bit too short on the snippets side, which is my fault for not making the question better. I don't know how many of you used to read the C-Lint ads that said

Re: [SC-L] Insecure Java Code Snippets

2009-05-06 Thread Goertzel, Karen [USA]
.7454 goertzel_ka...@bah.com -Original Message- From: sc-l-boun...@securecoding.org on behalf of Brad Andrews Sent: Wed 06-May-09 13:41 To: sc-l@securecoding.org Subject: [SC-L] Insecure Java Code Snippets Does anyone know of a source of insecure Java snippets? I would like to get som

Re: [SC-L] Insecure Java Code Snippets

2009-05-06 Thread Steven M. Christey
On Wed, 6 May 2009, Brad Andrews wrote: > Does anyone know of a source of insecure Java snippets? I would like > to get some for a monthly meeting of leading technical people. My > idea was to have a "find the bug" like the old C-Lint ads. CWE has many snippets like this for various languages,

Re: [SC-L] Insecure Java Code Snippets

2009-05-06 Thread Brian Chess
We keep a big catalog here: http://www.fortify.com/vulncat On 5/6/09 10:41 AM, "Brad Andrews" wrote: > > > > Does anyone know of a source of insecure Java snippets? I would like > to get some for a monthly meeting of leading technical people. My > idea was to have a "find the bug" like

Re: [SC-L] Insecure Java Code Snippets

2009-05-06 Thread Jim Manico
Any Java Education book, like Cay Hortsman's Core Java. Seriously. - Jim - Original Message - From: "Brad Andrews" To: Sent: Wednesday, May 06, 2009 7:41 AM Subject: [SC-L] Insecure Java Code Snippets > > > Does anyone know of a source of insecure Java snip

[SC-L] Insecure Java Code Snippets

2009-05-06 Thread Brad Andrews
Does anyone know of a source of insecure Java snippets? I would like to get some for a monthly meeting of leading technical people. My idea was to have a "find the bug" like the old C-Lint ads. Does anyone know of a source of something like this. Brad _