Matt Gifford aka coldfumonkeh | Consultant Developer
View Github Profile


devObjective 2015 Day One Notes

May 13, 2015

devObjective 2015

Notes taken from sessions attended at the devObjective 2015, day one (13th May 2015)


Web Penetration and Hacking Tools

Presented by David Epler

https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project

sqlmap.org SQL injection vulnerability checking tool (demo #1)

BeEF (Browser Exploitation Framework) running with Metasploit (demo #2)

Published Exploit Script (demo #3)

  • Sub-Zero.py can access the CF 9-10 administration password and suck source code from your server (anything that CF can access it can access too)

Web Application Firewalls can help protect web apps without the need to modify them.

They:

  • can be a appliance, server plugin or filter
  • can provide an additional layer of security
  • can react faster than changing application code
  • more common in front of legacy applications

ModeSecurity WAF

  • open source, free web app firewall
    • Apache, IIS 7, Nginx, reverse proxy
  • Security Models
    • negative security model
    • positive security model
    • virtual patching
    • extrusion detection model
  • OWASP ModSecurity Core Rule Set Project

Web Vulnerability Scanners

  • Provide automated way to test web applications for vulnerabilities
    • static vs dynamic analysis
    • can be challenging to setup authentication and session management
    • can’t improvise, every web application is unique
  • Usually integrated as part of Secure Software Development LifeCycle (SSLDC)

The Web Application hacker’s Handbook: Finding and Exploiting Security flaws (Second Edition) - by Dafydd Tuttard and Marcus Pinto


Building Desktop Apps with HTML & JavaScript. Node-webkit

Presented by Andy Matthews

nw.js (formerly node-Webkit)

nw.js on Github

Chromium Shell and node.js

Cross-platfrom solution for desktop applications.

Installation:

npm install -g nw

Configuration of desktop app via window node in package.json file.

Test application locally without having to compile. nw command will open the app using default index page.

Init method (of sorts):

require("nw.gui").Window.get().show();

or

var gui = require("nw.gui");
gui.Window.get().show();

Accessing the menu object from the gui:

var player = new gui.Menu();
player.append(new gui.menuItem({ icon: 'imgs/something.png', label: 'Play' }));
  • Context menu management
  • Full file system access and management
  • Drag and display portability and management

Use Grunt / Gulp to automate your build process for the application.

Node-Webkit vs Atom Shell (Electron)

  • Electron is all JS (no HTML files)
  • Electron may have slightly better performance over NW
  • NW installs A LOT of stuff you may not need and could weight down your distributed product
  • NW leaves JS files ready to view on the user’s machine
    • Use Grunt / Gulp to minify, uglify and obfuscate your code before distribution

Use a generator to help with it all:

npm install -g generator-node-webkit

Presented by Dan Wilson

Customer behaviour affected by site latency. Customer abandonment rate increased by 8%.

"Life is about shared resources."

You make choices every time you program and develop. They will either give you opportunities for success of avenues to dead ends.

A bottleneck simply leads to another bottleneck. That’s just the way it works.

Evil #1: Making bad tradeoffs

  • Do not use the session scope

[ missed some content here due to phone call ]

Evil #2: Database Abuse

  • Looping queries, not using JOINS (also using JOINS badly)

Front-End Modernization For Mortals

Presented by Cory Gackenheimer

How do you choose which languages / frameworks to use?

  • Blog posts
  • Conference Talks
  • Video tutorials
  • Try stuff yourself
  • Recommendation form friend / colleague
  • more…

but…

codebase is not primed to accept

  • bower
  • browserify
  • AMD modules
  • Grunt / Gulp tasks, Brocolli etc

Current Workflow

Has been tested and proven

  • team has been doing it for years
  • company is making money doing X for so long
  • developers understand it and have bought in
  • changing things wholesale will take some adjustment

Next Workflow

You can either

A) adopt wholesale the processes of someone you

  • have seen talk
  • read a blog about
  • uses framework X

B) Accept that you cannot change everything

What is a monlith?

Anything that hinders the maintainability and stability of your front-end code

Modularize

  • Take inventory of your code

Do you need these to co-exist?

* API wrapper
* validation calls
* date parsing
* animation/UI hacks
  • Split it out into manageable chunks for development (breaking down the large JS files)

  • Concatenate and minimize them

This is enough to make a measurable difference. Your code is immediately more manageable and maintainable. It is also minimized for the client.

Improve upon this. Concat and minimization may not be enough.

Leverage jQuery using the $.extend() method which can allow you to merge objects seamlessly.

Use AMD modules (require.js for example) to improve modularity.

Using ES6 and babel.io


Latest Blog Posts

Jul 16, 2020
Github Actions with CommandBox and TestBox
Read More
Jul 9, 2020
Azure pipelines with CommandBox and TestBox
Read More
Dec 23, 2019
CFML content moderation detection component library
Read More