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

70 create analysemavenlist post endpoint #72

Merged
merged 46 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e826127
added new controller for reports
KnYL3R Jun 5, 2024
ab9e1b6
Added clone and checkout
KnYL3R Jun 7, 2024
50367a0
finished generating simple report Line
KnYL3R Jun 13, 2024
cbf2b45
added ReportsController
KnYL3R Jun 17, 2024
2f63f32
fix v1
KnYL3R Jun 18, 2024
edbddbf
debugging v2
KnYL3R Jun 19, 2024
d041e6c
fix v3
KnYL3R Jun 20, 2024
7d904c0
fixes v4
KnYL3R Jun 20, 2024
8b25b07
miltiple designations per cve
KnYL3R Jun 21, 2024
3842ddc
fix v5
KnYL3R Jun 21, 2024
749c284
newest changes, old controller (reportscontroller_) is deprecated
KnYL3R Jun 26, 2024
46a3738
added yarn support, index out of bounds error
KnYL3R Jun 27, 2024
42500af
npm analysis update
KnYL3R Jun 30, 2024
02aee46
npm works, now analyses each tag twice with diffrent dateTimes
KnYL3R Jul 10, 2024
a842135
added first classes for own metric
KnYL3R Aug 18, 2024
ba1c368
added metric data, needs 2 more properties to be calculated
KnYL3R Aug 19, 2024
ab2adb4
added new controller, started refactoring for less boilerplate and be…
KnYL3R Aug 20, 2024
c2749dd
added new controller, implemented nist baseScore calculation
KnYL3R Aug 21, 2024
aaa9e0b
debugged calculation
KnYL3R Aug 21, 2024
59abcf1
added first step to direct dependency vulnerability depth and base score
KnYL3R Aug 24, 2024
0ddba0e
bug fix
KnYL3R Aug 25, 2024
e0fc70e
fixed metric dependency endpoint
KnYL3R Aug 26, 2024
0388b86
added vulnerability endpoint, finished dependency endpoint
KnYL3R Aug 28, 2024
079e9f2
data
KnYL3R Aug 29, 2024
c9491c0
added first support for maven in new endpoints
KnYL3R Sep 10, 2024
8632f0b
full maven support for dependencies and vulnerabilities
KnYL3R Sep 11, 2024
f342e4e
tried fixing timeSlice
KnYL3R Sep 14, 2024
49538e1
report fixed, now supports maven projects. cannot analyse private dep…
KnYL3R Sep 15, 2024
4c81d41
custom osv-scanner.json for maven to better scan private repos
KnYL3R Sep 16, 2024
895c5f3
added custom osv support
KnYL3R Sep 16, 2024
d3ca8b3
new version for linear timeline analysis
KnYL3R Sep 30, 2024
4ef9749
changes
KnYL3R Oct 1, 2024
1cfb70e
vuln metric update
KnYL3R Oct 5, 2024
b1e2e40
package metric
KnYL3R Oct 5, 2024
8950ed6
Changed scope of maven repos to compile and runtime
KnYL3R Oct 10, 2024
0cd9df7
only runtime scope for maven projects
KnYL3R Oct 11, 2024
766c845
changes
KnYL3R Oct 13, 2024
84bfaf3
new local caches
KnYL3R Oct 15, 2024
d49c5a2
new VulnerabilityMetric
Oct 21, 2024
4ed60d3
had to merge..
Oct 21, 2024
2557126
implemented new endpoint for vulnerabilities
Oct 21, 2024
c107c19
new stuff
Oct 22, 2024
cd10210
new class
Oct 23, 2024
8c49ca8
code/.
Oct 23, 2024
33bf13e
preparation for version 2
KnYL3R Nov 6, 2024
8f62d31
delete data dir
KnYL3R Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
810 changes: 406 additions & 404 deletions code/AmIVulnerable/AmIVulnerable/Controllers/DbController.cs

Large diffs are not rendered by default.

577 changes: 289 additions & 288 deletions code/AmIVulnerable/AmIVulnerable/Controllers/DependeciesController.cs

Large diffs are not rendered by default.

702 changes: 354 additions & 348 deletions code/AmIVulnerable/AmIVulnerable/Controllers/GitController.cs

Large diffs are not rendered by default.

590 changes: 590 additions & 0 deletions code/AmIVulnerable/AmIVulnerable/Controllers/MetricController.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
using Microsoft.AspNetCore.Mvc;
using MySql.Data.MySqlClient;
using SerilogTimings;
using System.Data;

namespace AmIVulnerable.Controllers {

[Route("api/[controller]")]
[ApiController]
public class MySqlConnectionController : ControllerBase {

private readonly IConfiguration Configuration;

public MySqlConnectionController(IConfiguration configuration) {
Configuration = configuration;
}

[HttpGet, Route("checkReachable")]
public IActionResult PingWithDb() {
using (Operation.Time("TaskDuration")) {
try {
MySqlConnection c = new MySqlConnection(Configuration["ConnectionStrings:cvedb"]);

MySqlCommand cmd = new MySqlCommand("SELECT cve_number, designation FROM cve.cve", c);

c.Open();
MySqlDataReader reader = cmd.ExecuteReader();
DataTable dataTable = new DataTable();
dataTable.Load(reader);
reader.Close();
c.Close();

return Ok();
}
catch (Exception ex) {
return BadRequest(ex.StackTrace!.ToString());
}
}
}
}
}
//using Microsoft.AspNetCore.Mvc;
//using MySql.Data.MySqlClient;
//using SerilogTimings;
//using System.Data;

//namespace AmIVulnerable.Controllers {

// //[Route("api/[controller]")]
// //[ApiController]
// public class MySqlConnectionController : ControllerBase {

// private readonly IConfiguration Configuration;

// public MySqlConnectionController(IConfiguration configuration) {
// Configuration = configuration;
// }

// //[HttpGet, Route("checkReachable")]
// public IActionResult PingWithDb() {
// using (Operation.Time("TaskDuration")) {
// try {
// MySqlConnection c = new MySqlConnection(Configuration["ConnectionStrings:cvedb"]);

// MySqlCommand cmd = new MySqlCommand("SELECT cve_number, designation FROM cve.cve", c);

// c.Open();
// MySqlDataReader reader = cmd.ExecuteReader();
// DataTable dataTable = new DataTable();
// dataTable.Load(reader);
// reader.Close();
// c.Close();

// return Ok();
// }
// catch (Exception ex) {
// return BadRequest(ex.StackTrace!.ToString());
// }
// }
// }
// }
//}
Loading
Loading