« first day (938 days earlier)      last day (4240 days later) » 

18:00
@AJHenderson Well, wouldn't it be because it's one of the most popular web language?
@Simon Don't listen to them. They know nothing
well that's just it
it is popular because it is forgiving
but it being forgiving also makes it easy to have problems that are harder to detect
I totally don't agree with this suggested edit:
2
A: What useful things can I do with the html5 "keygen" element?

pussoliniThe purpose of the element is to provide a secure way to authenticate users. The tag specifies a key-pair generator field in a form. More can be found here http://www.w3schools.com/html/html5_form_elements.asp

unless you know what you are doing and write solid code
it also means that a great PHP developer is a valuable thing, but proving you are a great PHP developer is harder to do
@Adnan Cheers!
18:02
@TildalWave I finally saw someone reject a suggested edit here.
@AJHenderson Oh yeah, about that. When I'm gonna be done with school and decide that I wanna be doing some programming, I assume that I should write an application and share the source with companies?
@Adnan Oh I reject some... the worst one I've seen was on one of The Bear's posts from anonymous poster
@Simon and or make meaningful contributions to an established project
Anonymous posters are fucking pussies. There, I said it.
or write a plugin
18:03
@TildalWave Once you get 10K, you'll be able to see review history for all users.
@AJHenderson Oh, that's a good idea. Do I have enough knowledge to do so, though? That's the question.
if you have to work with existing code and keep your code clean it's far more impressive than writing something from scratch in my book (and much closer to the real world)
The vast majority of edits is accepted
I'm really not convinced that 90% (or more) of the edits are good edit.
@Adnan Can't I already? :O
@TildalWave I mean you can see all the history in one place
You don't have to go to each user
18:05
@AJHenderson Very true, I doubt I'll often be asked to work on a brand-new application.
@Adnan ah yes that's handy... but I'm not trusted with it yet :(
@AJHenderson I heard scouser the other day, I didn't understand it, neither did my friend who was from Manchester
I even pride myself that I have the following 'Suggested Edits' stats on SO
> Adnan has approved 1270 edit suggestions and rejected 1059 edit suggestions
Only 4016 rep to go :) I need to jump on some rep train early on, but I always miss those until I can only collect leftovers
think this guy forgets what HTTPS is for:
0
A: How do indirect, session-specific resource tokens increase security?

munkeyotoI think you defined a reference object as an absolute and associated with finance. How about the following: You are a software vendor, your sw if sold online after a visitor purchases it. Wouldn't you prefer that ONLY the purchaser be able to access a hyperlink for your product? Forget the finan...

