| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ate packages Co-authored-by: CalinL <10718943+CalinL@users.noreply.github.com>
| var deserializedData = JsonConvert.DeserializeObject<List<string>>(jsonData, new JsonSerializerSettings | ||
| { | ||
| TypeNameHandling = TypeNameHandling.Auto // VULNERABILITY: Insecure setting | ||
| }); |
| public void OnGet() | ||
| { | ||
| // VULNERABILITY: Log forging - user input directly in logs without sanitization | ||
| string userInput = Request.Query.ContainsKey("user") ? Request.Query["user"].ToString() ?? "anonymous" : "anonymous"; |
| LoadLatestGHASNews(); | ||
|
|
||
| // Demonstrate ReDoS vulnerability | ||
| string testPattern = Request.Query.ContainsKey("pattern") ? Request.Query["pattern"].ToString() ?? "aaa" : "aaa"; |
| catch (Exception ex) | ||
| { | ||
| // VULNERABILITY: Logging full exception details including stack trace | ||
| _logger.LogError($"Regex evaluation failed for pattern: {testPattern}. Error: {ex.ToString()}"); | ||
| } |
| catch (Exception ex) | ||
| { | ||
| _logger.LogError($"Database connection failed: {ex.Message}"); | ||
| } |
| catch (Exception ex) | ||
| { | ||
| // VULNERABILITY: Logging sensitive information and full stack trace | ||
| _logger.LogError($"Regex test failed for pattern: {pattern}. Exception: {ex.ToString()}"); | ||
| TempData["RegexError"] = "Pattern evaluation failed - potential ReDoS attack detected"; | ||
| } |
| catch (Exception ex) | ||
| { | ||
| // VULNERABILITY: Logging detailed error information | ||
| _logger.LogError($"SQL execution failed for userId: {userId}. Error: {ex.ToString()}"); | ||
| TempData["RegexError"] = "SQL query failed"; | ||
| } |
| catch (Exception ex) | ||
| { | ||
| // VULNERABILITY: Logging full exception details including stack trace | ||
| _logger.LogError($"Regex evaluation failed for pattern: {testPattern}. Error: {ex.ToString()}"); |
| catch (Exception ex) | ||
| { | ||
| // VULNERABILITY: Logging sensitive information and full stack trace | ||
| _logger.LogError($"Regex test failed for pattern: {pattern}. Exception: {ex.ToString()}"); |
| catch (Exception ex) | ||
| { | ||
| // VULNERABILITY: Logging detailed error information | ||
| _logger.LogError($"SQL execution failed for userId: {userId}. Error: {ex.ToString()}"); |
| Back | FazBrowse Home | New Git URL |
New demo page showcasing GitHub Advanced Security capabilities through intentional security vulnerabilities and 2026 GHAS feature updates.
New Files
Intentional Vulnerabilities
Implements patterns that GHAS code scanning should detect:
Package Changes
Downgraded to vulnerable versions for demonstration:
UI Updates
Added navigation link in Index.cshtml to new demo page.
Original prompt✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.