Skip to content

Commit 70dafd1

Browse files
committed
fix vul & update single-nginx.yml
1 parent 97a9a3f commit 70dafd1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+13
-158
lines changed

CTFd/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ def reset_password(data=None):
159159
def register():
160160
errors = get_errors()
161161
if request.method == "POST":
162-
name = request.form["name"]
163-
email_address = request.form["email"]
164-
password = request.form["password"]
162+
name = request.form.get("name","").strip()
163+
email_address = request.form.get("email","").strip().lower()
164+
password = request.form.get("password","").strip()
165165

166166
name_len = len(name) == 0
167167
names = Users.query.add_columns("name", "id").filter_by(name=name).first()

CTFd/plugins/ctfd_glowworm/vulns/web_yunnan_simple/html/a.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

CTFd/plugins/ctfd_glowworm/vulns/web_yunnan_simple/html/index.php

Lines changed: 0 additions & 141 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

nginx/conf/vhosts/default.conf renamed to nginx/nginx/conf/vhosts/default.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
server {
22
listen 80;
3-
server_name localhost;
3+
server_name h1ve.dao.ge;
44

55
root /usr/share/nginx/html;
66
index index.html index.htm index.php;
77
include /opt/verynginx/nginx_conf/in_server_block.conf;
88

99
location / {
10-
proxy_pass http://main:8000;
10+
proxy_pass http://main:4000;
1111

1212
#settings
1313
proxy_set_header Host $host;
@@ -17,7 +17,7 @@ server {
1717
}
1818

1919
location /events {
20-
proxy_pass http://main:8000/events;
20+
proxy_pass http://main:4000/events;
2121
proxy_set_header Connection '';
2222
proxy_http_version 1.1;
2323
chunked_transfer_encoding off;

0 commit comments

Comments
 (0)