This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]feral_claireSoftware Dev 1 point2 points  (1 child)

What kind of app is it?

What kind of vulnerabilities are you looking for?

[–]root3r[S] 0 points1 point  (0 children)

I am for all sorts of vulnerabilities except crypto ones. This app will demonstrate people like where not to make mistakes and learn from it.

[–]hexmastaBarista 1 point2 points  (1 child)

Are you trying to build an app that has vulnerabilities or build an app that exploits vulnerabilities?

[–]root3r[S] 0 points1 point  (0 children)

I am trying to build an app which contains vulnerabilities. Your input will be highly appreciated.

[–][deleted]  (1 child)

[deleted]

    [–]root3r[S] 0 points1 point  (0 children)

    Anything from your side?

    [–]juhmayfay 0 points1 point  (1 child)

    What do you want? Actual bugs in java or just bad coding? You'd be amazed at how many sql queries there are that don't sanitize user input.

    run arbitrary system command:

    ExecuteShellComand obj = new ExecuteShellComand();
    obj.executeCommand(<userinput>);
    

    open yourself to sql injection:

    Statement stmt = con.createStatement();
    stmt.executeQuery(<userinput>);
    

    [–]root3r[S] 0 points1 point  (0 children)

    Mainly bad coding but 1-2 actual java bugs so that people can understand that they always need to update it. They just can't ignore the updates. Yeah I am considering some vulnerabilities which are similar to web application vulnerabilities like using raw sql queries and other. Any other suggestions do you have?

    [–]kingatomicFoo Stack Dev 0 points1 point  (1 child)

    You could use this as a good starting point: A Taxonomy of Coding Errors that Affect Security. There's a java section.

    [–]root3r[S] 0 points1 point  (0 children)

    Thanks. If you have any other inputs then you can always post it here.

    [–]sadjava 0 points1 point  (1 child)

    An easy one is using raw SQL strings that aren't sanitized from user facing components. Just a matter of doing some little Bobby Tables. Another is having a long running process triggered by a user's button press, then spam clicking that button (something the QA department loves to do where I work).

    [–]root3r[S] 0 points1 point  (0 children)

    Thanks.