Skip to content

Conversation

@foodprocessor
Copy link
Contributor

Add some debug prints,
improve sync size tracker results message

import sys
from typing import Dict, Optional
from dataclasses import dataclass
from datetime import datetime
analyzer = SizeTrackerAnalyzer()

try:
with open(log_file, 'r', encoding='utf-8', errors='ignore') as f:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mend Code Security Check

New finding (1 of 1)

The Mend Code Security Check of your branch failed because of a Path/Directory Traversal finding in this line.

SeverityVulnerability TypeCWEFileData FlowsDetected
HighPath/Directory Traversal

CWE-22

auditSizeTrackerLog.py:246

12025-12-20 05:12am
Vulnerable Code

print("="*80 + "\n")
analyzer = SizeTrackerAnalyzer()
try:
with open(log_file, 'r', encoding='utf-8', errors='ignore') as f:

1 Data Flow/s detected

log_file = sys.argv[1]

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Path/Directory Traversal Training

● Videos

   ▪ Secure Code Warrior Path/Directory Traversal Video

● Further Reading

   ▪ OWASP Path Traversal

   ▪ OWASP Input Validation Cheat Sheet

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant