Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

Upload image with NestJS Minio S3

MinIO - is a cloud-native object store built to run on any infrastructure - public, private or edge clouds. Primary use cases include data lakes, databases, AI/ML, SaaS applications and fast backup & recovery. MinIO is dual licensed…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

MinIO - is a cloud-native object store built to run on any infrastructure - public, private or edge clouds. Primary use cases include data lakes, databases, AI/ML, SaaS applications and fast backup & recovery. MinIO is dual licensed under GNU AGPL v3 and commercial license. To learn more, visit www.min.io.




  1. Download package nestjs-minio-s3.


  2. Set docker environment variables:





MINIO_ROOT_USER="minioadmin"
MINIO_ROOT_PASSWORD="minioadmin"







  1. Add Minio container in Docker Compose:




services:
db:
container_name: db
image: postgres:latest
ports:
- '5432:5432'
env_file:
- .docker.env
volumes:
- postgres:/data/postgres
minio:
image: minio/minio:latest
container_name: minio
ports:
- '9000:9000'
- '9001:9001'
env_file:
- .docker.env
command: server /data --console-address ":9001"
volumes:
- minio:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3

volumes:
postgres:
driver: local
minio:
driver: local







  1. Add global environment variables:




MINIO_ENDPOINT="http://localhost:9000"
MINIO_USER="minioadmin"
MINIO_PASSWORD="minioadmin"
MINIO_REGION="us-east-1"







  1. Include MinioModulein AppModule:




MinioModule.forRootAsync({
imports: [EnvModule],
inject: [EnvService],
useFactory: (envService: EnvService) => ({
endpoint: envService.get('MINIO_ENDPOINT')!,
accessKey: envService.get('MINIO_USER')!,
secretKey: envService.get('MINIO_PASSWORD')!,
region: envService.get('MINIO_REGION') || 'us-east-1',
buckets: [{ name: 'avatars', policy: 'public' }],
}),
}),







  1. Add MinioServiceto constructor:




constructor(
private readonly minioService: MinioService,
) {}







  1. Use MinioServicein your methods:




async uploadAvatar(userId: number, file: Express.Multer.File) {
return await this.dataSource.transaction(async (manager) => {
const user = await manager.findOne(UserEntity, {
where: { id: userId },
select: ['id', 'avatarUrl'],
});
if (!user) {
throw new NotFoundException('User not found');
}

const oldAvatarUrl = user.avatarUrl as string;

const key = `${userId}-${Date.now()}.${file.originalname.split('.').pop()}`;

const newAvatarUrl = await this.minioService.upload(
this.AVATARS_BUCKET,
key,
file.buffer,
file.mimetype,
);

await manager.update(UserEntity, userId, { avatarUrl: newAvatarUrl });

if (oldAvatarUrl) {
try {
const oldKey = this.minioService.getKeyFromUrl(
oldAvatarUrl,
this.AVATARS_BUCKET,
);
if (oldKey) {
await this.minioService.delete(this.AVATARS_BUCKET, oldKey);
}
} catch (e: unknown) {
console.error('Error deleting old avatar ', e);
}
}

return newAvatarUrl;
});
}







  1. After completing the request, view the changes at the address http://localhost:9001 with authorization data: username: minioadmin, password: minioadmin

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - Upload image with NestJS Minio S3
id: aa2488a4-80be-4a43-9429-fd690cd4afad
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "Upload image with NestJS Minio" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Upload image with NestJS Minio S3")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Upload image with NestJS Minio S3*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Upload image with NestJS Minio S3"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Upload image with NestJS Minio S3.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Upload image with NestJS Minio S3

Thematisch verwandte Begriffe: Upload, image, with, NestJS · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97875 | Rojo's "rojo serve" HTTP API (default port 34872) has no Host/Origin hea…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag