GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — improved language selector and add defaults for different languages · WebGoat/WebGoat@8996466

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/main
    • java/org/owasp/webgoat/container
      • i18n
        • PluginMessages.java
      • lessons
        • Category.java
      • service
        • LabelService.java
    • resources
      • i18n
        • messages.properties
        • messages_de.properties
        • messages_fr.properties
        • messages_nl.properties
      • lessons
        • authbypass/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • bypassrestrictions/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • challenges/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • chromedevtools/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • cia/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • clientsidefiltering/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • cryptography/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • csrf/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • deserialization/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • hijacksession/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • htmltampering/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • httpbasics/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • httpproxies/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • idor/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • insecurelogin/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • jwt/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • lessontemplate/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • logging/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • missingac/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • openredirect/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • passwordreset/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • pathtraversal/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • securepasswords/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
        • securitymisconfiguration/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • spoofcookie/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • sqlinjection/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • ssrf/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • vulnerablecomponents/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • webgoatintroduction/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • webwolfintroduction/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • xss/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
        • xxe/i18n
          • WebGoatLabels_de.properties
          • WebGoatLabels_fr.properties
          • WebGoatLabels_nl.properties
      • webgoat/static/js
        • goatApp/view
          • MenuView.js
        • main.js

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/main/java/org/owasp/webgoat/container/i18n/PluginMessages.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/owasp/webgoat/container/i18n/PluginMessages.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ protected PropertiesHolder refreshProperties(String filename, PropertiesHolder p
3131
Properties properties = new Properties();
3232
long lastModified = System.currentTimeMillis();
3333

34+
// filename is passed by Spring as e.g. "WebGoatLabels" or "WebGoatLabels_nl".
35+
// Strip any path prefix so we get just the bare file basename to use in the
36+
// classpath glob, preserving the locale suffix (e.g. "_nl", "_de", "_fr").
37+
String fileBasename =
38+
filename.contains("/") ? filename.substring(filename.lastIndexOf('/') + 1) : filename;
39+
3440
try {
3541
var resources =
3642
resourcePatternResolver.getResources(
37-
"classpath:/lessons/**/i18n" + "/WebGoatLabels" + PROPERTIES_SUFFIX);
43+
"classpath:/lessons/**/i18n/" + fileBasename + PROPERTIES_SUFFIX);
3844
for (var resource : resources) {
3945
String sourcePath = resource.getURI().toString().replace(PROPERTIES_SUFFIX, "");
4046
PropertiesHolder holder = super.refreshProperties(sourcePath, propHolder);
Collapse file

‎src/main/java/org/owasp/webgoat/container/lessons/Category.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/owasp/webgoat/container/lessons/Category.java
+13-13Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
import lombok.Getter;
88

99
public enum Category {
10-
INTRODUCTION("Introduction"),
11-
GENERAL("General"),
10+
INTRODUCTION("category.introduction"),
11+
GENERAL("category.general"),
1212

13-
A1("(A1) Broken Access Control"),
14-
A2("(A2) Cryptographic Failures"),
15-
A3("(A3) Injection"),
13+
A1("category.a1"),
14+
A2("category.a2"),
15+
A3("category.a3"),
1616

17-
A5("(A5) Security Misconfiguration"),
18-
A6("(A6) Vuln & Outdated Components"),
19-
A7("(A7) Identity & Auth Failure"),
20-
A8("(A8) Software & Data Integrity"),
21-
A9("(A9) Security Logging Failures"),
22-
A10("(A10) Server-side Request Forgery"),
17+
A5("category.a5"),
18+
A6("category.a6"),
19+
A7("category.a7"),
20+
A8("category.a8"),
21+
A9("category.a9"),
22+
A10("category.a10"),
2323

24-
CLIENT_SIDE("Client side"),
24+
CLIENT_SIDE("category.client.side"),
2525

26-
CHALLENGE("Challenges");
26+
CHALLENGE("category.challenge");
2727

2828
@Getter private String name;
2929

Collapse file

‎src/main/java/org/owasp/webgoat/container/service/LabelService.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/owasp/webgoat/container/service/LabelService.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import lombok.extern.slf4j.Slf4j;
1010
import org.owasp.webgoat.container.i18n.Messages;
1111
import org.owasp.webgoat.container.i18n.PluginMessages;
12-
import org.springframework.http.HttpStatus;
12+
import org.springframework.http.CacheControl;
1313
import org.springframework.http.MediaType;
1414
import org.springframework.http.ResponseEntity;
1515
import org.springframework.web.bind.annotation.GetMapping;
@@ -34,6 +34,8 @@ public ResponseEntity<Properties> fetchLabels() {
3434
var allProperties = new Properties();
3535
allProperties.putAll(messages.getMessages());
3636
allProperties.putAll(pluginMessages.getMessages());
37-
return new ResponseEntity<>(allProperties, HttpStatus.OK);
37+
return ResponseEntity.ok()
38+
.cacheControl(CacheControl.noStore())
39+
.body(allProperties);
3840
}
3941
}
Collapse file

‎src/main/resources/i18n/messages.properties‎

Copy file name to clipboardExpand all lines: src/main/resources/i18n/messages.properties
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ register.new=or register yourself as a new user
3030
sign.up=Sign up
3131
register.title=Register
3232
searchmenu=Search lesson
33+
category.introduction=Introduction
34+
category.general=General
35+
category.a1=(A1) Broken Access Control
36+
category.a2=(A2) Cryptographic Failures
37+
category.a3=(A3) Injection
38+
category.a5=(A5) Security Misconfiguration
39+
category.a6=(A6) Vuln & Outdated Components
40+
category.a7=(A7) Identity & Auth Failure
41+
category.a8=(A8) Software & Data Integrity
42+
category.a9=(A9) Security Logging Failures
43+
category.a10=(A10) Server-side Request Forgery
44+
category.client.side=Client side
45+
category.challenge=Challenges
3346
3447
3548
not.empty=This field is required.
Collapse file

‎src/main/resources/i18n/messages_de.properties‎

Copy file name to clipboardExpand all lines: src/main/resources/i18n/messages_de.properties
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@ password=Passwort
1212
password.confirm=Wiederhole Passwort
1313
sign.up=Anmelden
1414
register.title=Registrieren
15+
category.introduction=Einf\u00fchrung
16+
category.general=Allgemein
17+
category.a1=(A1) Fehlerhafte Zugriffskontrolle
18+
category.a2=(A2) Kryptografische Fehler
19+
category.a3=(A3) Einschleusung
20+
category.a5=(A5) Sicherheitsfehlkonfiguration
21+
category.a6=(A6) Veraltete Komponenten
22+
category.a7=(A7) Authentifizierungsfehler
23+
category.a8=(A8) Daten- und Softwareintegrit\u00e4t
24+
category.a9=(A9) Unzureichendes Logging
25+
category.a10=(A10) Serverseitige Anfragef\u00e4lschung
26+
category.client.side=Clientseitig
27+
category.challenge=Herausforderungen
Collapse file

‎src/main/resources/i18n/messages_fr.properties‎

Copy file name to clipboardExpand all lines: src/main/resources/i18n/messages_fr.properties
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,16 @@ SolutionVideos=Solution vid\u00e9os
44
ErrorGenerating=Error generating
55
InvalidData=Donn\u00e9e invalide
66
Go!=Allez le faire!
7+
category.introduction=Introduction
8+
category.general=G\u00e9n\u00e9ral
9+
category.a1=(A1) Contr\u00f4le d'acc\u00e8s d\u00e9faillant
10+
category.a2=(A2) D\u00e9faillances cryptographiques
11+
category.a3=(A3) Injection
12+
category.a5=(A5) Mauvaise configuration de s\u00e9curit\u00e9
13+
category.a6=(A6) Composants vuln\u00e9rables et obsol\u00e8tes
14+
category.a7=(A7) D\u00e9faillances d'authentification
15+
category.a8=(A8) Int\u00e9grit\u00e9 des logiciels et des donn\u00e9es
16+
category.a9=(A9) Journalisation insuffisante
17+
category.a10=(A10) Falsification de requ\u00eate c\u00f4t\u00e9 serveur
18+
category.client.side=C\u00f4t\u00e9 client
19+
category.challenge=D\u00e9fis
Collapse file

‎src/main/resources/i18n/messages_nl.properties‎

Copy file name to clipboardExpand all lines: src/main/resources/i18n/messages_nl.properties
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ lesson.overview=Overzicht les
2626
reset.lesson=Herstart les
2727
sign.in=Inloggen
2828
terms.agree=Ik ga akkoord met de voorwaarden
29+
category.introduction=Introductie
30+
category.general=Algemeen
31+
category.a1=(A1) Gebroken Toegangsbeheer
32+
category.a2=(A2) Cryptografische Fouten
33+
category.a3=(A3) Injectie
34+
category.a5=(A5) Beveiligingsfout
35+
category.a6=(A6) Kwetsbare & Verouderde Componenten
36+
category.a7=(A7) Identiteits- & Authenticatieproblemen
37+
category.a8=(A8) Software & Data-integriteit
38+
category.a9=(A9) Tekortkomingen in Logging
39+
category.a10=(A10) Serversijdige Request Vervalsing
40+
category.client.side=Client-kant
41+
category.challenge=Uitdagingen
2942
sign.up=Registreer
3043
register.title=Aanmelden als nieuwe gebruiker
3144
register.new=of aanmelden als nieuwe gebruiker
Collapse file

‎src/main/resources/lessons/authbypass/i18n/WebGoatLabels_de.properties‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auth-bypass.title=Authentifizierungsumgehung
Collapse file

‎src/main/resources/lessons/authbypass/i18n/WebGoatLabels_fr.properties‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auth-bypass.title=Contournement d'authentification
Collapse file

‎src/main/resources/lessons/authbypass/i18n/WebGoatLabels_nl.properties‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auth-bypass.title=Authenticatie omzeilen

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.