Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SourceCodeSecurityCheckStep #213

Open
martinmladenov opened this issue Jun 14, 2023 · 5 comments · May be fixed by #268
Open

Improve SourceCodeSecurityCheckStep #213

martinmladenov opened this issue Jun 14, 2023 · 5 comments · May be fixed by #268
Assignees
Labels
enhancement New feature or request

Comments

@martinmladenov
Copy link
Collaborator

At the moment we use the SourceCodeSecurityCheckStep for two things - to prevent students from using certain classes, and to inform them that they should not instantiate their own Selenium driver. We do this using simple string comparisons.

We should consider the following:

  • Renaming the step to something more suitable (it's not just security)
  • Ignoring comments
  • Highlighting the correct line (at the moment it highlights line 1 even if the error is further down)
  • Redesigning the detection method entirely, so that we do proper static analysis instead of string comparisons (hard)
@martinmladenov martinmladenov added the enhancement New feature or request label Jun 14, 2023
@mauricioaniche
Copy link
Contributor

Let's keep it with string manipulation for now, static analysis will be tough, and I'm not sure if it will bring waaay more soundness in the analysis!

@Arraying
Copy link
Contributor

Arraying commented Jul 2, 2023

@mauricioaniche why do you think static analysis will be tough? I thought JavaParser has a really elegant and easy to use API. It also features a way to completely ignore all comments while parsing.

@mauricioaniche
Copy link
Contributor

mauricioaniche commented Jul 2, 2023 via email

@alexcojocaru2002
Copy link
Contributor

@martinmladenov What is the state of this issue ? Could I maybe work on it ?

@martinmladenov
Copy link
Collaborator Author

Sure, go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants