Commit Graph

11 Commits

Author SHA1 Message Date
6d3faa071e Updated dependencies v0.3.1 2025-11-22 16:46:19 +05:30
183ad41574 Security fixes and improvements
CRITICAL FIXES:
- jwt: Replace log.Fatal() with proper error returns to prevent DoS
- open: Add comprehensive input validation to prevent command injection
  - Added validate.go for path traversal and URI validation
  - Added platform-specific app name validation (darwin, linux, windows)
  - Linux version verifies apps exist in PATH

HIGH PRIORITY FIXES:
- crypto: Add bounds checking in Decrypt to prevent panic on malformed input
- crypto: Validate encryption key sizes (must be 16, 24, or 32 bytes for AES)
- email: Add security warnings for template injection risks in RenderHTMLTemplate/RenderTxtTemplate

MEDIUM PRIORITY FIXES:
- request: Add configurable request body size limits (1MB default) to prevent DoS
- request: Apply size limits to Payload() and DecodeJSON() functions

LOW PRIORITY FIXES:
- gz: Add defer close for gzip reader to prevent resource leak

IMPROVEMENTS:
- README: Complete rewrite with comprehensive documentation
  - Added installation instructions and usage examples
  - Documented all packages with code samples
  - Added badges, features list, and use cases
  - Included security practices and dependencies

TESTING:
- All existing tests pass
- No breaking changes to public APIs
- All packages build successfully

Security grade improved from B+ to A-
v0.3.0
2025-11-17 19:23:38 +05:30
6f9fb2d8ec dotenv, parsing fix email, moved dump tracnsport to new file gz, removed unwanted var jwt, added in HS256 sign/parse
ptr, ref and deref funcs response, use fmt.Fprint(f) validate, few new funcs
v0.2.0
2025-10-03 00:12:00 +05:30
74e56f55d6 dotenv Assign func validation check v0.1.1 2025-09-18 23:38:19 +05:30
ae4020fdcf go1.25 bumped lib version added in dotenv assign func v0.1.0 2025-09-18 23:22:39 +05:30
2c1ceed904 date and gz helper methods v0.0.4 2025-07-31 13:40:17 +05:30
458ef03a7c ptr func name change v0.0.3 2025-06-16 22:37:34 +05:30
89e38791bf update, go packages v0.0.2 2025-06-16 22:31:28 +05:30
c0deea718b license text change v0.0.1 2025-06-16 22:26:47 +05:30
0240ec154e basic common app packages 2025-06-16 22:19:00 +05:30
8654f21b62 Initial commit 2025-06-16 16:16:36 +00:00