- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. +/* + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container; diff --git a/src/main/java/org/owasp/webgoat/container/AsciiDoctorTemplateResolver.java b/src/main/java/org/owasp/webgoat/container/AsciiDoctorTemplateResolver.java index 3f81798c1..59b25d2dc 100644 --- a/src/main/java/org/owasp/webgoat/container/AsciiDoctorTemplateResolver.java +++ b/src/main/java/org/owasp/webgoat/container/AsciiDoctorTemplateResolver.java @@ -1,32 +1,6 @@ -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since December 12, 2015 +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container; diff --git a/src/main/java/org/owasp/webgoat/container/CurrentUser.java b/src/main/java/org/owasp/webgoat/container/CurrentUser.java index f94fb684b..dad6e9230 100644 --- a/src/main/java/org/owasp/webgoat/container/CurrentUser.java +++ b/src/main/java/org/owasp/webgoat/container/CurrentUser.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import java.lang.annotation.Documented; diff --git a/src/main/java/org/owasp/webgoat/container/CurrentUsername.java b/src/main/java/org/owasp/webgoat/container/CurrentUsername.java index 0b9ffe1d1..1887f5b02 100644 --- a/src/main/java/org/owasp/webgoat/container/CurrentUsername.java +++ b/src/main/java/org/owasp/webgoat/container/CurrentUsername.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import java.lang.annotation.Documented; diff --git a/src/main/java/org/owasp/webgoat/container/DatabaseConfiguration.java b/src/main/java/org/owasp/webgoat/container/DatabaseConfiguration.java index c70782e0c..75fb769ff 100644 --- a/src/main/java/org/owasp/webgoat/container/DatabaseConfiguration.java +++ b/src/main/java/org/owasp/webgoat/container/DatabaseConfiguration.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import java.util.Map; diff --git a/src/main/java/org/owasp/webgoat/container/HammerHead.java b/src/main/java/org/owasp/webgoat/container/HammerHead.java index 04fd73ce5..8f902a298 100644 --- a/src/main/java/org/owasp/webgoat/container/HammerHead.java +++ b/src/main/java/org/owasp/webgoat/container/HammerHead.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import lombok.AllArgsConstructor; @@ -7,39 +11,6 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author Jeff Williams - * @author Bruce Mayhew - * @author Nanne Baars - * @version $Id: $Id - * @since October 28, 2003 - */ @Controller @AllArgsConstructor public class HammerHead { diff --git a/src/main/java/org/owasp/webgoat/container/LessonDataSource.java b/src/main/java/org/owasp/webgoat/container/LessonDataSource.java index c09f69d12..9ca010cbd 100644 --- a/src/main/java/org/owasp/webgoat/container/LessonDataSource.java +++ b/src/main/java/org/owasp/webgoat/container/LessonDataSource.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import java.io.PrintWriter; diff --git a/src/main/java/org/owasp/webgoat/container/LessonResourceScanner.java b/src/main/java/org/owasp/webgoat/container/LessonResourceScanner.java index a6a55e6d1..cba737c19 100644 --- a/src/main/java/org/owasp/webgoat/container/LessonResourceScanner.java +++ b/src/main/java/org/owasp/webgoat/container/LessonResourceScanner.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import java.io.IOException; diff --git a/src/main/java/org/owasp/webgoat/container/LessonTemplateResolver.java b/src/main/java/org/owasp/webgoat/container/LessonTemplateResolver.java index 59d903a10..0be83492b 100644 --- a/src/main/java/org/owasp/webgoat/container/LessonTemplateResolver.java +++ b/src/main/java/org/owasp/webgoat/container/LessonTemplateResolver.java @@ -1,33 +1,6 @@ -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author WebGoat - * @version $Id: $Id - * @since October 28, 2003 +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container; diff --git a/src/main/java/org/owasp/webgoat/container/MvcConfiguration.java b/src/main/java/org/owasp/webgoat/container/MvcConfiguration.java index deaaf2400..24c6ee3d4 100644 --- a/src/main/java/org/owasp/webgoat/container/MvcConfiguration.java +++ b/src/main/java/org/owasp/webgoat/container/MvcConfiguration.java @@ -1,33 +1,6 @@ -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author WebGoat - * @version $Id: $Id - * @since October 28, 2003 +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container; diff --git a/src/main/java/org/owasp/webgoat/container/UserInterceptor.java b/src/main/java/org/owasp/webgoat/container/UserInterceptor.java index 2570df76c..fce6f51e0 100644 --- a/src/main/java/org/owasp/webgoat/container/UserInterceptor.java +++ b/src/main/java/org/owasp/webgoat/container/UserInterceptor.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2023 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import jakarta.servlet.http.HttpServletRequest; diff --git a/src/main/java/org/owasp/webgoat/container/WebGoat.java b/src/main/java/org/owasp/webgoat/container/WebGoat.java index 71a4aa9fc..c3e84bd0f 100644 --- a/src/main/java/org/owasp/webgoat/container/WebGoat.java +++ b/src/main/java/org/owasp/webgoat/container/WebGoat.java @@ -1,33 +1,6 @@ -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author WebGoat - * @version $Id: $Id - * @since October 28, 2003 +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container; diff --git a/src/main/java/org/owasp/webgoat/container/WebSecurityConfig.java b/src/main/java/org/owasp/webgoat/container/WebSecurityConfig.java index 4344c5b93..62c0d3df2 100644 --- a/src/main/java/org/owasp/webgoat/container/WebSecurityConfig.java +++ b/src/main/java/org/owasp/webgoat/container/WebSecurityConfig.java @@ -1,32 +1,6 @@ -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since December 12, 2015 +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container; diff --git a/src/main/java/org/owasp/webgoat/container/WebWolfRedirect.java b/src/main/java/org/owasp/webgoat/container/WebWolfRedirect.java index 6c48ce1fa..3e84f4f1c 100644 --- a/src/main/java/org/owasp/webgoat/container/WebWolfRedirect.java +++ b/src/main/java/org/owasp/webgoat/container/WebWolfRedirect.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/EnvironmentExposure.java b/src/main/java/org/owasp/webgoat/container/asciidoc/EnvironmentExposure.java index aa16d40a4..c47a63edc 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/EnvironmentExposure.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/EnvironmentExposure.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import org.springframework.beans.BeansException; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/OperatingSystemMacro.java b/src/main/java/org/owasp/webgoat/container/asciidoc/OperatingSystemMacro.java index 383f1797c..704d8582b 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/OperatingSystemMacro.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/OperatingSystemMacro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import java.util.Map; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/UsernameMacro.java b/src/main/java/org/owasp/webgoat/container/asciidoc/UsernameMacro.java index fc4d2b9ec..0d922692b 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/UsernameMacro.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/UsernameMacro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import java.util.Map; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatTmpDirMacro.java b/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatTmpDirMacro.java index 5e65e0a13..273fffd41 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatTmpDirMacro.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatTmpDirMacro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import java.util.Map; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatVersionMacro.java b/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatVersionMacro.java index 539a0fffa..0de15ebdb 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatVersionMacro.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/WebGoatVersionMacro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import java.util.Map; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfMacro.java b/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfMacro.java index 2baa76a55..c664dab81 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfMacro.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfMacro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import java.util.HashMap; diff --git a/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfRootMacro.java b/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfRootMacro.java index 7044e125c..df6416e2c 100644 --- a/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfRootMacro.java +++ b/src/main/java/org/owasp/webgoat/container/asciidoc/WebWolfRootMacro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.asciidoc; import java.util.Map; diff --git a/src/main/java/org/owasp/webgoat/container/assignments/AssignmentEndpoint.java b/src/main/java/org/owasp/webgoat/container/assignments/AssignmentEndpoint.java index 9f81039fe..215451c08 100644 --- a/src/main/java/org/owasp/webgoat/container/assignments/AssignmentEndpoint.java +++ b/src/main/java/org/owasp/webgoat/container/assignments/AssignmentEndpoint.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.assignments; public interface AssignmentEndpoint {} diff --git a/src/main/java/org/owasp/webgoat/container/assignments/AssignmentHints.java b/src/main/java/org/owasp/webgoat/container/assignments/AssignmentHints.java index bfea97438..ac1a24d4b 100644 --- a/src/main/java/org/owasp/webgoat/container/assignments/AssignmentHints.java +++ b/src/main/java/org/owasp/webgoat/container/assignments/AssignmentHints.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.assignments; import java.lang.annotation.ElementType; diff --git a/src/main/java/org/owasp/webgoat/container/assignments/AttackResult.java b/src/main/java/org/owasp/webgoat/container/assignments/AttackResult.java index e9fcd1196..28fab0fdd 100644 --- a/src/main/java/org/owasp/webgoat/container/assignments/AttackResult.java +++ b/src/main/java/org/owasp/webgoat/container/assignments/AttackResult.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.assignments; import static org.apache.commons.text.StringEscapeUtils.escapeJson; diff --git a/src/main/java/org/owasp/webgoat/container/assignments/AttackResultBuilder.java b/src/main/java/org/owasp/webgoat/container/assignments/AttackResultBuilder.java index 99e06a5cd..71b69f7e1 100644 --- a/src/main/java/org/owasp/webgoat/container/assignments/AttackResultBuilder.java +++ b/src/main/java/org/owasp/webgoat/container/assignments/AttackResultBuilder.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.assignments; import org.owasp.webgoat.container.i18n.PluginMessages; diff --git a/src/main/java/org/owasp/webgoat/container/assignments/AttackResultMessageResponseBodyAdvice.java b/src/main/java/org/owasp/webgoat/container/assignments/AttackResultMessageResponseBodyAdvice.java index eea080c81..71eca8517 100644 --- a/src/main/java/org/owasp/webgoat/container/assignments/AttackResultMessageResponseBodyAdvice.java +++ b/src/main/java/org/owasp/webgoat/container/assignments/AttackResultMessageResponseBodyAdvice.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.assignments; import org.owasp.webgoat.container.i18n.PluginMessages; diff --git a/src/main/java/org/owasp/webgoat/container/assignments/LessonTrackerInterceptor.java b/src/main/java/org/owasp/webgoat/container/assignments/LessonTrackerInterceptor.java index 988755daf..6fd0d4174 100644 --- a/src/main/java/org/owasp/webgoat/container/assignments/LessonTrackerInterceptor.java +++ b/src/main/java/org/owasp/webgoat/container/assignments/LessonTrackerInterceptor.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.assignments; import org.owasp.webgoat.container.lessons.Lesson; diff --git a/src/main/java/org/owasp/webgoat/container/controller/StartLesson.java b/src/main/java/org/owasp/webgoat/container/controller/StartLesson.java index f5397c415..dd7f8b9ae 100644 --- a/src/main/java/org/owasp/webgoat/container/controller/StartLesson.java +++ b/src/main/java/org/owasp/webgoat/container/controller/StartLesson.java @@ -1,33 +1,6 @@ -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author WebGoat - * @version $Id: $Id - * @since October 28, 2003 +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.controller; diff --git a/src/main/java/org/owasp/webgoat/container/controller/Welcome.java b/src/main/java/org/owasp/webgoat/container/controller/Welcome.java index 0bebc9e70..58c0e4559 100644 --- a/src/main/java/org/owasp/webgoat/container/controller/Welcome.java +++ b/src/main/java/org/owasp/webgoat/container/controller/Welcome.java @@ -1,31 +1,6 @@ -/** - * ************************************************************************************************ - * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author WebGoat - * @since October 28, 2003 - * @version $Id: $Id +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.controller; diff --git a/src/main/java/org/owasp/webgoat/container/i18n/Language.java b/src/main/java/org/owasp/webgoat/container/i18n/Language.java index 76e2a9728..810dc4b49 100644 --- a/src/main/java/org/owasp/webgoat/container/i18n/Language.java +++ b/src/main/java/org/owasp/webgoat/container/i18n/Language.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.i18n; import java.util.Locale; diff --git a/src/main/java/org/owasp/webgoat/container/i18n/Messages.java b/src/main/java/org/owasp/webgoat/container/i18n/Messages.java index 5fd9c9c92..713929781 100644 --- a/src/main/java/org/owasp/webgoat/container/i18n/Messages.java +++ b/src/main/java/org/owasp/webgoat/container/i18n/Messages.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.i18n; import java.util.Properties; diff --git a/src/main/java/org/owasp/webgoat/container/i18n/PluginMessages.java b/src/main/java/org/owasp/webgoat/container/i18n/PluginMessages.java index 16df55cb2..2da67df1d 100644 --- a/src/main/java/org/owasp/webgoat/container/i18n/PluginMessages.java +++ b/src/main/java/org/owasp/webgoat/container/i18n/PluginMessages.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.i18n; import java.io.IOException; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/Assignment.java b/src/main/java/org/owasp/webgoat/container/lessons/Assignment.java index 3563a537e..fa8c03a31 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/Assignment.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/Assignment.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.lessons; import jakarta.persistence.Entity; @@ -10,36 +14,6 @@ import java.util.List; import lombok.EqualsAndHashCode; import lombok.Getter; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author nbaars - * @version $Id: $Id - * @since November 25, 2016 - */ @Getter @EqualsAndHashCode @Entity diff --git a/src/main/java/org/owasp/webgoat/container/lessons/Category.java b/src/main/java/org/owasp/webgoat/container/lessons/Category.java index eca864d71..2b5c9c147 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/Category.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/Category.java @@ -1,38 +1,11 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.lessons; import lombok.Getter; -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author Bruce Mayhew WebGoat - * @version $Id: $Id - * @since October 28, 2003 - */ public enum Category { INTRODUCTION("Introduction"), GENERAL("General"), diff --git a/src/main/java/org/owasp/webgoat/container/lessons/CourseConfiguration.java b/src/main/java/org/owasp/webgoat/container/lessons/CourseConfiguration.java index 9b82e5437..442b3fa61 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/CourseConfiguration.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/CourseConfiguration.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.lessons; import java.lang.reflect.Method; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/Hint.java b/src/main/java/org/owasp/webgoat/container/lessons/Hint.java index 6a18d8f94..2c5b14046 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/Hint.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/Hint.java @@ -1,43 +1,7 @@ -/*************************************************************************************************** - * - * - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2014 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - * +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.lessons; -import lombok.Value; - -/** - * Hint class. - * - * @author rlawson - * @version $Id: $Id - */ -@Value -public class Hint { - - private String hint; - private String assignmentPath; -} +public record Hint(String hint, String assignmentPath) {} diff --git a/src/main/java/org/owasp/webgoat/container/lessons/Initializable.java b/src/main/java/org/owasp/webgoat/container/lessons/Initializable.java index 1b2b4edd7..8fdb781b1 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/Initializable.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/Initializable.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.lessons; import org.owasp.webgoat.container.users.WebGoatUser; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/Lesson.java b/src/main/java/org/owasp/webgoat/container/lessons/Lesson.java index 4f49e241a..fec3115e3 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/Lesson.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/Lesson.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.lessons; import java.util.ArrayList; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/LessonConnectionInvocationHandler.java b/src/main/java/org/owasp/webgoat/container/lessons/LessonConnectionInvocationHandler.java index a8f586d56..0684923fc 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/LessonConnectionInvocationHandler.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/LessonConnectionInvocationHandler.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.lessons; import java.lang.reflect.InvocationHandler; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/LessonInfoModel.java b/src/main/java/org/owasp/webgoat/container/lessons/LessonInfoModel.java index 9a56859ba..a5e3685fc 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/LessonInfoModel.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/LessonInfoModel.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2015 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.lessons; import lombok.AllArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItem.java b/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItem.java index 2b956a6b7..eb00f975a 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItem.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItem.java @@ -1,29 +1,6 @@ -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.lessons; diff --git a/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItemType.java b/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItemType.java index 7648752a7..4c22fb366 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItemType.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/LessonMenuItemType.java @@ -1,38 +1,9 @@ -/*************************************************************************************************** - * - * - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2014 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - * +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.lessons; -/** - * LessonMenuItemType class. - * - * @author rlawson - * @version $Id: $Id - */ public enum LessonMenuItemType { CATEGORY, LESSON diff --git a/src/main/java/org/owasp/webgoat/container/lessons/LessonName.java b/src/main/java/org/owasp/webgoat/container/lessons/LessonName.java index 800c81c05..cc07aae33 100644 --- a/src/main/java/org/owasp/webgoat/container/lessons/LessonName.java +++ b/src/main/java/org/owasp/webgoat/container/lessons/LessonName.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.lessons; import org.springframework.util.Assert; diff --git a/src/main/java/org/owasp/webgoat/container/report/LessonStatistics.java b/src/main/java/org/owasp/webgoat/container/report/LessonStatistics.java index 055aaaaae..812c3fc7f 100644 --- a/src/main/java/org/owasp/webgoat/container/report/LessonStatistics.java +++ b/src/main/java/org/owasp/webgoat/container/report/LessonStatistics.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.report; record LessonStatistics(String name, boolean solved, int numberOfAttempts) {} diff --git a/src/main/java/org/owasp/webgoat/container/report/ReportCardController.java b/src/main/java/org/owasp/webgoat/container/report/ReportCardController.java index 60970281a..27d85c5c2 100644 --- a/src/main/java/org/owasp/webgoat/container/report/ReportCardController.java +++ b/src/main/java/org/owasp/webgoat/container/report/ReportCardController.java @@ -1,29 +1,6 @@ -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.report; diff --git a/src/main/java/org/owasp/webgoat/container/service/EnvironmentService.java b/src/main/java/org/owasp/webgoat/container/service/EnvironmentService.java index 6393de391..ea9ff9de7 100644 --- a/src/main/java/org/owasp/webgoat/container/service/EnvironmentService.java +++ b/src/main/java/org/owasp/webgoat/container/service/EnvironmentService.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.service; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/container/service/HintService.java b/src/main/java/org/owasp/webgoat/container/service/HintService.java index d41752d79..9873bd458 100644 --- a/src/main/java/org/owasp/webgoat/container/service/HintService.java +++ b/src/main/java/org/owasp/webgoat/container/service/HintService.java @@ -1,9 +1,7 @@ /* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.service; import java.util.Collection; diff --git a/src/main/java/org/owasp/webgoat/container/service/LabelDebugService.java b/src/main/java/org/owasp/webgoat/container/service/LabelDebugService.java index c91aeb1ae..387294916 100644 --- a/src/main/java/org/owasp/webgoat/container/service/LabelDebugService.java +++ b/src/main/java/org/owasp/webgoat/container/service/LabelDebugService.java @@ -1,29 +1,6 @@ -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.service; @@ -39,12 +16,6 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; -/** - * LabelDebugService class. - * - * @author nbaars - * @version $Id: $Id - */ @Controller @Slf4j @AllArgsConstructor diff --git a/src/main/java/org/owasp/webgoat/container/service/LabelService.java b/src/main/java/org/owasp/webgoat/container/service/LabelService.java index 1a8f96720..db30e537f 100644 --- a/src/main/java/org/owasp/webgoat/container/service/LabelService.java +++ b/src/main/java/org/owasp/webgoat/container/service/LabelService.java @@ -1,29 +1,6 @@ -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.service; @@ -39,11 +16,6 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; -/** - * LabelService class. - * - * @author zupzup - */ @RestController @Slf4j @RequiredArgsConstructor diff --git a/src/main/java/org/owasp/webgoat/container/service/LessonInfoService.java b/src/main/java/org/owasp/webgoat/container/service/LessonInfoService.java index 9161452b9..9ce0bfb22 100644 --- a/src/main/java/org/owasp/webgoat/container/service/LessonInfoService.java +++ b/src/main/java/org/owasp/webgoat/container/service/LessonInfoService.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2015 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.service; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java b/src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java index ac1902611..144b78bcf 100644 --- a/src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java +++ b/src/main/java/org/owasp/webgoat/container/service/LessonMenuService.java @@ -1,29 +1,6 @@ -/** - * ************************************************************************************************* - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.service; @@ -45,12 +22,6 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; -/** - * LessonMenuService class. - * - * @author rlawson - * @version $Id: $Id - */ @Controller @AllArgsConstructor public class LessonMenuService { diff --git a/src/main/java/org/owasp/webgoat/container/service/LessonProgressService.java b/src/main/java/org/owasp/webgoat/container/service/LessonProgressService.java index 13da9fea0..a32464ea6 100644 --- a/src/main/java/org/owasp/webgoat/container/service/LessonProgressService.java +++ b/src/main/java/org/owasp/webgoat/container/service/LessonProgressService.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.service; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/container/service/RestartLessonService.java b/src/main/java/org/owasp/webgoat/container/service/RestartLessonService.java index 3d2a67875..e1304ab3e 100644 --- a/src/main/java/org/owasp/webgoat/container/service/RestartLessonService.java +++ b/src/main/java/org/owasp/webgoat/container/service/RestartLessonService.java @@ -1,27 +1,7 @@ -/*************************************************************************************************** - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2014 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.service; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/container/service/SessionService.java b/src/main/java/org/owasp/webgoat/container/service/SessionService.java index 0217d06a1..3d8d4d9d1 100644 --- a/src/main/java/org/owasp/webgoat/container/service/SessionService.java +++ b/src/main/java/org/owasp/webgoat/container/service/SessionService.java @@ -1,9 +1,7 @@ /* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.container.service; import lombok.RequiredArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/container/session/Course.java b/src/main/java/org/owasp/webgoat/container/session/Course.java index 48908fa45..f6a6c51d6 100644 --- a/src/main/java/org/owasp/webgoat/container/session/Course.java +++ b/src/main/java/org/owasp/webgoat/container/session/Course.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.session; import java.util.List; @@ -6,37 +10,6 @@ import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.owasp.webgoat.container.lessons.LessonName; -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author Bruce Mayhew WebGoat - * @version $Id: $Id - * @since October 28, 2003 - */ @Slf4j public class Course { diff --git a/src/main/java/org/owasp/webgoat/container/session/LabelDebugger.java b/src/main/java/org/owasp/webgoat/container/session/LabelDebugger.java index 34e7b7111..f58b80f90 100644 --- a/src/main/java/org/owasp/webgoat/container/session/LabelDebugger.java +++ b/src/main/java/org/owasp/webgoat/container/session/LabelDebugger.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2015 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.session; import java.io.Serializable; diff --git a/src/main/java/org/owasp/webgoat/container/session/LessonSession.java b/src/main/java/org/owasp/webgoat/container/session/LessonSession.java index 70f844695..89d8775bc 100644 --- a/src/main/java/org/owasp/webgoat/container/session/LessonSession.java +++ b/src/main/java/org/owasp/webgoat/container/session/LessonSession.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.session; import java.util.HashMap; diff --git a/src/main/java/org/owasp/webgoat/container/users/AssignmentProgress.java b/src/main/java/org/owasp/webgoat/container/users/AssignmentProgress.java index a5ab07ab8..523bc3b14 100644 --- a/src/main/java/org/owasp/webgoat/container/users/AssignmentProgress.java +++ b/src/main/java/org/owasp/webgoat/container/users/AssignmentProgress.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2025 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import jakarta.persistence.CascadeType; diff --git a/src/main/java/org/owasp/webgoat/container/users/LessonProgress.java b/src/main/java/org/owasp/webgoat/container/users/LessonProgress.java index 4cdeccf71..da76a5574 100644 --- a/src/main/java/org/owasp/webgoat/container/users/LessonProgress.java +++ b/src/main/java/org/owasp/webgoat/container/users/LessonProgress.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import jakarta.persistence.CascadeType; @@ -17,37 +21,6 @@ import lombok.EqualsAndHashCode; import lombok.Getter; import org.owasp.webgoat.container.lessons.Lesson; -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author Bruce Mayhew WebGoat - * @version $Id: $Id - * @since October 29, 2003 - */ @Entity @EqualsAndHashCode public class LessonProgress { diff --git a/src/main/java/org/owasp/webgoat/container/users/RegistrationController.java b/src/main/java/org/owasp/webgoat/container/users/RegistrationController.java index 9f18c650c..7b776a267 100644 --- a/src/main/java/org/owasp/webgoat/container/users/RegistrationController.java +++ b/src/main/java/org/owasp/webgoat/container/users/RegistrationController.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import jakarta.servlet.ServletException; diff --git a/src/main/java/org/owasp/webgoat/container/users/Scoreboard.java b/src/main/java/org/owasp/webgoat/container/users/Scoreboard.java index 9a2a0d077..bd74fdffa 100644 --- a/src/main/java/org/owasp/webgoat/container/users/Scoreboard.java +++ b/src/main/java/org/owasp/webgoat/container/users/Scoreboard.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/container/users/UserForm.java b/src/main/java/org/owasp/webgoat/container/users/UserForm.java index d0fad3626..fb241b20a 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserForm.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserForm.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import jakarta.validation.constraints.NotNull; diff --git a/src/main/java/org/owasp/webgoat/container/users/UserProgress.java b/src/main/java/org/owasp/webgoat/container/users/UserProgress.java index f81d6d042..34ff667fb 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserProgress.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserProgress.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2008 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import jakarta.persistence.CascadeType; @@ -15,37 +19,6 @@ import lombok.EqualsAndHashCode; import lombok.extern.slf4j.Slf4j; import org.owasp.webgoat.container.lessons.Lesson; -/** - * ************************************************************************************************ - * - *
- * - *
This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - * @author Bruce Mayhew WebGoat - * @version $Id: $Id - * @since October 29, 2003 - */ @Slf4j @Entity @EqualsAndHashCode diff --git a/src/main/java/org/owasp/webgoat/container/users/UserProgressRepository.java b/src/main/java/org/owasp/webgoat/container/users/UserProgressRepository.java index a6b9b7a44..c26e8db06 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserProgressRepository.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserProgressRepository.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import org.springframework.data.jpa.repository.JpaRepository; diff --git a/src/main/java/org/owasp/webgoat/container/users/UserRepository.java b/src/main/java/org/owasp/webgoat/container/users/UserRepository.java index 86d9b2cd4..0afc2a2aa 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserRepository.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserRepository.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/container/users/UserService.java b/src/main/java/org/owasp/webgoat/container/users/UserService.java index 0907c732a..6fc0c725e 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserService.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserService.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/container/users/UserSession.java b/src/main/java/org/owasp/webgoat/container/users/UserSession.java index 5bf29a7f0..36a351982 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserSession.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserSession.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import lombok.AccessLevel; diff --git a/src/main/java/org/owasp/webgoat/container/users/UserValidator.java b/src/main/java/org/owasp/webgoat/container/users/UserValidator.java index 6301e08b3..9407d0644 100644 --- a/src/main/java/org/owasp/webgoat/container/users/UserValidator.java +++ b/src/main/java/org/owasp/webgoat/container/users/UserValidator.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import lombok.AllArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/container/users/WebGoatUser.java b/src/main/java/org/owasp/webgoat/container/users/WebGoatUser.java index bbeec3b98..1ac7839a0 100644 --- a/src/main/java/org/owasp/webgoat/container/users/WebGoatUser.java +++ b/src/main/java/org/owasp/webgoat/container/users/WebGoatUser.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import jakarta.persistence.Entity; diff --git a/src/main/java/org/owasp/webgoat/lessons/authbypass/AccountVerificationHelper.java b/src/main/java/org/owasp/webgoat/lessons/authbypass/AccountVerificationHelper.java index 4de8d5ef7..30b1d765b 100644 --- a/src/main/java/org/owasp/webgoat/lessons/authbypass/AccountVerificationHelper.java +++ b/src/main/java/org/owasp/webgoat/lessons/authbypass/AccountVerificationHelper.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.authbypass; import java.util.HashMap; diff --git a/src/main/java/org/owasp/webgoat/lessons/authbypass/AuthBypass.java b/src/main/java/org/owasp/webgoat/lessons/authbypass/AuthBypass.java index 8680b47d7..fe81a64a7 100644 --- a/src/main/java/org/owasp/webgoat/lessons/authbypass/AuthBypass.java +++ b/src/main/java/org/owasp/webgoat/lessons/authbypass/AuthBypass.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.authbypass; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/authbypass/VerifyAccount.java b/src/main/java/org/owasp/webgoat/lessons/authbypass/VerifyAccount.java index 41e6e4e0c..4a27702d3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/authbypass/VerifyAccount.java +++ b/src/main/java/org/owasp/webgoat/lessons/authbypass/VerifyAccount.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.authbypass; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; @@ -41,7 +23,6 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; -/** Created by jason on 1/5/17. */ @RestController @AssignmentHints({ "auth-bypass.hints.verify.1", diff --git a/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictions.java b/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictions.java index 7aaa06c5c..ee8ae6da0 100644 --- a/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictions.java +++ b/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictions.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.bypassrestrictions; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFieldRestrictions.java b/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFieldRestrictions.java index 9f28f2305..e3b8fd95e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFieldRestrictions.java +++ b/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFieldRestrictions.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.bypassrestrictions; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidation.java b/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidation.java index 71f200228..158079da3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidation.java +++ b/src/main/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidation.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.bypassrestrictions; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/ChallengeIntro.java b/src/main/java/org/owasp/webgoat/lessons/challenges/ChallengeIntro.java index 88d05e1ac..2d84d33fd 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/ChallengeIntro.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/ChallengeIntro.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/Email.java b/src/main/java/org/owasp/webgoat/lessons/challenges/Email.java index 81e105a9a..a0c839617 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/Email.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/Email.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges; import java.io.Serializable; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/Flag.java b/src/main/java/org/owasp/webgoat/lessons/challenges/Flag.java index 483b738fa..9d89ea5b8 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/Flag.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/Flag.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges; public record Flag(int number, String answer) { diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/FlagController.java b/src/main/java/org/owasp/webgoat/lessons/challenges/FlagController.java index 81bb924d6..cf54315f4 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/FlagController.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/FlagController.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/Flags.java b/src/main/java/org/owasp/webgoat/lessons/challenges/Flags.java index ec63a7e98..adac33c96 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/Flags.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/Flags.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2023 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges; import java.util.HashMap; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/SolutionConstants.java b/src/main/java/org/owasp/webgoat/lessons/challenges/SolutionConstants.java index ea34d5ebe..9322df097 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/SolutionConstants.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/SolutionConstants.java @@ -1,33 +1,9 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges; -/** - * Interface with constants so we can easily change the flags - * - * @author nbaars - * @since 3/23/17. - */ public interface SolutionConstants { // TODO should be random generated when starting the server diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Assignment1.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Assignment1.java index 0b79c0b16..1001f1b5a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Assignment1.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Assignment1.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge1; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; @@ -12,36 +16,6 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since August 11, 2016 - */ @RestController public class Assignment1 implements AssignmentEndpoint { diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Challenge1.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Challenge1.java index fa9129040..8c594ac5f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Challenge1.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/Challenge1.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge1; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/ImageServlet.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/ImageServlet.java index 6ae34384c..735d9f1e4 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/ImageServlet.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge1/ImageServlet.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge1; import static org.springframework.web.bind.annotation.RequestMethod.GET; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Assignment5.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Assignment5.java index db52392bf..b71705562 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Assignment5.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Assignment5.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges.challenge5; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Challenge5.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Challenge5.java index 7fe4cfa9c..66b9b14e3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Challenge5.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge5/Challenge5.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges.challenge5; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7.java index fab9d7482..9ce34238b 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge7; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.success; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Challenge7.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Challenge7.java index ee14c8325..2aacd1024 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Challenge7.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/Challenge7.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge7; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5.java index d523b6ba9..deb172661 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge7; import java.io.File; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/PasswordResetLink.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/PasswordResetLink.java index ff00f06cb..31a0c5691 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/PasswordResetLink.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge7/PasswordResetLink.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge7; import java.util.Random; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Assignment8.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Assignment8.java index 0bf9edeb9..ff74256e1 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Assignment8.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Assignment8.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge8; import jakarta.servlet.http.HttpServletRequest; diff --git a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Challenge8.java b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Challenge8.java index c610a1bd9..9d160ed59 100644 --- a/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Challenge8.java +++ b/src/main/java/org/owasp/webgoat/lessons/challenges/challenge8/Challenge8.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.challenges.challenge8; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevTools.java b/src/main/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevTools.java index 587761fc4..18a5cdb4e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevTools.java +++ b/src/main/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevTools.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.chromedevtools; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkDummy.java b/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkDummy.java index cff6ab647..72a861e05 100644 --- a/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkDummy.java +++ b/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkDummy.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.chromedevtools; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkLesson.java b/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkLesson.java index 106c03ceb..a15f67e02 100644 --- a/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkLesson.java +++ b/src/main/java/org/owasp/webgoat/lessons/chromedevtools/NetworkLesson.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.chromedevtools; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/cia/CIA.java b/src/main/java/org/owasp/webgoat/lessons/cia/CIA.java index 1754360b0..a0dac12cd 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cia/CIA.java +++ b/src/main/java/org/owasp/webgoat/lessons/cia/CIA.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.cia; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/cia/CIAQuiz.java b/src/main/java/org/owasp/webgoat/lessons/cia/CIAQuiz.java index 35d462d24..58a753666 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cia/CIAQuiz.java +++ b/src/main/java/org/owasp/webgoat/lessons/cia/CIAQuiz.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.cia; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFiltering.java b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFiltering.java index 31c0867be..821f43188 100644 --- a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFiltering.java +++ b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFiltering.java @@ -1,39 +1,13 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.clientsidefiltering; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ @Component public class ClientSideFiltering extends Lesson { diff --git a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignment.java b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignment.java index 6dcb154c8..596c71905 100644 --- a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.clientsidefiltering; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignment.java b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignment.java index bc4a66ca1..32e731d59 100644 --- a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.clientsidefiltering; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/Salaries.java b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/Salaries.java index 9f5b42b32..748c3a7b3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/Salaries.java +++ b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/Salaries.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.clientsidefiltering; import jakarta.annotation.PostConstruct; diff --git a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpoint.java index 1a0f4fa92..1a4efd0e5 100644 --- a/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpoint.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.clientsidefiltering; import com.google.common.collect.Lists; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/CryptoUtil.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/CryptoUtil.java index 6e13e57e3..69d80dcb3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/CryptoUtil.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/CryptoUtil.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.cryptography; import java.math.BigInteger; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/Cryptography.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/Cryptography.java index 5e00a3f5e..1892bffd9 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/Cryptography.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/Cryptography.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.cryptography; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/EncodingAssignment.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/EncodingAssignment.java index 4df2b97e2..d1a8ffa36 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/EncodingAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/EncodingAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.cryptography; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/HashingAssignment.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/HashingAssignment.java index 19f00b748..62d327546 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/HashingAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/HashingAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.cryptography; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/SecureDefaultsAssignment.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/SecureDefaultsAssignment.java index d30708bbc..023c9bbae 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/SecureDefaultsAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/SecureDefaultsAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.cryptography; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/SigningAssignment.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/SigningAssignment.java index 7a27cae61..f2284df4d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/SigningAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/SigningAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.cryptography; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/cryptography/XOREncodingAssignment.java b/src/main/java/org/owasp/webgoat/lessons/cryptography/XOREncodingAssignment.java index a2807b4e6..fc3ce7de3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/cryptography/XOREncodingAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/cryptography/XOREncodingAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.cryptography; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRF.java b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRF.java index ca36da3e5..ad2918380 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRF.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRF.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFConfirmFlag1.java b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFConfirmFlag1.java index f46c23862..bc496f511 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFConfirmFlag1.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFConfirmFlag1.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFFeedback.java b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFFeedback.java index bc0cc493a..a9d964b9e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFFeedback.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFFeedback.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFGetFlag.java b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFGetFlag.java index a0e3f5609..14af3956e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFGetFlag.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFGetFlag.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import jakarta.servlet.http.HttpServletRequest; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFLogin.java b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFLogin.java index 78fb16a10..3ae2d9629 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFLogin.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/CSRFLogin.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/ForgedReviews.java b/src/main/java/org/owasp/webgoat/lessons/csrf/ForgedReviews.java index 50dcb8915..b72d0bdfb 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/ForgedReviews.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/ForgedReviews.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/csrf/Review.java b/src/main/java/org/owasp/webgoat/lessons/csrf/Review.java index 0cb2a5ce1..4e8e677fe 100644 --- a/src/main/java/org/owasp/webgoat/lessons/csrf/Review.java +++ b/src/main/java/org/owasp/webgoat/lessons/csrf/Review.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import javax.xml.bind.annotation.XmlRootElement; diff --git a/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserialization.java b/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserialization.java index 39083406a..e1227cf48 100644 --- a/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserialization.java +++ b/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserialization.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.deserialization; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class InsecureDeserialization extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserializationTask.java b/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserializationTask.java index 22dd18a1f..0caefc726 100644 --- a/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserializationTask.java +++ b/src/main/java/org/owasp/webgoat/lessons/deserialization/InsecureDeserializationTask.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.deserialization; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/deserialization/SerializationHelper.java b/src/main/java/org/owasp/webgoat/lessons/deserialization/SerializationHelper.java index a8b55ab40..dc53b9861 100644 --- a/src/main/java/org/owasp/webgoat/lessons/deserialization/SerializationHelper.java +++ b/src/main/java/org/owasp/webgoat/lessons/deserialization/SerializationHelper.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.deserialization; import java.io.ByteArrayInputStream; diff --git a/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSession.java b/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSession.java index c43ece76b..d8952e186 100644 --- a/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSession.java +++ b/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSession.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignment.java b/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignment.java index 7817022f0..f24188165 100644 --- a/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/Authentication.java b/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/Authentication.java index 7931028a3..9f630aa48 100644 --- a/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/Authentication.java +++ b/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/Authentication.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession.cas; import java.security.Principal; diff --git a/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/AuthenticationProvider.java b/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/AuthenticationProvider.java index 55af2c53c..b9bfc9ecd 100644 --- a/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/AuthenticationProvider.java +++ b/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/AuthenticationProvider.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession.cas; import java.security.Principal; diff --git a/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProvider.java b/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProvider.java index 018dd8bf1..50d315e28 100644 --- a/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProvider.java +++ b/src/main/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProvider.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession.cas; import java.time.Instant; diff --git a/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTampering.java b/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTampering.java index 0302c0b4f..2d0c7e0d0 100644 --- a/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTampering.java +++ b/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTampering.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.htmltampering; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class HtmlTampering extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTamperingTask.java b/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTamperingTask.java index 2042ea0f6..3552883f4 100644 --- a/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTamperingTask.java +++ b/src/main/java/org/owasp/webgoat/lessons/htmltampering/HtmlTamperingTask.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.htmltampering; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasics.java b/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasics.java index d70aaebb4..6da2aa095 100644 --- a/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasics.java +++ b/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasics.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.httpbasics; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsLesson.java b/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsLesson.java index f73e3ae06..e08c05f06 100644 --- a/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsLesson.java +++ b/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsLesson.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.httpbasics; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsQuiz.java b/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsQuiz.java index 67ff78319..12523e4e6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsQuiz.java +++ b/src/main/java/org/owasp/webgoat/lessons/httpbasics/HttpBasicsQuiz.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.httpbasics; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequest.java b/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequest.java index 3731dec4e..3699bc370 100644 --- a/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequest.java +++ b/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.httpproxies; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpProxies.java b/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpProxies.java index 1d9326426..3df0b1b4f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpProxies.java +++ b/src/main/java/org/owasp/webgoat/lessons/httpproxies/HttpProxies.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.httpproxies; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class HttpProxies extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDOR.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDOR.java index 0adeeb25f..f058698d4 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDOR.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDOR.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.idor; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author misfir3 - * @version $Id: $Id - * @since January 3, 2017 - */ + @Component public class IDOR extends Lesson { diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDORDiffAttributes.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDORDiffAttributes.java index 7b641a228..01c22b5cf 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDORDiffAttributes.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDORDiffAttributes.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDOREditOtherProfile.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDOREditOtherProfile.java index e0b9debf8..8157493c6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDOREditOtherProfile.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDOREditOtherProfile.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDORLogin.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDORLogin.java index febfb2f50..8f066974c 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDORLogin.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDORLogin.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOtherProfile.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOtherProfile.java index 2bd783807..fd971bd2d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOtherProfile.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOtherProfile.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfile.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfile.java index 5897fa868..73328742f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfile.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfile.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import java.util.HashMap; diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfileAltUrl.java b/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfileAltUrl.java index 970b33932..5069f579f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfileAltUrl.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/IDORViewOwnProfileAltUrl.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/idor/UserProfile.java b/src/main/java/org/owasp/webgoat/lessons/idor/UserProfile.java index 08f9ca63a..22b9f921f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/idor/UserProfile.java +++ b/src/main/java/org/owasp/webgoat/lessons/idor/UserProfile.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.idor; import java.util.HashMap; diff --git a/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLogin.java b/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLogin.java index d017421e2..8794a8363 100644 --- a/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLogin.java +++ b/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLogin.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.insecurelogin; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class InsecureLogin extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLoginTask.java b/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLoginTask.java index 24f5ac7f6..1e59a8bbc 100644 --- a/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLoginTask.java +++ b/src/main/java/org/owasp/webgoat/lessons/insecurelogin/InsecureLoginTask.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.insecurelogin; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/JWT.java b/src/main/java/org/owasp/webgoat/lessons/jwt/JWT.java index 31dee5ef5..4b7d69290 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/JWT.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/JWT.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpoint.java index 75bfd6171..63ef96b37 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpoint.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTQuiz.java b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTQuiz.java index d73765cb4..32367288a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTQuiz.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTQuiz.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpoint.java index 03691dee1..d84d6a519 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpoint.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpoint.java index 4eb46d6e7..bff3015d4 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpoint.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpoint.java index 4b4d6486e..d69e721b3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpoint.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import static java.util.Comparator.comparingLong; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpoint.java index 4ff2e13ca..e17ca0e7f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpoint.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2023 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt.claimmisuse; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpoint.java index 904f2656f..b115a6283 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpoint.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt.claimmisuse; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Views.java b/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Views.java index cc600318c..73ac824e3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Views.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Views.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt.votes; /** diff --git a/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Vote.java b/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Vote.java index 2d065df53..ae9b60e15 100644 --- a/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Vote.java +++ b/src/main/java/org/owasp/webgoat/lessons/jwt/votes/Vote.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt.votes; import com.fasterxml.jackson.annotation.JsonView; diff --git a/src/main/java/org/owasp/webgoat/lessons/lessontemplate/LessonTemplate.java b/src/main/java/org/owasp/webgoat/lessons/lessontemplate/LessonTemplate.java index 20fd1f293..47c9583bb 100644 --- a/src/main/java/org/owasp/webgoat/lessons/lessontemplate/LessonTemplate.java +++ b/src/main/java/org/owasp/webgoat/lessons/lessontemplate/LessonTemplate.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.lessontemplate; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/lessontemplate/SampleAttack.java b/src/main/java/org/owasp/webgoat/lessons/lessontemplate/SampleAttack.java index d4f0c1b86..15e33f557 100644 --- a/src/main/java/org/owasp/webgoat/lessons/lessontemplate/SampleAttack.java +++ b/src/main/java/org/owasp/webgoat/lessons/lessontemplate/SampleAttack.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.lessontemplate; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/logging/LogBleedingTask.java b/src/main/java/org/owasp/webgoat/lessons/logging/LogBleedingTask.java index 7b1f68937..851a28490 100644 --- a/src/main/java/org/owasp/webgoat/lessons/logging/LogBleedingTask.java +++ b/src/main/java/org/owasp/webgoat/lessons/logging/LogBleedingTask.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.logging; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofing.java b/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofing.java index b92d05572..5cdd766d8 100644 --- a/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofing.java +++ b/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofing.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.logging; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class LogSpoofing extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofingTask.java b/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofingTask.java index bcce8a57a..1e4d7297f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofingTask.java +++ b/src/main/java/org/owasp/webgoat/lessons/logging/LogSpoofingTask.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.logging; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/DisplayUser.java b/src/main/java/org/owasp/webgoat/lessons/missingac/DisplayUser.java index 90eb06c8d..765d87abd 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/DisplayUser.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/DisplayUser.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.missingac; import java.nio.charset.StandardCharsets; @@ -5,32 +9,6 @@ import java.security.MessageDigest; import java.util.Base64; import lombok.Getter; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- */ @Getter public class DisplayUser { // intended to provide a display version of WebGoatUser for admins to view user attributes diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingAccessControlUserRepository.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingAccessControlUserRepository.java index 584542928..021bcf85c 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingAccessControlUserRepository.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingAccessControlUserRepository.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.missingac; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionAC.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionAC.java index 46323aca2..7a243d969 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionAC.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionAC.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenus.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenus.java index 2bbb06687..7864b3be6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenus.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenus.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsers.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsers.java index f771d45a3..2a6aac183 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsers.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsers.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.owasp.webgoat.lessons.missingac.MissingFunctionAC.PASSWORD_SALT_ADMIN; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHash.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHash.java index 722e376f9..901099ee0 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHash.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHash.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java index c36442a2a..eace7f1a9 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdmin.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/missingac/User.java b/src/main/java/org/owasp/webgoat/lessons/missingac/User.java index d7e23c887..f7b35cd15 100644 --- a/src/main/java/org/owasp/webgoat/lessons/missingac/User.java +++ b/src/main/java/org/owasp/webgoat/lessons/missingac/User.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.missingac; import lombok.AllArgsConstructor; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordReset.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordReset.java index 79cc05120..4fb2b5f01 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordReset.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordReset.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordResetEmail.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordResetEmail.java index ef1f723a5..baa2cc3c0 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordResetEmail.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/PasswordResetEmail.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import java.io.Serializable; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/QuestionsAssignment.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/QuestionsAssignment.java index 02a9475da..69a7dd590 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/QuestionsAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/QuestionsAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignment.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignment.java index 7f85e18ed..a80712bf6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentForgotPassword.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentForgotPassword.java index 1a2780467..9a9c4a628 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentForgotPassword.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentForgotPassword.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignment.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignment.java index f08bc7890..ff969d7af 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import static java.util.Optional.of; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/SimpleMailAssignment.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/SimpleMailAssignment.java index cd862d49b..52849113d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/SimpleMailAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/SimpleMailAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import static java.util.Optional.ofNullable; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/TriedQuestions.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/TriedQuestions.java index d8f04167a..518bba256 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/TriedQuestions.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/TriedQuestions.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.passwordreset; import java.util.HashSet; diff --git a/src/main/java/org/owasp/webgoat/lessons/passwordreset/resetlink/PasswordChangeForm.java b/src/main/java/org/owasp/webgoat/lessons/passwordreset/resetlink/PasswordChangeForm.java index 4601cc78a..161f9df52 100644 --- a/src/main/java/org/owasp/webgoat/lessons/passwordreset/resetlink/PasswordChangeForm.java +++ b/src/main/java/org/owasp/webgoat/lessons/passwordreset/resetlink/PasswordChangeForm.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.passwordreset.resetlink; import jakarta.validation.constraints.NotNull; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/PathTraversal.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/PathTraversal.java index ef61ae901..bbc689fa6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/PathTraversal.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/PathTraversal.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.pathtraversal; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUpload.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUpload.java index c6e07a048..2c435aedc 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUpload.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUpload.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.springframework.http.MediaType.ALL_VALUE; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadBase.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadBase.java index f212b170e..7ee77d9a9 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadBase.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadBase.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFix.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFix.java index 09087fde1..86eef201f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFix.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFix.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.springframework.http.MediaType.ALL_VALUE; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInput.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInput.java index 032c79fb9..1d694b483 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInput.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInput.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.springframework.http.MediaType.ALL_VALUE; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrieval.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrieval.java index 2225c4d50..5ba4950b2 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrieval.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrieval.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileZipSlip.java b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileZipSlip.java index 891d6bafd..62a8876a5 100644 --- a/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileZipSlip.java +++ b/src/main/java/org/owasp/webgoat/lessons/pathtraversal/ProfileZipSlip.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswords.java b/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswords.java index 99a62aeff..9b90d91ff 100644 --- a/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswords.java +++ b/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswords.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.securepasswords; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswordsAssignment.java b/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswordsAssignment.java index b90adf437..c25f045c2 100644 --- a/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswordsAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/securepasswords/SecurePasswordsAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.securepasswords; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookie.java b/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookie.java index 835f0bd0e..4e46f67f1 100644 --- a/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookie.java +++ b/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookie.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.spoofcookie; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignment.java b/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignment.java index 6d68423b8..107584a61 100644 --- a/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignment.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.spoofcookie; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDec.java b/src/main/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDec.java index d5aa4cf7d..656fd2268 100644 --- a/src/main/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDec.java +++ b/src/main/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDec.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.spoofcookie.encoders; import java.nio.charset.StandardCharsets; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionAdvanced.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionAdvanced.java index aa2492703..ca0c81ca5 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionAdvanced.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionAdvanced.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.advanced; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallenge.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallenge.java index f5b0a88ba..ee696c264 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallenge.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallenge.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.advanced; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallengeLogin.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallengeLogin.java index 4a6374851..48133fb47 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallengeLogin.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionChallengeLogin.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.advanced; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6a.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6a.java index 96f090ff7..a42e27eb3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6a.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6a.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.advanced; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6b.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6b.java index 36e8530ab..148bae4c3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6b.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionLesson6b.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.advanced; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionQuiz.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionQuiz.java index 841bafbbf..2df38c89a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionQuiz.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/advanced/SqlInjectionQuiz.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.advanced; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjection.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjection.java index a8f68f0f6..6c0be0b61 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjection.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjection.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10.java index 215a00bf3..209e11f53 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2.java index 15f595960..e23c1d51f 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static java.sql.ResultSet.CONCUR_READ_ONLY; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson3.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson3.java index 352fa5e2c..54920ad8a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson3.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson3.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static java.sql.ResultSet.CONCUR_READ_ONLY; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson4.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson4.java index 24a64d287..8af4d797c 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson4.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson4.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static java.sql.ResultSet.CONCUR_READ_ONLY; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5.java index aa6e29200..b0ae8beb1 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5a.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5a.java index 74431a9bf..d853f85ec 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5a.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5a.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5b.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5b.java index 4e4d3c41b..8add290de 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5b.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5b.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8.java index 56f81ff56..fb417e8e3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static java.sql.ResultSet.CONCUR_UPDATABLE; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9.java index 79ec3bb0a..095e3438e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hsqldb.jdbc.JDBCResultSet.CONCUR_UPDATABLE; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/Servers.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/Servers.java index 083e57061..0a01722cf 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/Servers.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/Servers.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import java.util.ArrayList; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10a.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10a.java index d4dc18d2c..f4ed567b8 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10a.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10a.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10b.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10b.java index 2037313f6..caa0b3c2d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10b.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson10b.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13.java index f2ac154d0..4d87fefd6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionMitigations.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionMitigations.java index 8ed3e0c1b..92e6c1760 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionMitigations.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionMitigations.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidation.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidation.java index f0df96711..6c24d4175 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidation.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidation.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywords.java b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywords.java index 0ca75999a..50e8c0031 100644 --- a/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywords.java +++ b/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywords.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRF.java b/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRF.java index 7a4d788d2..459e1f593 100644 --- a/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRF.java +++ b/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRF.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.ssrf; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class SSRF extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask1.java b/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask1.java index 986602731..411ecc95d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask1.java +++ b/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask1.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.ssrf; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask2.java b/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask2.java index a48b42278..9f7a09c0a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask2.java +++ b/src/main/java/org/owasp/webgoat/lessons/ssrf/SSRFTask2.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.ssrf; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/Contact.java b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/Contact.java index 32c4df24a..29d0dc077 100644 --- a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/Contact.java +++ b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/Contact.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.vulnerablecomponents; public interface Contact { diff --git a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/ContactImpl.java b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/ContactImpl.java index f69b253e7..7d31b9b17 100644 --- a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/ContactImpl.java +++ b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/ContactImpl.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.vulnerablecomponents; import lombok.Data; diff --git a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponents.java b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponents.java index a868727db..535b0f8f0 100644 --- a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponents.java +++ b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponents.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.vulnerablecomponents; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLesson.java b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLesson.java index e2edd5667..e328be123 100644 --- a/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLesson.java +++ b/src/main/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLesson.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.vulnerablecomponents; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/webgoatintroduction/WebGoatIntroduction.java b/src/main/java/org/owasp/webgoat/lessons/webgoatintroduction/WebGoatIntroduction.java index 6c2171e9a..73ad69228 100644 --- a/src/main/java/org/owasp/webgoat/lessons/webgoatintroduction/WebGoatIntroduction.java +++ b/src/main/java/org/owasp/webgoat/lessons/webgoatintroduction/WebGoatIntroduction.java @@ -1,39 +1,14 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.webgoatintroduction; import org.owasp.webgoat.container.lessons.Category; import org.owasp.webgoat.container.lessons.Lesson; import org.springframework.stereotype.Component; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author WebGoat - * @version $Id: $Id - * @since October 12, 2016 - */ + @Component public class WebGoatIntroduction extends Lesson { @Override diff --git a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/Email.java b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/Email.java index b1a3442b3..ac5fc3a88 100644 --- a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/Email.java +++ b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/Email.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.webwolfintroduction; import java.io.Serializable; diff --git a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/LandingAssignment.java b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/LandingAssignment.java index 152bae920..01c5fe01e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/LandingAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/LandingAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.webwolfintroduction; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/MailAssignment.java b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/MailAssignment.java index 274887640..33df583fa 100644 --- a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/MailAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/MailAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.webwolfintroduction; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/WebWolfIntroduction.java b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/WebWolfIntroduction.java index 39fe97e2d..49799f51d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/WebWolfIntroduction.java +++ b/src/main/java/org/owasp/webgoat/lessons/webwolfintroduction/WebWolfIntroduction.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.webwolfintroduction; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/Comment.java b/src/main/java/org/owasp/webgoat/lessons/xss/Comment.java index b0b719b21..4d38ce2d7 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/Comment.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/Comment.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.xss; import javax.xml.bind.annotation.XmlRootElement; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScripting.java b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScripting.java index 5c614cb9e..d98628b5a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScripting.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScripting.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1.java b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1.java index 79ee3469e..ea71b76f6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson5a.java b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson5a.java index dcc1b5903..d2f99166a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson5a.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson5a.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson6a.java b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson6a.java index a6fb245c3..030e7915b 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson6a.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson6a.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingQuiz.java b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingQuiz.java index ab2a0a310..aa0a5fc88 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingQuiz.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingQuiz.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScripting.java b/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScripting.java index 83b927649..6cb38b7ce 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScripting.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScripting.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingVerifier.java b/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingVerifier.java index 87a4e74f6..ed14da93a 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingVerifier.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingVerifier.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson3.java b/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson3.java index dc59d0cb3..0569e6dcd 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson3.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson3.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson4.java b/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson4.java index 7afcc5d27..58116a022 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson4.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingLesson4.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss.mitigation; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingMitigation.java b/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingMitigation.java index b61c03a01..1d90b2c39 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingMitigation.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/mitigation/CrossSiteScriptingMitigation.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss.mitigation; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/stored/CrossSiteScriptingStored.java b/src/main/java/org/owasp/webgoat/lessons/xss/stored/CrossSiteScriptingStored.java index 3238d2f99..bf335bec8 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/stored/CrossSiteScriptingStored.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/stored/CrossSiteScriptingStored.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss.stored; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredCrossSiteScriptingVerifier.java b/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredCrossSiteScriptingVerifier.java index 6a51ab079..b111dae19 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredCrossSiteScriptingVerifier.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredCrossSiteScriptingVerifier.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss.stored; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredXssComments.java b/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredXssComments.java index 7d9c28fbc..278ab0fb6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredXssComments.java +++ b/src/main/java/org/owasp/webgoat/lessons/xss/stored/StoredXssComments.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss.stored; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignment.java b/src/main/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignment.java index 55b577259..bb59595a9 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignment.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.xxe; import static java.nio.charset.StandardCharsets.UTF_8; @@ -25,32 +29,6 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- */ @Slf4j @RestController @AssignmentHints({ diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/Comment.java b/src/main/java/org/owasp/webgoat/lessons/xxe/Comment.java index 12b7516b5..9403b847e 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/Comment.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/Comment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import jakarta.xml.bind.annotation.XmlRootElement; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsCache.java b/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsCache.java index c78ad59dd..98f62b39d 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsCache.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsCache.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import jakarta.xml.bind.JAXBContext; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsEndpoint.java b/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsEndpoint.java index 12ede306b..e6a183bf6 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsEndpoint.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/CommentsEndpoint.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import java.util.Collection; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignment.java b/src/main/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignment.java index 4f5ed172e..217a35ce3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignment.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignment.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import static java.util.Optional.empty; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/Ping.java b/src/main/java/org/owasp/webgoat/lessons/xxe/Ping.java index 2f31c99d1..5e8542df3 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/Ping.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/Ping.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import java.io.File; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/SimpleXXE.java b/src/main/java/org/owasp/webgoat/lessons/xxe/SimpleXXE.java index 5c28d69ee..ee861d160 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/SimpleXXE.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/SimpleXXE.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import static org.owasp.webgoat.container.assignments.AttackResultBuilder.failed; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/User.java b/src/main/java/org/owasp/webgoat/lessons/xxe/User.java index bca81e474..e1602b357 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/User.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/User.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import javax.xml.bind.annotation.XmlRootElement; diff --git a/src/main/java/org/owasp/webgoat/lessons/xxe/XXE.java b/src/main/java/org/owasp/webgoat/lessons/xxe/XXE.java index 0a69d4c15..2c0953420 100644 --- a/src/main/java/org/owasp/webgoat/lessons/xxe/XXE.java +++ b/src/main/java/org/owasp/webgoat/lessons/xxe/XXE.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import org.owasp.webgoat.container.lessons.Category; diff --git a/src/main/java/org/owasp/webgoat/server/ParentConfig.java b/src/main/java/org/owasp/webgoat/server/ParentConfig.java index b089df1cc..af67eeefd 100644 --- a/src/main/java/org/owasp/webgoat/server/ParentConfig.java +++ b/src/main/java/org/owasp/webgoat/server/ParentConfig.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.server; import org.springframework.context.annotation.Configuration; diff --git a/src/main/java/org/owasp/webgoat/server/StartWebGoat.java b/src/main/java/org/owasp/webgoat/server/StartWebGoat.java index 57e088d0a..ce6f61a14 100644 --- a/src/main/java/org/owasp/webgoat/server/StartWebGoat.java +++ b/src/main/java/org/owasp/webgoat/server/StartWebGoat.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.server; import lombok.extern.slf4j.Slf4j; diff --git a/src/main/java/org/owasp/webgoat/webwolf/FileServer.java b/src/main/java/org/owasp/webgoat/webwolf/FileServer.java index 58924e5d6..d3e3cff0b 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/FileServer.java +++ b/src/main/java/org/owasp/webgoat/webwolf/FileServer.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf; import static java.util.Comparator.comparing; diff --git a/src/main/java/org/owasp/webgoat/webwolf/MvcConfiguration.java b/src/main/java/org/owasp/webgoat/webwolf/MvcConfiguration.java index c026ae559..960f8fef1 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/MvcConfiguration.java +++ b/src/main/java/org/owasp/webgoat/webwolf/MvcConfiguration.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf; import jakarta.annotation.PostConstruct; diff --git a/src/main/java/org/owasp/webgoat/webwolf/WebSecurityConfig.java b/src/main/java/org/owasp/webgoat/webwolf/WebSecurityConfig.java index 7be7839e5..cc34caec6 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/WebSecurityConfig.java +++ b/src/main/java/org/owasp/webgoat/webwolf/WebSecurityConfig.java @@ -1,23 +1,6 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.webwolf; diff --git a/src/main/java/org/owasp/webgoat/webwolf/WebWolf.java b/src/main/java/org/owasp/webgoat/webwolf/WebWolf.java index 5c49a6326..333830042 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/WebWolf.java +++ b/src/main/java/org/owasp/webgoat/webwolf/WebWolf.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf; import org.owasp.webgoat.webwolf.requests.WebWolfTraceRepository; diff --git a/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTController.java b/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTController.java index 7d7ab61ba..c023a0f59 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTController.java +++ b/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTController.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.webwolf.jwt; import static org.springframework.http.MediaType.APPLICATION_FORM_URLENCODED_VALUE; diff --git a/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTToken.java b/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTToken.java index 0b7088fde..e97c843c9 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTToken.java +++ b/src/main/java/org/owasp/webgoat/webwolf/jwt/JWTToken.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.webwolf.jwt; import static java.nio.charset.StandardCharsets.UTF_8; diff --git a/src/main/java/org/owasp/webgoat/webwolf/mailbox/Email.java b/src/main/java/org/owasp/webgoat/webwolf/mailbox/Email.java index dac61e427..3465a9b38 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/mailbox/Email.java +++ b/src/main/java/org/owasp/webgoat/webwolf/mailbox/Email.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.mailbox; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxController.java b/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxController.java index 5b4003c38..271c8eb4b 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxController.java +++ b/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxController.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.mailbox; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepository.java b/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepository.java index b1979ada8..8c6ee8b67 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepository.java +++ b/src/main/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepository.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.mailbox; import java.util.List; diff --git a/src/main/java/org/owasp/webgoat/webwolf/requests/LandingPage.java b/src/main/java/org/owasp/webgoat/webwolf/requests/LandingPage.java index 7bdcc1006..e243daf31 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/requests/LandingPage.java +++ b/src/main/java/org/owasp/webgoat/webwolf/requests/LandingPage.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.requests; import jakarta.servlet.http.HttpServletRequest; diff --git a/src/main/java/org/owasp/webgoat/webwolf/requests/Requests.java b/src/main/java/org/owasp/webgoat/webwolf/requests/Requests.java index 2f8ced63d..3ae7d035d 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/requests/Requests.java +++ b/src/main/java/org/owasp/webgoat/webwolf/requests/Requests.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.requests; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/src/main/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepository.java b/src/main/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepository.java index b1d8828c8..b8cd57563 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepository.java +++ b/src/main/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepository.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.requests; import static org.owasp.webgoat.webwolf.requests.WebWolfTraceRepository.Exclusion.contains; diff --git a/src/main/java/org/owasp/webgoat/webwolf/user/UserRepository.java b/src/main/java/org/owasp/webgoat/webwolf/user/UserRepository.java index 7d6f7ad8a..72fbcaee1 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/user/UserRepository.java +++ b/src/main/java/org/owasp/webgoat/webwolf/user/UserRepository.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.user; import org.springframework.data.jpa.repository.JpaRepository; diff --git a/src/main/java/org/owasp/webgoat/webwolf/user/UserService.java b/src/main/java/org/owasp/webgoat/webwolf/user/UserService.java index dd7a2ee89..0ff96226f 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/user/UserService.java +++ b/src/main/java/org/owasp/webgoat/webwolf/user/UserService.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.user; import org.springframework.security.core.userdetails.UserDetailsService; diff --git a/src/main/java/org/owasp/webgoat/webwolf/user/WebWolfUser.java b/src/main/java/org/owasp/webgoat/webwolf/user/WebWolfUser.java index f02351a60..cb36115d2 100644 --- a/src/main/java/org/owasp/webgoat/webwolf/user/WebWolfUser.java +++ b/src/main/java/org/owasp/webgoat/webwolf/user/WebWolfUser.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.user; import jakarta.persistence.Entity; diff --git a/src/main/resources/i18n/messages.properties b/src/main/resources/i18n/messages.properties index 08f691a9f..1fafba502 100644 --- a/src/main/resources/i18n/messages.properties +++ b/src/main/resources/i18n/messages.properties @@ -1,28 +1,3 @@ -# -# This file is part of WebGoat, an Open Web Application Security Project utility. For details, -# please see http://www.owasp.org/ -#
-# Copyright (c) 2002 - 2017 Bruce Mayhew -#
-# This program is free software; you can redistribute it and/or modify it under the terms of the -# GNU General Public License as published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#
-# You should have received a copy of the GNU General Public License along with this program; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -#
-# Getting Source ============== -#
-# Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software -# projects. -#
-# - lesson.completed=Congratulations. You have successfully completed this lesson. assignment.solved=Congratulations. You have successfully completed the assignment. assignment.not.solved=Sorry the solution is not correct, please try again. diff --git a/src/main/resources/i18n/messages_de.properties b/src/main/resources/i18n/messages_de.properties index 21b33cad5..7e485acdd 100644 --- a/src/main/resources/i18n/messages_de.properties +++ b/src/main/resources/i18n/messages_de.properties @@ -1,28 +1,3 @@ -# -# This file is part of WebGoat, an Open Web Application Security Project utility. For details, -# please see http://www.owasp.org/ -#
-# Copyright (c) 2002 - 2017 Bruce Mayhew -#
-# This program is free software; you can redistribute it and/or modify it under the terms of the -# GNU General Public License as published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#
-# You should have received a copy of the GNU General Public License along with this program; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -#
-# Getting Source ============== -#
-# Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software -# projects. -#
-# - #General lesson.completed=Herzlichen Gl\u00fcckwunsch! Sie haben diese Lektion erfolgreich abgeschlossen. assignment.solved=Herzlichen Gl\u00fcckwunsch! Sie haben diesen Auftrag erfolgreich abgeschlossen. diff --git a/src/main/resources/i18n/messages_fr.properties b/src/main/resources/i18n/messages_fr.properties index 737c207fc..ff208483a 100644 --- a/src/main/resources/i18n/messages_fr.properties +++ b/src/main/resources/i18n/messages_fr.properties @@ -1,28 +1,3 @@ -# -# This file is part of WebGoat, an Open Web Application Security Project utility. For details, -# please see http://www.owasp.org/ -#
-# Copyright (c) 2002 - 2017 Bruce Mayhew -#
-# This program is free software; you can redistribute it and/or modify it under the terms of the -# GNU General Public License as published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#
-# You should have received a copy of the GNU General Public License along with this program; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -#
-# Getting Source ============== -#
-# Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software -# projects. -#
-# - #General lesson.completed=F\u00e9licitations. Vous avez termin\u00e9 cette le\u00e7on avec succ\u00e9s. RestartLesson=Recommencer cette le\u00e7on diff --git a/src/main/resources/i18n/messages_nl.properties b/src/main/resources/i18n/messages_nl.properties index 85c78181b..cc512ef39 100644 --- a/src/main/resources/i18n/messages_nl.properties +++ b/src/main/resources/i18n/messages_nl.properties @@ -1,27 +1,3 @@ -# -# This file is part of WebGoat, an Open Web Application Security Project utility. For details, -# please see http://www.owasp.org/ -#
-# Copyright (c) 2002 - 2017 Bruce Mayhew -#
-# This program is free software; you can redistribute it and/or modify it under the terms of the -# GNU General Public License as published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#
-# You should have received a copy of the GNU General Public License along with this program; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -#
-# Getting Source ============== -#
-# Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software -# projects. -#
-# lesson.completed=Gefeliciteerd, je hebt deze les succesvol afgerond. assignment.solved=Gefeliciteerd, je hebt deze opdracht succesvol afgerond. assignment.not.solved=Sorry de oplossing is niet correct, probeer het nog eens. diff --git a/src/main/resources/lessons/pathtraversal/i18n/WebGoatLabels.properties b/src/main/resources/lessons/pathtraversal/i18n/WebGoatLabels.properties index 1630275ce..799da7ca4 100644 --- a/src/main/resources/lessons/pathtraversal/i18n/WebGoatLabels.properties +++ b/src/main/resources/lessons/pathtraversal/i18n/WebGoatLabels.properties @@ -1,27 +1,3 @@ -# -# This file is part of WebGoat, an Open Web Application Security Project utility. For details, -# please see http://www.owasp.org/ -#
-# Copyright (c) 2002 - 2017 Bruce Mayhew -#
-# This program is free software; you can redistribute it and/or modify it under the terms of the -# GNU General Public License as published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#
-# You should have received a copy of the GNU General Public License along with this program; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -#
-# Getting Source ============== -#
-# Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software -# projects. -#
-# path-traversal-title=Path traversal path-traversal-profile-updated=Profile has been updated, your image is available at: {0}" path-traversal-profile-empty-file=File appears to be empty please upload a non empty file diff --git a/src/main/resources/lessons/xxe/i18n/WebGoatLabels.properties b/src/main/resources/lessons/xxe/i18n/WebGoatLabels.properties index 86880c581..dab7d13af 100644 --- a/src/main/resources/lessons/xxe/i18n/WebGoatLabels.properties +++ b/src/main/resources/lessons/xxe/i18n/WebGoatLabels.properties @@ -1,27 +1,3 @@ -# -# This file is part of WebGoat, an Open Web Application Security Project utility. For details, -# please see http://www.owasp.org/ -#
-# Copyright (c) 2002 - 2017 Bruce Mayhew -#
-# This program is free software; you can redistribute it and/or modify it under the terms of the -# GNU General Public License as published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -#
-# You should have received a copy of the GNU General Public License along with this program; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -#
-# Getting Source ============== -#
-# Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software -# projects. -#
-# xxe.title=XXE xxe.simple.output=Welcome {0} you can now login to our website xxe.content.type.feedback.json=You are posting JSON which does not work with a XXE diff --git a/src/test/java/org/owasp/webgoat/WithWebGoatUser.java b/src/test/java/org/owasp/webgoat/WithWebGoatUser.java index 4981ca4a3..e1cb997f7 100644 --- a/src/test/java/org/owasp/webgoat/WithWebGoatUser.java +++ b/src/test/java/org/owasp/webgoat/WithWebGoatUser.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2024 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat; import java.lang.annotation.Retention; diff --git a/src/test/java/org/owasp/webgoat/container/WebGoatApplication.java b/src/test/java/org/owasp/webgoat/container/WebGoatApplication.java index 49e287a30..c1c6550ea 100644 --- a/src/test/java/org/owasp/webgoat/container/WebGoatApplication.java +++ b/src/test/java/org/owasp/webgoat/container/WebGoatApplication.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/test/java/org/owasp/webgoat/container/plugins/LessonTest.java b/src/test/java/org/owasp/webgoat/container/plugins/LessonTest.java index a9d03074f..ff647e5a9 100644 --- a/src/test/java/org/owasp/webgoat/container/plugins/LessonTest.java +++ b/src/test/java/org/owasp/webgoat/container/plugins/LessonTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.plugins; import static org.mockito.Mockito.when; diff --git a/src/test/java/org/owasp/webgoat/container/report/ReportCardControllerTest.java b/src/test/java/org/owasp/webgoat/container/report/ReportCardControllerTest.java index 83eb7aac5..906d5b527 100644 --- a/src/test/java/org/owasp/webgoat/container/report/ReportCardControllerTest.java +++ b/src/test/java/org/owasp/webgoat/container/report/ReportCardControllerTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.report; import static org.hamcrest.CoreMatchers.is; diff --git a/src/test/java/org/owasp/webgoat/container/service/HintServiceTest.java b/src/test/java/org/owasp/webgoat/container/service/HintServiceTest.java index a803e8427..50d9e377f 100644 --- a/src/test/java/org/owasp/webgoat/container/service/HintServiceTest.java +++ b/src/test/java/org/owasp/webgoat/container/service/HintServiceTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.service; import static org.owasp.webgoat.container.service.HintService.URL_HINTS_MVC; diff --git a/src/test/java/org/owasp/webgoat/container/service/LessonMenuServiceTest.java b/src/test/java/org/owasp/webgoat/container/service/LessonMenuServiceTest.java index c0f63d78c..1e91de72e 100644 --- a/src/test/java/org/owasp/webgoat/container/service/LessonMenuServiceTest.java +++ b/src/test/java/org/owasp/webgoat/container/service/LessonMenuServiceTest.java @@ -1,23 +1,6 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ package org.owasp.webgoat.container.service; diff --git a/src/test/java/org/owasp/webgoat/container/service/LessonProgressServiceTest.java b/src/test/java/org/owasp/webgoat/container/service/LessonProgressServiceTest.java index fe17294f0..6cdaf2d19 100644 --- a/src/test/java/org/owasp/webgoat/container/service/LessonProgressServiceTest.java +++ b/src/test/java/org/owasp/webgoat/container/service/LessonProgressServiceTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.service; import static org.hamcrest.CoreMatchers.is; @@ -25,36 +29,6 @@ import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.setup.MockMvcBuilders; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author nbaars - * @version $Id: $Id - * @since November 25, 2016 - */ @ExtendWith(MockitoExtension.class) class LessonProgressServiceTest { diff --git a/src/test/java/org/owasp/webgoat/container/session/LabelDebuggerTest.java b/src/test/java/org/owasp/webgoat/container/session/LabelDebuggerTest.java index 8d2d02de5..c1a8d1e99 100644 --- a/src/test/java/org/owasp/webgoat/container/session/LabelDebuggerTest.java +++ b/src/test/java/org/owasp/webgoat/container/session/LabelDebuggerTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2016 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.session; import org.assertj.core.api.Assertions; diff --git a/src/test/java/org/owasp/webgoat/container/session/LessonTrackerTest.java b/src/test/java/org/owasp/webgoat/container/session/LessonTrackerTest.java index 28d28ef3d..f6a3387c6 100644 --- a/src/test/java/org/owasp/webgoat/container/session/LessonTrackerTest.java +++ b/src/test/java/org/owasp/webgoat/container/session/LessonTrackerTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.session; import static org.assertj.core.api.Assertions.assertThat; @@ -14,36 +18,6 @@ import org.owasp.webgoat.container.lessons.Lesson; import org.owasp.webgoat.container.users.AssignmentProgress; import org.owasp.webgoat.container.users.LessonProgress; -/** - * ************************************************************************************************ - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - * - *
Copyright (c) 2002 - 2014 Bruce Mayhew - * - *
This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - *
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - *
You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - *
Getting Source ============== - * - *
Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository - * for free software projects. - * - *
- * - * @author nbaars - * @version $Id: $Id - * @since November 25, 2016 - */ class LessonTrackerTest { @Test diff --git a/src/test/java/org/owasp/webgoat/container/users/UserRepositoryTest.java b/src/test/java/org/owasp/webgoat/container/users/UserRepositoryTest.java index e8ef4b8ab..9f491a850 100644 --- a/src/test/java/org/owasp/webgoat/container/users/UserRepositoryTest.java +++ b/src/test/java/org/owasp/webgoat/container/users/UserRepositoryTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import org.assertj.core.api.Assertions; diff --git a/src/test/java/org/owasp/webgoat/container/users/UserServiceTest.java b/src/test/java/org/owasp/webgoat/container/users/UserServiceTest.java index 90ca2b64e..c94963a85 100644 --- a/src/test/java/org/owasp/webgoat/container/users/UserServiceTest.java +++ b/src/test/java/org/owasp/webgoat/container/users/UserServiceTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import static org.mockito.ArgumentMatchers.any; diff --git a/src/test/java/org/owasp/webgoat/container/users/UserTrackerRepositoryTest.java b/src/test/java/org/owasp/webgoat/container/users/UserTrackerRepositoryTest.java index 53cd9dd2e..ab8f4f674 100644 --- a/src/test/java/org/owasp/webgoat/container/users/UserTrackerRepositoryTest.java +++ b/src/test/java/org/owasp/webgoat/container/users/UserTrackerRepositoryTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import java.util.List; diff --git a/src/test/java/org/owasp/webgoat/container/users/UserValidatorTest.java b/src/test/java/org/owasp/webgoat/container/users/UserValidatorTest.java index ec5957fa0..0c670bca1 100644 --- a/src/test/java/org/owasp/webgoat/container/users/UserValidatorTest.java +++ b/src/test/java/org/owasp/webgoat/container/users/UserValidatorTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.container.users; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/authbypass/BypassVerificationTest.java b/src/test/java/org/owasp/webgoat/lessons/authbypass/BypassVerificationTest.java index edd8f58a8..ec7ccf804 100644 --- a/src/test/java/org/owasp/webgoat/lessons/authbypass/BypassVerificationTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/authbypass/BypassVerificationTest.java @@ -1,28 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, - * please see http://www.owasp.org/ - *
- * Copyright (c) 2002 - 2017 Bruce Mayhew - *
- * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - *
- * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - *
- * Getting Source ============== - *
- * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software - * projects. - *
+ * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.authbypass; import org.junit.jupiter.api.Test; diff --git a/src/test/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidationTest.java b/src/test/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidationTest.java index 8eddb4717..41c5fda8e 100644 --- a/src/test/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidationTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/bypassrestrictions/BypassRestrictionsFrontendValidationTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.bypassrestrictions; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/challenges/Assignment1Test.java b/src/test/java/org/owasp/webgoat/lessons/challenges/Assignment1Test.java index c792ffc58..e70003cc9 100644 --- a/src/test/java/org/owasp/webgoat/lessons/challenges/Assignment1Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/challenges/Assignment1Test.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7Test.java b/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7Test.java index 8a13df1bb..5167aa272 100644 --- a/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/Assignment7Test.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges.challenge7; import static org.hamcrest.Matchers.equalTo; diff --git a/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5Test.java b/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5Test.java index 512006b98..c8f271fa3 100644 --- a/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/challenges/challenge7/MD5Test.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.challenges.challenge7; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevToolsTest.java b/src/test/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevToolsTest.java index e0d1e5f9c..0359c622b 100644 --- a/src/test/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevToolsTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/chromedevtools/ChromeDevToolsTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.chromedevtools; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/cia/CIAQuizTest.java b/src/test/java/org/owasp/webgoat/lessons/cia/CIAQuizTest.java index 4f56116b9..ce238e043 100644 --- a/src/test/java/org/owasp/webgoat/lessons/cia/CIAQuizTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/cia/CIAQuizTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.cia; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignmentTest.java index 22c814428..17aa042f8 100644 --- a/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringAssignmentTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.clientsidefiltering; import static org.owasp.webgoat.lessons.clientsidefiltering.ClientSideFilteringFreeAssignment.SUPER_COUPON_CODE; diff --git a/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignmentTest.java index 624c69a5d..cdf469154 100644 --- a/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ClientSideFilteringFreeAssignmentTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.clientsidefiltering; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpointTest.java index 6ba151b57..1a1ad75e7 100644 --- a/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/clientsidefiltering/ShopEndpointTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.clientsidefiltering; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/cryptography/CryptoUtilTest.java b/src/test/java/org/owasp/webgoat/lessons/cryptography/CryptoUtilTest.java index 20e8bc41c..d96b5d2d2 100644 --- a/src/test/java/org/owasp/webgoat/lessons/cryptography/CryptoUtilTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/cryptography/CryptoUtilTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.cryptography; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/csrf/CSRFFeedbackTest.java b/src/test/java/org/owasp/webgoat/lessons/csrf/CSRFFeedbackTest.java index 9ece5d3f8..a48d199e2 100644 --- a/src/test/java/org/owasp/webgoat/lessons/csrf/CSRFFeedbackTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/csrf/CSRFFeedbackTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.csrf; import static org.hamcrest.core.Is.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/deserialization/DeserializeTest.java b/src/test/java/org/owasp/webgoat/lessons/deserialization/DeserializeTest.java index 59e59e1f4..5d379d11e 100644 --- a/src/test/java/org/owasp/webgoat/lessons/deserialization/DeserializeTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/deserialization/DeserializeTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.deserialization; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignmentTest.java index 6c23013ed..89a8a5d87 100644 --- a/src/test/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/hijacksession/HijackSessionAssignmentTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession; import static org.hamcrest.Matchers.emptyString; diff --git a/src/test/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProviderTest.java b/src/test/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProviderTest.java index e99477627..aff989053 100644 --- a/src/test/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProviderTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/hijacksession/cas/HijackSessionAuthenticationProviderTest.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.hijacksession.cas; import static org.hamcrest.CoreMatchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequestTest.java b/src/test/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequestTest.java index 77a6ddf42..60c2f85c8 100644 --- a/src/test/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequestTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/httpproxies/HttpBasicsInterceptRequestTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.httpproxies; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpointTest.java index 46dc7b2d2..509cde24d 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTDecodeEndpointTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpointTest.java index 5abb6fdaf..650060862 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTRefreshEndpointTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpointTest.java index 54193e72d..f4938bc70 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTSecretKeyEndpointTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import static io.jsonwebtoken.SignatureAlgorithm.HS512; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpointTest.java index e5a8313b5..baa7f3545 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/JWTVotesEndpointTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/TokenTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/TokenTest.java index fe4d100d0..bad4b7f70 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/TokenTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/TokenTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.jwt; import io.jsonwebtoken.Claims; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpointTest.java index d4bd4ffb4..b4e4fbb1b 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderJKUEndpointTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2023 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt.claimmisuse; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; diff --git a/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpointTest.java b/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpointTest.java index 8aa157df1..83fd6993f 100644 --- a/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpointTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/jwt/claimmisuse/JWTHeaderKIDEndpointTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.jwt.claimmisuse; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/missingac/DisplayUserTest.java b/src/test/java/org/owasp/webgoat/lessons/missingac/DisplayUserTest.java index 75805dcca..ffad6d3d5 100644 --- a/src/test/java/org/owasp/webgoat/lessons/missingac/DisplayUserTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/missingac/DisplayUserTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.owasp.webgoat.lessons.missingac.MissingFunctionAC.PASSWORD_SALT_SIMPLE; diff --git a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenusTest.java b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenusTest.java index 01f381839..f9142742d 100644 --- a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenusTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACHiddenMenusTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsersTest.java b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsersTest.java index a5af31297..a8879cecb 100644 --- a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsersTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACUsersTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdminTest.java b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdminTest.java index 2b1ed4a7a..fd5a4ebd4 100644 --- a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdminTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionACYourHashAdminTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.missingac; import static org.owasp.webgoat.lessons.missingac.MissingFunctionAC.PASSWORD_SALT_ADMIN; diff --git a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionYourHashTest.java b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionYourHashTest.java index a8cc54fda..e66b7e654 100644 --- a/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionYourHashTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/missingac/MissingFunctionYourHashTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.missingac; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentTest.java index 6d07a9118..7ef8589b7 100644 --- a/src/test/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/passwordreset/ResetLinkAssignmentTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2023 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.passwordreset; import static org.owasp.webgoat.lessons.passwordreset.ResetLinkAssignment.TOM_EMAIL; diff --git a/src/test/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignmentTest.java index 26ce4ed23..62444e4f8 100644 --- a/src/test/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/passwordreset/SecurityQuestionAssignmentTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.passwordreset; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFixTest.java b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFixTest.java index 7e58cf2e1..54817006c 100644 --- a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFixTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadFixTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInputTest.java b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInputTest.java index 8d1fb3d3b..7b953f1d1 100644 --- a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInputTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRemoveUserInputTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrievalTest.java b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrievalTest.java index 121d4c0b2..e91ab4b99 100644 --- a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrievalTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadRetrievalTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.hamcrest.CoreMatchers.equalTo; diff --git a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadTest.java b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadTest.java index 8298b5e98..57b24d9a7 100644 --- a/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/pathtraversal/ProfileUploadTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.pathtraversal; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignmentTest.java index 9e0302af6..427662c69 100644 --- a/src/test/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/spoofcookie/SpoofCookieAssignmentTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.spoofcookie; import static org.hamcrest.Matchers.emptyString; diff --git a/src/test/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDecTest.java b/src/test/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDecTest.java index a97bb7ddc..5b06d1974 100644 --- a/src/test/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDecTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/spoofcookie/encoders/EncDecTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2021 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.spoofcookie.encoders; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10Test.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10Test.java index 329c28875..20722fa05 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson10Test.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hamcrest.CoreMatchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2Test.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2Test.java index 177fbb79a..6a32623ed 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson2Test.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5Test.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5Test.java index 256957a99..51df59f2e 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5Test.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5aTest.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5aTest.java index 23ead11be..cad61839f 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5aTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5aTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hamcrest.CoreMatchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6aTest.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6aTest.java index d28b47b53..e81b21c09 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6aTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6aTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hamcrest.Matchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6bTest.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6bTest.java index 6e6921449..c3cefaada 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6bTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson6bTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8Test.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8Test.java index 0152e106f..2b273cda2 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson8Test.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hamcrest.CoreMatchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9Test.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9Test.java index 9cac06a8c..d32df63ad 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson9Test.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.sqlinjection.introduction; import static org.hamcrest.CoreMatchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13Test.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13Test.java index 9155c7d65..6de95f0dd 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13Test.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywordsTest.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywordsTest.java index 2442ccbfa..597a10a83 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywordsTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationOnKeywordsTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.hamcrest.Matchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationTest.java b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationTest.java index 13f8f06e8..bc2f27c09 100644 --- a/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlOnlyInputValidationTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.sqlinjection.mitigation; import static org.hamcrest.Matchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest1.java b/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest1.java index 2954d1a58..31b920bef 100644 --- a/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest1.java +++ b/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest1.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.ssrf; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest2.java b/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest2.java index 37521d5b1..bac786009 100644 --- a/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest2.java +++ b/src/test/java/org/owasp/webgoat/lessons/ssrf/SSRFTest2.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.ssrf; import static org.hamcrest.Matchers.is; diff --git a/src/test/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLessonTest.java b/src/test/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLessonTest.java index da802d98b..e9daf90d1 100644 --- a/src/test/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLessonTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/vulnerablecomponents/VulnerableComponentsLessonTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.vulnerablecomponents; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1Test.java b/src/test/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1Test.java index ea8121914..fc12beebf 100644 --- a/src/test/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1Test.java +++ b/src/test/java/org/owasp/webgoat/lessons/xss/CrossSiteScriptingLesson1Test.java @@ -1,26 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2021 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source - * ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingTest.java b/src/test/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingTest.java index 253460917..65e09eac0 100644 --- a/src/test/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/xss/DOMCrossSiteScriptingTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/xss/StoredXssCommentsTest.java b/src/test/java/org/owasp/webgoat/lessons/xss/StoredXssCommentsTest.java index 23de7d082..b185c37f7 100644 --- a/src/test/java/org/owasp/webgoat/lessons/xss/StoredXssCommentsTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/xss/StoredXssCommentsTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2014 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xss; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignmentTest.java index 2c6f92a6f..52f684b90 100644 --- a/src/test/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/xxe/BlindSendFileAssignmentTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.lessons.xxe; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; diff --git a/src/test/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignmentTest.java b/src/test/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignmentTest.java index 79db2fb6e..a087951d1 100644 --- a/src/test/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignmentTest.java +++ b/src/test/java/org/owasp/webgoat/lessons/xxe/ContentTypeAssignmentTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; diff --git a/src/test/java/org/owasp/webgoat/lessons/xxe/SimpleXXETest.java b/src/test/java/org/owasp/webgoat/lessons/xxe/SimpleXXETest.java index 2283587fd..6da26ddcf 100644 --- a/src/test/java/org/owasp/webgoat/lessons/xxe/SimpleXXETest.java +++ b/src/test/java/org/owasp/webgoat/lessons/xxe/SimpleXXETest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2017 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.lessons.xxe; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; diff --git a/src/test/java/org/owasp/webgoat/webwolf/WebWolfApplication.java b/src/test/java/org/owasp/webgoat/webwolf/WebWolfApplication.java index 3de16b69b..6d055abf4 100644 --- a/src/test/java/org/owasp/webgoat/webwolf/WebWolfApplication.java +++ b/src/test/java/org/owasp/webgoat/webwolf/WebWolfApplication.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2022 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.webwolf; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/test/java/org/owasp/webgoat/webwolf/jwt/JWTTokenTest.java b/src/test/java/org/owasp/webgoat/webwolf/jwt/JWTTokenTest.java index 977fa0cb5..6de8bab67 100644 --- a/src/test/java/org/owasp/webgoat/webwolf/jwt/JWTTokenTest.java +++ b/src/test/java/org/owasp/webgoat/webwolf/jwt/JWTTokenTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2020 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.webwolf.jwt; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxControllerTest.java b/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxControllerTest.java index 0e0e01fdd..a6dacf24b 100644 --- a/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxControllerTest.java +++ b/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxControllerTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.mailbox; import static org.hamcrest.CoreMatchers.containsString; diff --git a/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepositoryTest.java b/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepositoryTest.java index 8d5d7f033..cd7f8ad0d 100644 --- a/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepositoryTest.java +++ b/src/test/java/org/owasp/webgoat/webwolf/mailbox/MailboxRepositoryTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2018 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.mailbox; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepositoryTest.java b/src/test/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepositoryTest.java index 7999d14e1..fa684aae8 100644 --- a/src/test/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepositoryTest.java +++ b/src/test/java/org/owasp/webgoat/webwolf/requests/WebWolfTraceRepositoryTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: Copyright © 2023 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later + */ package org.owasp.webgoat.webwolf.requests; import static org.mockito.Mockito.mock; diff --git a/src/test/java/org/owasp/webgoat/webwolf/user/UserServiceTest.java b/src/test/java/org/owasp/webgoat/webwolf/user/UserServiceTest.java index 0cdb800f6..7223acdf9 100644 --- a/src/test/java/org/owasp/webgoat/webwolf/user/UserServiceTest.java +++ b/src/test/java/org/owasp/webgoat/webwolf/user/UserServiceTest.java @@ -1,25 +1,7 @@ /* - * This file is part of WebGoat, an Open Web Application Security Project utility. For details, please see http://www.owasp.org/ - * - * Copyright (c) 2002 - 2019 Bruce Mayhew - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if - * not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Getting Source ============== - * - * Source for this application is maintained at https://github.com/WebGoat/WebGoat, a repository for free software projects. + * SPDX-FileCopyrightText: Copyright © 2019 WebGoat authors + * SPDX-License-Identifier: GPL-2.0-or-later */ - package org.owasp.webgoat.webwolf.user; import static org.assertj.core.api.AssertionsForClassTypes.assertThatExceptionOfType;