HTB Zero .htaccess ErrorDocument LFI → credential reuse → ro...#1350
Merged
carlospolop merged 4 commits intomasterfrom Aug 28, 2025
Conversation
…reuse → r... - Remove searchindex.js (auto-generated file)
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://0xdf.gitlab.io/2025/08/12/htb-zero.html Content Categories: Based on the analysis, this content was categorized under "Web Pentesting > Apache (.htaccess) LFI via ErrorDocument; Linux Privilege Escalation > Cron/Timers > pgrep argv spoofing (argv fakery)". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
Collaborator
Author
|
merge |
517bbc5 to
f26cca6
Compare
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 28, 2025
…ess_ErrorDocument_LFI___credential_20250827_152245 HTB Zero .htaccess ErrorDocument LFI → credential reuse → ro...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Technical Summary: Ubuntu 20.04.6 Web/SFTP Tenant Assessment
Target and Surface
Platform: Ubuntu 20.04.6 (OpenSSH 8.2p1, Apache/2.4.41).
Open ports: TCP/22 and TCP/80 only; Linux TTL 63 observed on both ports.
Site stack: Apache + PHP.
Key pages:
/,/index.php,/stats.php,/info.php,/signup.php,/g...🔧 Technical DetailsApache .htaccess ErrorDocument file provider for LFI: If you can replace a directory’s
.htaccess, setErrorDocument 404 %{file:/absolute/target}. Any 404 under that path returns the target file in the response body, bounded by the webserver user’s read permissions. Example:ErrorDocument 404 %{file:/etc/passwd}then fetch/~user/anything.Overcoming root-owned .htaccess in user dirs: Even when
.htaccessis ro...🤖 Agent Actions
I analyzed the blog and the HackTricks repository, and I’ve updated two relevant sections with the technical tricks from the post:
What I added
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
🗑️ File Cleanup
The searchindex.js file is automatically generated and should not be included in manual commits.