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

DOS/DDOS attack in pacapt #40

Closed
cuonglm opened this issue Mar 13, 2015 · 1 comment
Closed

DOS/DDOS attack in pacapt #40

cuonglm opened this issue Mar 13, 2015 · 1 comment

Comments

@cuonglm
Copy link
Collaborator

cuonglm commented Mar 13, 2015

Forgetting quote variables in shell script leading to many security implications. I took a look at pacapt source code and saw one issue. Currently, if you run:

PACAPT_DEBUG='/*/*/*/*/../../../../*/*/*/*/../../../../*/*/*/*' ./pacapt.dev --help

then it push server to heavy load, even if mightiest servers. Imaging some commands like this ran and what will happen?

The issue came from lib/zz_main.sh, line 17:

: ${PACAPT_DEBUG=}

: is the no-op command, but PACAPT_DEBUG still be expanded. And because it's unquoted, split and glob were invoked.

I have made a pull request to fix this, you can look here

@icy
Copy link
Owner

icy commented Mar 13, 2015

Fixed in #39

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

No branches or pull requests

2 participants