r/codingbootcamp • u/michaelnovati • Sep 29 '23
Codesmith OSP code review: numerous "unbreak now" security vulnerabilities discovered after spending 5 minutes reviewing an "advanced security tool". Not the mid-level or senior engineering work it is claimed to be.
EDIT: Codesmith has initiated a big cleanup project to remove security issues across a number of projects, but people are not doing it properly. Ping me if you want some tips on how to clean this stuff up.... it happens and you'll be a better engineer if you know how to clean it up properly and whatever they are telling you to do right now (as of 9/29/2023) is not correct and there are numerous even worse security vulnerabilities still live in other projects. I have tried to notify people of ones I've found privately but I don't have the resources to contact everyone and prioritize my job.
I'm not going to share direct links because I don't want to pick on just this project or the people that made it. I circulated a draft of this post amongst a couple of Codesmith alumni to make sure they were ok with it as well.
What is the "OSP"? The OSP is the capstone project at Codesmith. You work in groups of 4-5 people, supervised by engineers. Codesmith claims it to be the key in making you a mid-level or senior engineer. It's the highlight of most alumni's resume and the main talking point in interviews.
I feel jerkish in posting about this widely instead of privately contacting the team that worked on it. But I've observed Codesmith's CEO, outcomes advisor, admissions staff, outcomes staff, social media posts, and alumni, all assure the public that Codesmith produces mid level and senior engineers capable of solving hard problems independently. I feel it is extremely important to balance that view.
I'm also going to over-emphasize that 1. this is all my person opinions, on my own time, and 2. this is not a criticism as Codesmith as a whole or a "take down post" so if you support or don't support Codesmith, please don't pile onto this post. This is a post evaluating a sample of the engineering projects produced by Codesmith and I would encourage others to look into the OSLabs projects and do their own evaluations.
For a bootcamp project, I think this is a super cool idea and great 3-4 week long group project! I LOVE IT. But if I'm applying my industry experience and judging it from the mid-level senior lens as the project is represented, I have concerns.
Context, This is an advanced security tool so I expected security to be considered seriously. I time-boxed the review to 5 minutes and 10 mins to write up this post, and another 10 mins editing it based on feedback from Codesmith alumni.
This is my high level code review:
- The website doesn't have proper SSL setup. Many links in the Readme go to "example.com" or "insert your name here"
- The .env file was checked in with ALL OF THE SECRETS AND KEYS for various 3rd party tools
- Username and password for cloud services checked into the repo in plain text. A bad actor could destroy the demo DB or use it for nefarious purposes
- Code has copied leftover files in it and WIP files that should be PRs and not checked in
- Contains several cases of commented out code with no explanation
- Authentication code console.logs important cookies for no reason, both a security issue and also bad practice to have personal developer debugging logging checked in.
- No authenticationt/token check on a deletion endpoint, which could let a bad action take out the entire DB.
- Several DB queries are doing inline string from user input so a bad actor could manipulate input to steal data or manipulate the database.
Final note, I read through random projects every so often and this was the only one I read today, maybe it's an edge case, but all of the marketing, Medium post, dozens of support comments about how good it is, GitHub stars, etc... would indicate it's a typical project. I see very similar things in projects frequently and have pointed them out privately before so I don't think this is an edge case
View all comments
Show parent comment
1
u/michaelnovati Oct 01 '23 edited Oct 01 '23
Thanks for sharing. Yeah some people who push back on this think I have some kind of hidden interest in calling this behavior out, but it is solely because I know thousands of engineers, recruiters, product people that I've met during my Facebook days, who now work at hundreds of other companies, and the sentiment is unanimous that this behavior is anywhere from lying to fraud. Not one person has condoned if for any reason. That said, I very much understand the other point of view and acknowledge it as well: industry gatekeepers are blocking ambitious new engineers from getting a foot in the door so the ends justify the means. Which practical speaking, is a reasonable argument for the small number of people who genuinely fall in the bucket and then get appropriately levelled jobs they wouldn't get otherwise.
My concern is lack of transparency in behalf of Codesmith. When called out they double down: turning OSLabs into a non profit (that still has far too many ties to Codesmith internally when you go a layer deeper than what is public), or instead of correcting the guidance of how to properly add references to their industry sponsored tech talks, they defend their wrong guidelines, instead of telling people to make the OSLabs 3 week projects 3 weeks on a resume, they say they will sign a letter of reference for 3-4 months from OSLabs.
Like if the argument is the ends justify the means, tell it like it is! 100Devs (another free program, not Codesmith) tells it like it is in one of his Twitch live streams. Leon, their leader, explicitly tells people to lie on their resumes about working as a SWE for 100Devs to get past gatekeepers, hope it works eventually, and gives arguments for why.
I bet this comment will instantly get downvoted haha.