Permalink
Browse files

First Alpha Quality Release

This Alpha should contain a usable sample application sufficient to
teach from in a 1 day appsec course.
  • Loading branch information...
1 parent 0b2c4d2 commit a6f61c58a8c69741a3d87856e1b7ec11d9ebe18c @jerryhoff committed Jul 6, 2012
Showing 540 changed files with 10,102 additions and 1,294 deletions.
View
BIN .DS_Store
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,170 @@
+/******************************************************************************
+ * Copyright (c) 2005 Actuate Corporation.
+ * All rights reserved. This file and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Actuate Corporation - initial implementation
+ *
+ * Classic Models Inc. sample database developed as part of the
+ * Eclipse BIRT Project. For more information, see http:\\www.eclipse.org\birt
+ *
+ *******************************************************************************/
+/*******************************************************************************
+* Changes made Jan 2012 - Copyright 2012
+* Updated BIRT to be the webgoat coins database
+* Images copyright US Mint and the Perth Mint
+* Contributers:
+* Jerry Hoff - Infrared Security, LLC
+*
+*******************************************************************************/
+
+
+
+/* Recommended DATABASE name is classicmodels. */
+
+/* CREATE DATABASE classicmodels; */
+/* USE classicmodels; */
+
+/* DROP the existing tables. Comment this out if it is not needed. */
+
+/* webgoat.net note: use name webgoat_coins" */
+
+
+DROP TABLE Customers;
+DROP TABLE CustomerLogin;
+DROP TABLE SecurityQuestions;
+DROP TABLE Employees;
+DROP TABLE Offices;
+DROP TABLE OrderDetails;
+DROP TABLE Orders;
+DROP TABLE Payments;
+DROP TABLE Products;
+DROP TABLE Categories;
+DROP TABLE Comments;
+
+
+/* Create the full set of Classic Models Tables */
+
+CREATE TABLE Customers (
+ customerNumber INTEGER NOT NULL,
+ customerName VARCHAR(50) NOT NULL,
+ logoFileName VARCHAR(100) NULL,
+ contactLastName VARCHAR(50) NOT NULL,
+ contactFirstName VARCHAR(50) NOT NULL,
+ phone VARCHAR(50) NOT NULL,
+ addressLine1 VARCHAR(50) NOT NULL,
+ addressLine2 VARCHAR(50) NULL,
+ city VARCHAR(50) NOT NULL,
+ state VARCHAR(50) NULL,
+ postalCode VARCHAR(15) NULL,
+ country VARCHAR(50) NOT NULL,
+ salesRepEmployeeNumber INTEGER NULL,
+ creditLimit DOUBLE NULL,
+ PRIMARY KEY (customerNumber)
+);
+
+CREATE TABLE CustomerLogin (
+ email VARCHAR(100) NOT NULL,
+ customerNumber INTEGER NOT NULL,
+ password VARCHAR(40) NOT NULL,
+ question_id SMALLINT NULL,
+ answer VARCHAR(50) NULL,
+ PRIMARY KEY (email)
+);
+
+CREATE TABLE SecurityQuestions (
+ question_id SMALLINT NOT NULL,
+ question_text VARCHAR(400) NOT NULL,
+ PRIMARY KEY (question_id)
+);
+
+
+CREATE TABLE Employees (
+ employeeNumber INTEGER NOT NULL,
+ lastName VARCHAR(50) NOT NULL,
+ firstName VARCHAR(50) NOT NULL,
+ extension VARCHAR(10) NOT NULL,
+ email VARCHAR(100) NOT NULL,
+ officeCode VARCHAR(10) NOT NULL,
+ reportsTo INTEGER NULL,
+ jobTitle VARCHAR(50) NOT NULL,
+ PRIMARY KEY (employeeNumber)
+);
+
+CREATE TABLE Offices (
+ officeCode VARCHAR(10) NOT NULL,
+ city VARCHAR(50) NOT NULL,
+ phone VARCHAR(50) NOT NULL,
+ addressLine1 VARCHAR(50) NOT NULL,
+ addressLine2 VARCHAR(50) NULL,
+ state VARCHAR(50) NULL,
+ country VARCHAR(50) NOT NULL,
+ postalCode VARCHAR(15) NOT NULL,
+ territory VARCHAR(10) NOT NULL,
+ PRIMARY KEY (officeCode)
+);
+
+CREATE TABLE OrderDetails (
+ orderNumber INTEGER NOT NULL,
+ productCode VARCHAR(15) NOT NULL,
+ quantityOrdered INTEGER NOT NULL,
+ priceEach DOUBLE NOT NULL,
+ orderLineNumber SMALLINT NOT NULL,
+ PRIMARY KEY (orderNumber, productCode)
+);
+
+CREATE TABLE Orders (
+ orderNumber INTEGER NOT NULL,
+ orderDate DATETIME NOT NULL,
+ requiredDate DATETIME NOT NULL,
+ shippedDate DATETIME NULL,
+ status VARCHAR(15) NOT NULL,
+ comments TEXT NULL,
+ customerNumber INTEGER NOT NULL,
+ PRIMARY KEY (orderNumber)
+);
+
+
+CREATE TABLE Payments (
+ customerNumber INTEGER NOT NULL,
+ cardType VARCHAR(50) NOT NULL,
+ creditCardNumber VARCHAR(50) NOT NULL,
+ verificationCode SMALLINT NOT NULL,
+ cardExpirationMonth VARCHAR(3) NOT NULL,
+ cardExpirationYear VARCHAR(5) NOT NULL,
+ confirmationCode VARCHAR(50) NOT NULL,
+ paymentDate DATETIME NOT NULL,
+ amount DOUBLE NOT NULL,
+ PRIMARY KEY (customerNumber, confirmationCode)
+);
+
+CREATE TABLE Categories(
+ catNumber INTEGER NOT NULL,
+ catName VARCHAR(50) NOT NULL,
+ catDesc TEXT NOT NULL,
+ PRIMARY KEY (catNumber)
+);
+
+CREATE TABLE Products (
+ productCode VARCHAR(15) NOT NULL,
+ productName VARCHAR(200) NOT NULL,
+ catNumber INTEGER NOT NULL,
+ productImage VARCHAR(100) NOT NULL,
+ productVendor VARCHAR(50) NOT NULL,
+ productDescription TEXT NOT NULL,
+ quantityInStock SMALLINT NOT NULL,
+ buyPrice DOUBLE NOT NULL,
+ MSRP DOUBLE NOT NULL,
+ PRIMARY KEY (productCode)
+);
+
+CREATE TABLE Comments(
+ commentNumber INTEGER NOT NULL AUTO_INCREMENT,
+ productCode VARCHAR(15) NOT NULL,
+ email VARCHAR(100) NOT NULL,
+ comment TEXT NOT NULL,
+ PRIMARY KEY (commentNumber)
+);
View
Binary file not shown.
@@ -0,0 +1,5 @@
+1,"Gold Coins","A gold coin is a coin made mostly or entirely of gold. Gold has been used for coins practically since the invention of coinage, originally because of gold's intrinsic value. In modern times, most gold coins are intended either to be sold to collectors, or to be used as bullion coins—coins whose nominal value is irrelevant and which serve primarily as a method of investing in gold. Gold has been used as money for many reasons. It is fungible, with a low spread between the prices to buy and sell. Gold is also easily transportable, as it has a high value to weight ratio, compared to other commodities, such as silver. Gold can be divided into smaller units, without destroying its value; it can also be melted into ingots, and re-coined. The density of gold is higher than most other metals, making it difficult to pass counterfeits. Gold is extremely unreactive. The scarcity of gold stabilizes its value."
+2,"Silver Coins","Silver coins are possibly the oldest mass produced form of coinage. Silver has been used as a coinage metal since the times of the Greeks. Their silver drachmas were popular trade coins. As with all collectible coins, many factors determine the value of a collectible silver coin, such as its rarity, demand, condition and the number originally minted. Ancient silver coins coveted by collectors include the Denarius and Miliarense, while more recent collectible silver coins include the Morgan Dollar and the Spanish Milled Dollar. Other than collector's silver coins, silver bullion coins are popular among people who desire a hedge against currency inflation or store of value. Silver has an international currency symbol of XAG under ISO 4217. Before 1797, British pennies used to be made out of silver while the ancient Persians used silver coins between 612-330 BC."
+3,"Platinum Coins","Platinum coins are a form of currency. Platinum has an international currency symbol under ISO 4217 of XPT. The issues of legitimate platinum coins were initiated by Spain in Spanish-colonized America in the 18th century and continued by the Russian Empire in the 19th century. As a form of currency, these coins proved to be impractical: platinum resembles many less expensive metals, and, unlike the more malleable and ductile silver and gold, it is very difficult to work. Several commemorative coin sets have been issued starting from 1978 and became popular among coin collectors. The major platinum bullion coins include the American Platinum Eagle, the Canadian Platinum Maple Leaf, the Australian Platinum Koala, the Isle of Man Noble, the Chinese Platinum Panda and several series by the Soviet Union and later by the Russian Federation. The production of most platinum coins stopped around 2005 except for the American Platinum Eagle – one of the world's most popular platinum coins – which was still being produced in 2009."
+4,"Commemorative Coins","Congress authorizes commemorative coins that celebrate and honor American people, places, events, and institutions. Although these coins are legal tender, they are not minted for general circulation. Each commemorative coin is produced by the United States Mint in limited quantity and is only available for a limited time."
+5,"Yearly Designs","Designed coins, where you can browse and purchase special coins honoring a wide range of humanities accomplishments. Qualities and availability are not guaranteed. Please call to check all availability. Each set is issued for a limited time."
@@ -0,0 +1,122 @@
+"bob@ateliergraphique.com",103,"MTIzNDU2",1,"blue"
+"jerry@goatgoldstore.net",112,"cGFzc3dvcmQ=",3,"dog"
+"bill@australiancollectors.net",114,"bG92ZQ==",4,"coins"
+"mark@larochellegold.net",119,"MTIzNDU2Nzg=",2,"Ohio"
+"jill@baanepreciousimports.net",121,"cHJpbmNlc3M=",3,"cat"
+"susan@preciousgolddistributorsltd.com",124,"c3Vuc2hpbmU=",2,"California"
+"sky@havelzbyszekco.com",125,"c2luZ2xl",2,"California"
+"kate@blauerseemetals.net",128,"aWxvdmV5b3U=",2,"Florida"
+"julie@preciousmetalsco.com",129,"c3VtbWVy",2,"Texas"
+"james@landofcoinsinc.net",131,"aG9wZQ==",2,"NY"
+"matt@euroshoppingchannel.net",141,"bG9va2luZw==",1,"light blue"
+"jane@volvomodelreplicas.net",144,"bW90aGVy",2,"Texas"
+"sally@danishwholesaleimports.com",145,"Zm9vdGJhbGw=",2,"NY"
+"rob@saveleyhenriot.net",146,"aGFwcHk=",2,"Florida"
+"steve@dragoncoinage.com",148,"cXdlcnR5",3,"cat"
+"jeff@musclecoinsinc.net",151,"bGV0bWVpbg==",4,"asdf"
+"kelvin@premiumclassicsinc.com",157,"dHJ1c3RubzE=",4,"123456"
+"sam@technicsstoresinc.com",161,"YWJjMTIz",2,"New York"
+"wendy@handjigoldco.com",166,"aGVsbG8=",1,"sky blue"
+"vey@herkkugold.net",167,"ZHJhZ29u",1,"blue"
+"keith@americanbankinc.com",168,"bW9ua2V5",1,"sky blue"
+"alex@portoimportsco.net",169,"Y29tcHV0ZXI=",2,"Colorado"
+"martine@daedalusdesignsimports.com",171,"YXNkZg==",4,"123456"
+"bertrand@lacornedabondance.com",172,"c2hhZG93",3,"cat"
+"jerry@cambridgecollectablesco.com",173,"aW50ZXJuZXQ=",4,"123456"
+"julie@golddepotinc.com",175,"d2hhdGV2ZXI=",4,"123456"
+"mory@osakacoinageco.net",177,"Y2hlZXNl",2,"Texas"
+"michael@vitachromeinc.net",181,"cGFzcw==",2,"FL"
+"karttunen@coinsoffinland.net",186,"bWF0cml4",2,"TX"
+"ashworth@avstores.net",187,"YWFhYWFh",4,"123456"
+"cassidy@clovercollections.net",189,"c3VwZXJtYW4=",3,"cat"
+"leslie@metalscoinclassicsinc.com",198,"cG9rZW1vbg==",3,"cat"
+"devon@ukcollectables.com",201,"Zm9vdGJhbGw=",3,"dog"
+"yoshi@canadiangoldexchangenetwork.com",202,"YmxhaGJsYWg=",4,"letmein"
+"miguel@onlinepreciouscollectables.net",204,"aGVscG1l",2,"Florida"
+"julie@coins4grownupscom.com",205,"bWljaGFlbA==",2,"Texas"
+"walker@asianshoppingnetwork.com",206,"c2VjcmV0",3,"dog"
+"frdrique@preciouscaravy.net",209,"cGFzc3dvcmQx",4,"gold"
+"gao@kingkongcollectables.net",211,"aWxvdmV5b3Ux",1,"sky blue"
+"eduardo@enacodistributors.com",216,"c29jY2FyMQ==",1,"light blue"
+"mary@boardscoinsco.com",219,"aWxvdmV5b3Uh",2,"NY"
+"horst@natrlichmetals.com",223,"YmFzZWJhbGwx",2,"Ohio"
+"palle@heintzecollectables.com",227,"cXdlcnR5MQ==",4,"password"
+"jean@qubechomeshoppingnetwork.com",233,"b3Jhbmdl",2,"California"
+"alejandra@angresellers.net",237,"aHVudGVy",3,"animal"
+"valarie@collectablepreciousdesignsco.com",239,"amVubmlmZXI=",4,"coins"
+"helen@goldbymailcouk.net",240,"c25vb3B5",2,"Missouri"
+"annette@alphacognac.net",242,"Z2luZ2Vy",3,"cat"
+"renate@messnershoppingnetwork.com",247,"bXVzdGFuZw==",2,"California"
+"paolo@amicacoinsco.com",249,"dGVzdGluZw==",4,"coins"
+"daniel@lyoncoinage.net",250,"YXBwbGU=",1,"green"
+"daniel@metalsassociscie.com",256,"aWxvdmV5b3Uz",3,"dog"
+"pfalzheim@tomsspezialitten.net",259,"Y2FuYWRh",3,"dog"
+"lincoln@royalcanadiancollectables.net",260,"c2lsdmVy",4,"coins"
+"franken@frankengold.net",273,"cm9ib3Q=",3,"dog"
+"ohara@annasdecorations.com",276,"cGVhbnV0",3,"dog"
+"giovanni@rovelligold.com",278,"Z3VpdGFy",4,"coins"
+"adrian@coinageandthingsco.com",282,"cmFpbmJvdw==",2,"NY"
+"marta@martasreplicasco.com",286,"ZGFrb3Rh",1,"red"
+"ed@bgecollectables.net",293,"Y29tcGFx",1,"blue"
+"holz@vidasport.net",298,"Z29sZA==",1,"green"
+"klaeboe@norwaygoldbymail.net",299,"Y29vbA==",2,"New York"
+"bradley@schuylerimports.com",303,"Zmxvd2Vy",4,"openup"
+"mel@derhundimports.net",307,"c2Nvb3Rlcg==",4,"123456"
+"koskitalo@oulutoysupplies.net",311,"bWVybGlu",2,"Colorado"
+"catherine@petitmetals.net",314,"Z29vZ2xl",1,"blue"
+"steve@preciousclassics.net",319,"c3RhcnRyZWs=",2,"Colorado"
+"wing@preciouscreationsltd.net",320,"bWF0cml4IQ==",4,"password"
+"julie@corporategoldideasco.com",321,"YWRtaW4=",4,"qwerty"
+"graham@downundercoinage.net",323,"YXVzdGlu",2,"Florida"
+"brown@stylishdeskdecors.net",324,"cGFzc3cwcmQ=",1,"sky blue"
+"william@teknicollectablesinc.net",328,"d2lubmVy",1,"red"
+"calaghan@australiangoldnetwork.net",333,"ZnJpZW5kcw==",4,"123456"
+"kalle@suominencoinage.com",334,"bmludGVuZG8=",2,"New York"
+"cramer@cramerspezialitten.com",335,"aGFybGV5",4,"coins"
+"cervantes@classicgoldideas.net",339,"c21va2V5",3,"dog"
+"jesus@cafimports.net",344,"bHVja3k=",3,"dog"
+"chandler@menrusretailers.com",347,"ZGlnaXRhbA==",3,"animal"
+"mckenna@asiantreasures.net",348,"dGh1bmRlcg==",2,"New York"
+"laurence@marseillepreciousmetals.net",350,"c3Bpcml0",3,"dog"
+"paul@reimscollectables.com",353,"YmFuZGl0",1,"blue"
+"kuger@sardistributors.net",356,"ZW50ZXI=",3,"dog"
+"wales@goldforhimcom.net",357,"YW50aG9ueQ==",4,"openup"
+"karin@kommissionmetals.net",361,"Y29ydmV0dGU=",1,"blue"
+"juri@gold4allagescom.net",362,"aG9ja2V5",4,"asdf"
+"dorothy@onlinepremiumcreationsco.net",363,"cG93ZXI=",2,"Texas"
+"rodriguez@lisboacoinage.net",369,"YmVuamFtaW4=",3,"dog"
+"braun@preciouscollectables.com",376,"MXcyZTNl",2,"Colorado"
+"allen@collectablesforlessinc.net",379,"dmlwZXI=",4,"password"
+"pasilver@royalebelge.com",381,"cXdlcnR5MQ==",1,"blue"
+"georg@salzburgcollectables.com",382,"Y3JlYXRpdmU=",2,"Florida"
+"arnold@cruzsonsco.net",385,"Zm9vYmFy",3,"animal"
+"maurizio@lordinecoinage.net",386,"c2xheWVy",4,"gold"
+"shimamura@tokyocollectables.com",398,"d2lzZG9t",3,"cat"
+"dopreciousque@metalscanalpetit.com",406,"ZGFsbGFz",1,"blue"
+"rita@stuttgartcollectableexchange.com",409,"Z3JlZW4=",1,"red"
+"mcroy@extremedeskdecorations.com",412,"dGVzdHRlc3Q=",3,"dog"
+"donnermeyer@bavariancollectablesimports.net",415,"b25lbG92ZQ==",3,"animal"
+"maria@classiclegendsinc.com",424,"bWljcm9zb2Z0",1,"sky blue"
+"feuer@feueronlinestores.net",443,"YnViYmxlcw==",1,"sky blue"
+"dan@goldideascorp.net",447,"Y29jYWNvbGE=",1,"blue"
+"martha@scandinaviangoldideas.com",448,"bG92aW5n",3,"animal"
+"sue@thesharpgoldwarehouse.net",450,"cGFzc3dvcmQh",3,"cat"
+"roland@preciousmetalswerke.com",452,"bWF4d2VsbA==",3,"cat"
+"leslie@supersilverinc.com",455,"YmFieQ==",2,"New York"
+"yu@microsilverinc.com",456,"cHJpbmNl",2,"New York"
+"sommer@corridametalsreplicas.net",458,"ZGV4dGVy",3,"dog"
+"sven@warburgexchange.com",459,"a2l0dGVu",1,"light blue"
+"violeta@fungoldideascom.com",462,"c3RlbGxh",3,"dog"
+"anton@antondesigns.net",465,"amFzcGVy",4,"asdf"
+"clenahan@australiancollectables.net",471,"ZGFuaWVsbGU=",3,"dog"
+"franco@fraudacollezione.com",473,"YW5nZWwx",1,"blue"
+"steve@westcoastcollectablesco.net",475,"NTU1NTU1",4,"letmein"
+"hanna@mitvergngenco.com",477,"c2FtbXk=",3,"cat"
+"semenov@kremlincollectables.com",480,"bm9uZQ==",3,"animal"
+"altagar@raananstores.net",481,"MTExMTEx",2,"California"
+"roel@iberiagoldimports.com",484,"bGlnaHRuaW5n",1,"blue"
+"rosa@coinrmintdistributorsinc.com",486,"cmVtZW1iZXI=",3,"cat"
+"sue@signalcollectiblesltd.net",487,"b3BlbnVw",2,"California"
+"smith@doubledeckergoldstores.com",489,"bGV0bWVpbjE=",3,"dog"
+"valarie@premiumcollectables.com",495,"bHVja3kx",1,"blue"
+"tony@kellysgoldshop.net",496,"c3RhcndhcnM=",1,"sky blue"
Oops, something went wrong.

0 comments on commit a6f61c5

Please sign in to comment.