18:08
@Simon some of my best PHP sample code is actually modules for PHPBB and vBulletin
though I don't work with PHP commercially much
do some consulting with it on rare occasion, but I'm primarily a .Net developer
@AJHenderson What do you mean by sample code?
@Tilda Hmmm.. very interesting. I have almost the same percentage here on Sec.SE as well
> Adnan has approved 49 edit suggestions and rejected 38 edit suggestions
like, the code I use to demonstrate my ability in PHP if someone wants to see what I can do
because it can be clean code that integrates with a larger system cleanly
and you can polish it as a deliverable that people can actually use as well
Ah ok so you'd just take PHPBB and add/modify some stuff?
well they have a bit of a module system
where you can write plugins that integrate with the libraries
18:10
@AJHenderson try to sort a collection that contains NULLs: NULL < -1, and NULL == 0 so the result is anyone's guess...
Oh ok
@Simon I've been working with PHP for almost 7 years now
I hate php.
@Adnan Can you see stats for me too?
@Adnan Are you still alive?
18:10
With JavaScript for 3 years
I mean commercially work
The biggest mistake people make is making them into something they're not.
@Adnan I did too, built some stuff on Drupal, but still do nto like it :p
When people come from .Net and Java to PHP and JavaScript.
@Adnan I'd expect the opposite :P
@LucasKauffman sorry, fixed
@Adnan interesting how that works too. Visual FoxPro had the same issue. Amazing reporting and analysis package for it's day but people made the horrible mistake of trying to make full blown desktop apps out of it
18:12
They want turn PHP into Java or .Net
I've seen it happen a lot of times
though in fairness, .Net uses JavaScript as well
so does every other framework :p
I'd like an example of how you can turn some PHP into Java, or at least attempt to.
It's just like when you have a new girlfriend and you start asking her to wear your ex's dresses and fragrance.
@Simon he more means that PHP is an interpreted scripting language, not a full on programing language
18:13
@Simon you can use the often non-existing function diagrams and use cases
there are limits to what should be attempted with it
@Adnan Best analogy ever.
They're made for different purposes around TOTALLY different mentalities
some people ignore those limits
The lengths some people go is amazing.
18:14
@Adnan and your ex weighed 100 pounds less
Has anybody seen WordPress's source code?
@Adnan parts of it
@Adnan yes, I've attempted plugins for it
I mean if you wanna make a Web Application, let's say a forum like PHPBB or vBulletin, could you really do it wrong because you've come from Java/.NET?
there's a really good wordpress IDS plugin from @MichaelHampton
@Simon you could do it wrong if you try to transalte php into Java or .NET
the design is completely different
18:16
@Simon it isn't about what language you've come from so much as trying to do things with a language that the language isn't designed to do. The way languages are designed to work differ and concepts don't cross over gracefully generally
@LucasKauffman But it's a scripting language! How could you do that?
@AJHenderson +10
it's one of the harder things to grasp when you haven't written code commercially though
you have to really get to know applications in multiple languages to really appreciate it fully I think
@AJHenderson I guess I don't have enough experience, yeah.
@Simon to be honest, what's important is that you use tools you are comfortable with and which serve your purpose
18:17
@LucasKauffman +43987545734987534985734872342342B
I like to hear that.
Has anybody seen the amount of MVC and OO libraries for javascript?
@Adnan and there aren't tons for PHP :p?
to be honnest if I were to code any app in Java for the web I'd use Spring MVC
@LucasKauffman That's pretty much my point
Oh sorry, I meant JavaScript
@LucasKauffman just be aware with the most popular platforms, there is a fair bit of code out there that isn't ideal, just like VB code in the day and hypocrits in the Catholic church. The most popular one around attracts the majority of the idiots
who decide because it is popular instead of because of what it can do and being the right tool for their needs
18:20
What's PHP's biggest weakness, the fact that developers are slow at bug fixing?
@AJHenderson yea I wouldn't use it if I wanted to build my own personal webpage, but I would use it for a significant web application
it's interpreted, so it's fairly slow
@Simon I think that often there are too many bad examples out there
and it's loosely typed which means that bugs can hide easily
how forgiving PHP is is simultaneously its biggest strength and its biggest weakness
Don't take it personally
18:22
there are optimized PHP engines that do help with the speed issue, but it's still not the best option for heavy data processing
unless you can offload the processing to SQL
@AJHenderson Typed variables are the devil.
@copy I definitely cannot read all that right now but I'll keep the link for sure, thanks.
@ScottPack lack of covariance is the devil (the thing I hate most about .Net)
It seems that everything I like has been designed badly. I'm thinking about Android and PHP.
@AJHenderson covariance?
18:23
particularly for returns
bivariate Gaussian probability density function centered at (0, 0), with covariance matrix [ 1.00, 0.50 ; 0.50, 1.00 ]. ]] In probability theory and statistics, a covariance matrix (also known as dispersion matrix or variance–covariance matrix) is a matrix whose element in the i, j position is the covariance between the i th and j th elements of a random vector (that is, of a vector of random variables). Each element of the vector is a scalar random variable, either with a finite number of observed empirical values or with a finite or infinite number of potential values specif...
ie, if I have a method GetPassenger in vehicle that returns vehicle passenger, I want to be able to override it in Car to say it is a CarPassenger
but in .Net you can't do that
@Simon You should look into alternatives like Python and Ruby and then reconsider your options
you can only know that it is a VehiclePassenger
which forces you in to really twisted logic with generic types
and is a general pita
which I fight with on a nearly literally daily basis
@AJHenderson Perl has the ability to return a scalar or array depending on what you're storing it into. Is that like what you're saying?
18:24
@copy My problem is that I'm being lazy. Both Python and Ruby look to be very interesting but I don't feel dedicated enough to learn them.
@Simon did we say you had a choice
@ScottPack I don't think so
what I'm talking about is the ability for a return type of a member to be altered to a more specific type in a more specific derived class
@LucasKauffman May I complete my damned maths class first, please?
@AJHenderson That sounds awfully close to that object oriented bullshit.
@Simon I'm not very interested in development, but a good start could be to build something small and easy. I did that with Django and it worked out nicely
18:26
it is OOP
but it's really hard to make a good OOP design when you can't expose more details of your objects as they become more specific
@copy I never got the hang of Django
Whatever. It's all programmer nonsense anyway.
maybe I should take it up again
I prefered having the flexibility of a micro framework
I've never even heard of django
@AJHenderson It's the most commonly used python web framework
18:28
ah
Python is one of the few things I've never touched
so that explains it
@AJHenderson Instagram is written in it
Instagram is another thing I've never touched
I'm a photographer ;)
35
Q: What are some famous websites built in Django?

