I Applied To A Company And They Rejected Me Then I Hacked Their Server
The author claims that a call-centre company's job application form had its validation logic only on the front end, and that he later uploaded a PHP file to their server to browse and create files. He says he then found credentials in code and a GitHub repository and logged in with a default password.
Published on systemweakness.com
My name is Imran Niaz, and I am a security engineer, researcher, and pentester developer.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application trusted client-side checks and allowed an uploaded file to be executed or used as a directory listing on the server.
Impact
The author claims he could upload and run a file on the server, browse its directories, and later log in with a default password, but the text gives no verified evidence of what data was actually reached.
What the attacker needed
Access to the public application form; ability to send custom requests
The fix
The application should validate uploads on the server, store them outside the web root, and never ship default or hard-coded credentials.
How it was found
- Open the company's website and find the application form.
- Notice the form is hosted on a VPS and inspect where the CV is uploaded.
- Upload a CV and observe that the validation logic runs only in the front end.
- Build a custom form and upload a file directly to the API.
- Upload a PHP file to the server to list and create files.
- Remove the file and continue looking at other parts of the system.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A website should check what users submit on the server, not only in the browser. Here the author says the checks lived only in the page itself, so a custom form could send anything. He also claims he got a file onto the server that let him list and create files, which is a serious step beyond a normal form.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.