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

Add agentscope cve-2024-8438 testbed #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 30 additions & 0 deletions agentscope/CVE-2024-8438/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM python:3.10

# Set working directory
WORKDIR /app

# Install dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*

# Clone the repository and checkout the specific commit
RUN git clone https://github.com/modelscope/agentscope.git \
&& cd agentscope \
&& git checkout af8e45ded37b3834c981473b309239e0102473d0

# Set the working directory inside the repo
WORKDIR /app/agentscope

# Install dependencies
RUN pip install --no-cache-dir -e .

# Expose localhost
RUN sed -i 's/127.0.0.1/0.0.0.0/g' /app/agentscope/src/agentscope/studio/_app.py

# Expose port for local access
EXPOSE 5000


# Run as_studio on container start
CMD ["as_studio"]
4 changes: 4 additions & 0 deletions agentscope/CVE-2024-8438/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Start service
```bash
docker compose up -d
```
10 changes: 10 additions & 0 deletions agentscope/CVE-2024-8438/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.3'

services:
agentscope:
build:
context: . # Path to the directory containing the Dockerfile
ports:
- "5000:5000"
stdin_open: true # Keeps the stdin open (equivalent to -it for interactive mode)
restart: unless-stopped