rofl0r / rofl0r/proxychains-ng

Dillo browser's https not working when non-absolute path for confgfile used

Open
#256 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
10.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Suppose you have a configfile in the current working directory. The following command will fail to load the https url in the dillo web browser (you must also make sure that there are no implicitly searched for configfiles also).

proxychains4 -f proxychains.conf dillo https://api.ipify.org

The reason is that dillo does a chdir to /tmp and then forks a "server" process. This forking causes the dll to initialize for the new process, which will eventually call get_config_path. However, since the cwd is now /tmp, get_config_path will not find a configfile and exit the process. Dillo will not be able to communicate with the (dead) server, so it won't be able to load the https url.

I believe a good fix would be to have get_config_path set the configfile envvar to the realpath of the used configfile.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating get_config_path and trace how proxychains4 -f proxychains.conf resolves the configuration before and after a chdir to /tmp. Reproduce with Dillo and https://api.ipify.org; done means the relative configuration path remains usable after the fork and the HTTPS URL loads successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.