Pennf0lioI've tried to search it here and google'd it but can't find any info nor a relevant question. What are some famous sites that have been built in Django? Thanks!

@LucasKauffman I'm a lazy engineer, I don't want to write form validation and admin interfaces and all those things by hand
@ScottPack Can a non-programmer succeed in security?
18:30
@copy yea I know, I just liked the flexibility, my next app will probably be in Rails (@RoryMcCune yes I know :P) or Django
@copy I believe the term you are looking for there is "productive"
@Simon yes, but it can be limiting in certain aspects of security
the finer points of things like working with exploits requires a knowledge of coding and the actual way computers work under the hood, but most of security doesn't
@AJHenderson Let's say Web application security. You would need to think how it's done programming-wise, right?
well, web application security only really works if the developers know security
and how to write secure code
some penetration could be done without knowledge though
but again, it's helpful
@AJHenderson So, some programmers do know security? ^^
@AJHenderson yea but also policies are important
18:33
ya know powershell is really handy at times...
([DirectoryServices.DirectorySearcher]"objectcategory=computer").findall() | ForEach-Object {Get-wmiobject win32_share -ComputerName $_.properties.dnshostname | Format-Table -Property PSComputername, name, description }
@LucasKauffman yes, but if developers don't know how to implement a secure product, you are up a creek regardless of policies
@AJHenderson I've seen people running several CMS, development languages and types of REST interfaces through eachother (SOAP and JSON)
@RoryMcCune Enumerating a network, are we?
@Simon I hope so. I'm a developer, well software architect, but that's effectively a type of developer
@Xander yarr restricted Citrix test, but they forgot to block powershell :)
18:34
it's becoming something that more and more developers are being trained in atleast at a basic level
@RoryMcCune LOL. Nice. :-)
and there is certainly an option in any good software development program to focus on it
@AJHenderson indeed
if I ever get my hands on the retard in this hotel that decided that 100 MB should be enough traffic per 24 hours anno 2013...
@AJHenderson Don't most companies simply ask your experience in x language for y years for, let's say, a backend developer and don't expect you to actually know much about security?
but yes, it is entirely possible to be very good at security and not have any software development knowledge, lots of it is policy and infrastructure type things and being able to assess risk and what meaningful countermeasures make sense
and being able to understand a broad range of threats
which are far more than just technical
@LucasKauffman cellphone tether ftw
18:38
@AJHenderson It's also application related
@AJHenderson different country, roaming would make up for a nice bill
@LucasKauffman ah, ouch
@AJHenderson I've booked another hotel for next week though
need to check if they have a pool
I guess it all depends on what area of security you are talking about. Knowing language constructs really helps me when revenging. Also not being able to script anything would really slow down a pen-tester.
@lynks revenging?
@LucasKauffman reverse engineering
18:40
@Simon it depends on the position, but the lack of paying attention to it is a big part of why we have such a mess in terms of data security currently
security in the real world is laughable at most companies
@AJHenderson It's also because security makes things "more complex" and requires more time to implement
2 out of 3 jobs I've had so far I could have walked off with enough information to destroy the company my first day on the job if I had so desired
@LucasKauffman what I mean is. If I had no idea what a for loop was, I would struggle to make sense of one when it appears in assembly.
18:41
and there wouldn't have even been a way for them to know it was me
@lynks mov ecx, 10
loop label
:P
@LucasKauffman partially unrolled, reverse conditionals etc...
@lynks how do you add that code makeup in a chat message
@LucasKauffman backtick
@AJHenderson I see.
18:43
luckily college programs are starting to improve in providing general training
for l in lynks
@AJHenderson we only had security in the last year
and the really clueless people that kind of migrated in to the field with no formal training are starting to drop out of the workforce
and the landscape of attacks is increasing, so hopefully we'll see an improvement soon
my first webapp written in php even checked authorization based on a parameter passed in a GET request
@LucasKauffman wow, really, we started it in sophomore year at my school, but then again, I did go to a highly rated college
@LucasKauffman there is nothing necessarily wrong with that?
18:44
@AJHenderson well it depended on the teacher mostly
@lynks yes it was, because if you changed the variable admin=1 in the get request you'd get admin privileges :P
@LucasKauffman ahh, understood. Remind me of the old days when register_globals was turned on by default in php.ini...
@AJHenderson My php class was given by a maths teacher
@LucasKauffman that's almost like making trusting the UID in your cookie
who would do something like that
@AJHenderson me in my first year of development!
:P
@LucasKauffman that was a major PHPBB2 security bug
18:46
@AJHenderson one of the challenges on alhazred.net involves a uid-in-cookie situation. But it's a little more complex :P
that amazingly took several years to be found
they were on minor version 15 I think before it was fixed
@lynks I remember my headaches trying to write out the dependencies on that for wiicafe's legacy code when they switched that and we wanted to update PHP and not need to turn it back on
@AJHenderson I only did make that mistake once :P
hmm, 10 rep away from 13k
@AJHenderson my second application was a bit of a monster too, it was secure but all my HTML was generated by PHP rather than using an HTML template with PHP in it
my biggest work in PHP was actually an application framework that I was working on with high security design
it actually sandboxed the entire evaluation of PHP code behind an outer layer that checked everything going in and out
18:51
@AJHenderson oh so you had to rewrite part of the PHP sourcecode then :P
I worked around it using includes
all the source code was actually stored external to the script that ran it
they had to request access and build a collection of inputs and only those inputs were passed to the execution of the code that was stored away
variables going in could only get in after filtering and code could only be accessed after permission checks
I unfortunately never fully finished it because the payment processing company I was doing it for went out of business and the contract dropped
but it was an interesting project
I think I might have offloaded parts of the permission checking to SQL stored procs as well so that PHP couldn't even access them without credentials
because SQL simply wouldn't return results
but it was a number of years ago now, so the exact design has grown a bit fuzzy
fuzzy
Oh, @AJHenderson, is ASP.NET faster than PHP?
depends on what it is doing
for simple page operations, PHP may be faster, particularly on an optimized server, but for data intensive operations, .Net will generally be faster
but those are just general rules
lots of optimizations can be done in either system
18:57
@AJHenderson Fair enough.
php IS really slow on defaults
@ton.yeung Yeah, execution.
but zend optimized code on a zend server can run pretty fast
but is also no longer free then
PHP is interpreted, thus it has to figure out what work needs to be done and do it every time
.Net is still a framework, but it works with an efficiently implemented intermediate language
so it can work a lot faster and IIS will automatically cache a lot of the just in time compilation so that after initial load, the application pool runs quickly
Zend's server does similar things for the PHP execution
but the default command line PHP interpreter doesn't handle it as well
I believe Zend has one as well
That's nerdy.
MS Research actually made a native code compiler for .Net as well
@ton.yeung could be, my php work has always been for shops that couldn't afford Zend
so I've never directly used it
they used it for making Synergy
which was a very interesting project from a security perspective
an OS kernel that was built on managed code
19:10
HipHop for PHP: for when you find you've accidentally used PHP for a mission critical, high volume website
4
@Simon Of course.
@Simon A programming background is required for some aspects of security. Things like reverse engineering and exploit development. It's really helpful for penetration testing, so you can tweak the exploits to actually work and the like.
@Simon Familiarity with programming is helpful with vulnerability management
Basically, it's a big plus.
@Simon Programming is next to useless for hardening, monitoring, risk assessments, and most security operations tasks.
Basically, it depends on what you want to do.
Wouldn't these guys be referred as script kiddies though? :P
For me familiarity with programming is a sometimes useful context for the vast majority of what I do.
@Simon What guys?
19:20
@ScottPack Those who simply use tools to find vulnerabilities.
Script kiddies would be the people who use things like metasploit without any understanding of how penetration testing works.
If you think programming is a necessary skill for a security person then I think you have a painfully limited view of what the security field is.
No idea what the field actually is.
I'm new to this world.
@Simon Check out page 9 on this brochure. It's probably the best layout I've seen. sans.org/media/online-training/…
@Simon A strong programming background would be a requirement for the Software Security and some basic experience would be a requirement for the Penetration Testing. Shell scripting level experience would be required for Intrusion Analysis and would be useful for Forensics.
It is definitely nicely structured and grouped. How expensive are these courses?
Quite.
19:28
Pen testing is probably the field I'd aim for.
That's the biggest downfall with SANS. The content is great but it's expensive.
Meh, I'll get an enterprise to pay it for me.
:)
@ScottPack Thorough understanding of "what is going on in the machine" is a very valuable asset for IT security. It so happens that the same level of understanding is also a big part of being a good programmer.
Oh yeah, that. I barely know how to count bits and that kind of stuff. I'm ashamed of that.
@ThomasPornin I'm disagreeing with the statement that being a good programmer is a requirement.
19:31
@ScottPack Oh yeah. I am just saying that if you are a poor programmer, then you probably are bad at security too, because a lot of things which may make you a bad programmer also make you bad at security.
@Simon IMO, this book provides another quite good high-level overview of most of the areas you'll run into in IT Security. amazon.ca/CISSP-All---One-Exam-Guide/dp/0071781749
@ThomasPornin Oh, sure. I can agree with that.
This is mostly a matter of being sloppy, or not.
Is anyone here a PCI DSS certified auditor?
@ThomasPornin Of course, you could replace "programmer" with "systems administrator" and probably be just as accurate.
19:32
@Xander I'm 200 pages through WAHH, I'll finish that one first :P
I'll note this one though, thanks.
@Simon I can also recommend the videos here: opensecuritytraining.info
@Simon Yup, that's a good one. It's pretty specific to pen-testing web applications, where as this one is far more general to all areas of IT Security. One at a time is a fine idea. :-)
@Xander Well, it's the area that fascinates me the most so far.
@copy Cool, thanks.
@ton.yeung Only when I notice lots of dandruff.
@Simon So, going back to your original question, yes. If you want to get into application testing then having a background in programming is probably somewhat useful.
@ScottPack Good. I'm not expecting to get a job related to security as soon as I get out of school so I guess it would be good to do programming meanwhile.
19:43
@Simon You never know, I didn't expect to get one either and landed one anyway
I might try to get hired by CGI and be @ThomasPornin #1 fan. I'd make his cup of coffee every morning.
@Simon for him and Tom Leek
@LucasKauffman Of course but I mean I don't want to be sad because I didn't manage to get one as soon as I'm done.
@LucasKauffman Of course!
@Simon and you'd be required to sacrifice a virgin every morning
@LucasKauffman Still not sure about that part.
19:46
@Simon 't is a requirement as stated within your contract, right after the paragraph of selling your soul to the bear
He's getting scarier everyday.
@Simon The good bear giveth, but primarly, the good bear taketh!
2
Now you're getting scary.
@Simon I am a high bear priest
I can see that.
19:49
@Simon don't forget to say your three ROARs a day
Anyway, time to go home, be back after raging in traffic.
ROAR, ROAR AND ROAR.
Happy?
@Simon yes.
FSDFSDFASDF
That was horribly phrased, let me work on that.
Ok too bad, I'm going home.
20:11
Looks like this is probably getting good enough answers as it is, but do we want it here?
10
Q: Why root login via ssh is so bad that everyone advices to disable it?

rushEverybody in the internet advices to disable root login via ssh as it is bad practice and a security hole in the system, but nodoby explains why it is so. What is so dangerous in enabling root login ( especially with disabled password login )? And what is the difference between X symbol usernam...

20:42
on the topic of php for anyone who hasn't seen it - behold, the PHP hammer: secure.flickr.com/photos/raindrift/7095238893/in/…
21:03
best joke of php is this one:
really like `would_you_mind {
// Code here
} actually_i_do_mind (Exception £e) {
// Politely move on
cheerio('Message');
}`
GUYS, I received my "One ring to rule them all". As expected, it's worth what I paid (10$).
21:17
@ton.yeung who is this Russel Peters you speak of

« first day (938 days earlier)      last day (4240 days later) »