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.
BIN .DS_Store
Binary file not shown.
Binary file not shown.
@@ -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
+ *
+ *
+ * Contributors:
+ * Actuate Corporation - initial implementation
+ *
+ * Classic Models Inc. sample database developed as part of the
+ * Eclipse BIRT Project. For more information, see http:\\\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. */
+/* 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 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)
+ 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)
+ orderNumber INTEGER 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,
+ PRIMARY KEY (customerNumber, confirmationCode)
+CREATE TABLE Categories(
+ 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,
+ productImage VARCHAR(100) NOT NULL,
+ productVendor VARCHAR(50) NOT NULL,
+ productDescription TEXT NOT NULL,
+ quantityInStock SMALLINT NOT NULL,
+ PRIMARY KEY (productCode)
+ productCode VARCHAR(15) NOT NULL,
+ email VARCHAR(100) NOT NULL,
+ comment TEXT NOT NULL,
+ PRIMARY KEY (commentNumber)
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 @@
+"",141,"bG9va2luZw==",1,"light blue"
+"",161,"YWJjMTIz",2,"New York"
+"",166,"aGVsbG8=",1,"sky blue"
+"",168,"bW9ua2V5",1,"sky blue"
+"",211,"aWxvdmV5b3Ux",1,"sky blue"
+"",216,"c29jY2FyMQ==",1,"light blue"
+"",299,"Y29vbA==",2,"New York"
+"",324,"cGFzc3cwcmQ=",1,"sky blue"
+"",334,"bmludGVuZG8=",2,"New York"
+"",348,"dGh1bmRlcg==",2,"New York"
+"",424,"bWljcm9zb2Z0",1,"sky blue"
+"",443,"YnViYmxlcw==",1,"sky blue"
+"",455,"YmFieQ==",2,"New York"
+"",456,"cHJpbmNl",2,"New York"
+"",459,"a2l0dGVu",1,"light blue"
+"",496,"c3RhcndhcnM=",1,"sky blue"
Oops, something went wrong.

0 comments on commit a6f61c5

Please sign in to comment.