rechnersicherheitss2017's People
rechnersicherheitss2017's Issues
ushout issues
- assignment 2
- keine warning flags in der Makefile? -Wall würde man schon erwarten
- kein check auf root?
- memory disclosure in log file mangels \0 in buf in :77.
- das mit den Buffer-Größen ist stellenweise verwirrend.
- assignment 4
- kompiliert nicht: -std=c99 fehlt
- passwörter im klartext zu speichern ist jetzt nicht ganz "as secure as possible"
- in :57: user_data[i++] = token; buffer overflow, falls pw mehrere ":" enthält
- Vorsicht bei malloc(a*b), besser: calloc(a,b) (wegen int-overflows)
- in :134: buffer ist eigentlich nur 130 Zeichen lang (siehe :117)
- in :193: wenn string ohne \0 gesendet wird (z.B. BUFFER_SIZE lang) dann schreibt das eine 0 irgendwo hin -> buffer overflow
- analog :205
- ist der zugriff auf clients[i] irgendwie synchronisiert?
- werden clients auch wieder entfernt?
- nur 1 user unterstützt? (siehe :71)
- zu :76: schon mal geschaut was strcmp zurückgibt, wenn gleich? (->man page) Das würde erklären warum es immer klappt.
- FYI: clients_len ist immer 20, clients[i] dann auf 0 initialisiert -> deswegen so viele duplikate in stdout
- client_message wird nie gezeroed, das strlen führt also immer dazu dass die vorherige Nachricht mitgesendet wird (tip: probiert mal ctrl-d in nc)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.