Hacking Articles Tips Tricks Videos Tutorials
468 subscribers
65.9K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Hacking Articles Tips Tricks Videos Tutorials
Black Hat Ethical Hacking SQLite patches 22-year-old code execution, a DoS vulnerability SQLite patches 22-year-old code execution, a DoS vulnerabilityPost Views: 1 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Patreon.png…
couldn’t find a way to inject a 2GB string.

CVE-2022-35737 was reported to the Computer Emergency Response Team (CERT) Coordination Center by Trail of Bits on July 14. CERT confirmed the issue, reached out to SQLite maintainers, and the team fixed the bug in the software’s source code only three days later – a task accomplished by converting to the use of 64-bit integers.

The patched SQLite version, v3.39.2, was released on July 21.

“We are grateful for the responsible disclosure from the researchers who found it,” Hipp said. “It doesn’t hurt to upgrade to a newer release of SQLite. But very few if any real-world applications should be affected by this.”


Trending: Exploited Windows zero-day lets JavaScript files bypass security warnings Are u a security researcher? Or a company that writes articles or write ups about Cyber Security, Offensive Security (related to information security in general) that match with our specific audience and is worth sharing?

If you want to express your idea in an article contact us here for a quote: info@blackhatethicalhacking.com
Source: portswigger.net Source Link https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch.png Recent News* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/10/Images-for-the-News-posts-5-1-300x150.png OpenSSL Gives Heads Up to Critical Vulnerability DisclosureOctober 31, 2022
Reading Time: 4 minutes

* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/10/Images-for-the-News-posts-4-1-300x150.png GitHub patches bug called repojacking that could allow access to another user’s repoOctober 28, 2022
Reading Time: 3 minutes

* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/10/Images-for-the-News-posts-3-1-300x150.png Windows vulnerable driver blocklist sync issue patchedOctober 27, 2022
Reading Time: 4 minutes

* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/10/Images-for-the-News-posts-2-2-300x150.png Cisco warns admins to patch AnyConnect flaw exploited in attacksOctober 26, 2022
Reading Time: 3 minutes
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/06/OffSec-Course.png Offensive Security & Ethical Hacking CourseBegin the learning curve of hacking now!
The post SQLite patches 22-year-old code execution, a DoS vulnerability first appeared on Black Hat Ethical Hacking.

___________________________
@hacking_Attack
@Hacking_Video
Red Teaming TTPs

Useful Techniques, Tactics, and Procedures for red teamers and defenders, alike!Continue reading on Medium »
Read more...
Hacking Articles Tips Tricks Videos Tutorials
Photo
Kali Linux Tutorials
Mangle : Tool That Manipulates Aspects Of Compiled Executables (.Exe Or DLL) To Avoid Detection From EDRs

Mangle is a tool that manipulates aspects of compiled executables (.exe or DLL). Mangle can remove known Indicators of Compromise (IoC) based strings and replace them with random characters, change the file by inflating the size to avoid EDRs, and can clone code-signing certs from legitimate files. In doing so, Mangle helps loaders evade on-disk and in-memory scanners. ContributingMangle was developed in Golang. InstallThe first step, as always, is to clone the repo. Before you compile Mangle, you’ll need to install the dependencies. To install them, run the following commands:
go get github.com/Binject/debug/pe
Then build it
go build Mangle.go ImportantWhile Mangle is written in Golang, a lot of the features are designed to work on executable files from other languages. At the time of release, the only feature that is Golang specific is the string manipulation part. Usage./mangle -h

_____ .__
/ \ _____ ____ ____ | | ____
/ \ / \\__ \ / \ / ___\| | _/ __ \
/ Y \/ __ \| | \/ /_/ > |_\ ___/
\____|__ (____ /___| /\___ /|____/\___ >
\/ \/ \//_____/ \/
(@Tyl0us)
Usage of ./Mangle:
-C string
Path to the file containing the certificate you want to clone
-I string
Path to the orginal file
-M Edit the PE file to strip out Go indicators
-O string
The new file name
-S int
How many MBs to increase the file by
StringsMangle takes the input executable and looks for known strings that security products look for or alert on. These strings alone are not the sole point of detection. Often, these strings are in conjunction with other data points and pieces of telemetry for detection and prevention. Mangle finds these known strings and replaces the hex values with random ones to remove them. IMPORTANT: Mangle replaces the exact size of the strings it’s manipulating. It doesn’t add any more or any less, as this would create misalignments and instabilities in the file. Mangle does this using the -Mcommand-line option.

Currently, Mangle only does Golang files but as time goes on other languages will be added. If you know of any for other languages, please open an issue ticket and submit them.

Before
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuFxSXFOtznK1Z_JXfNBV7nWmPodQk1lQS-OipEZlHCLfv8S4DW8EblSU-o1qiqAkyR-dyi2jIOPvreuu7oCv-Hz4pNZcTkMoiJgS0fLdTf9gOMPOmdx7tFbc28xlMcaBld60R1CPPtkJCqcSyztDimen4VuWGHu30hOH3A64fCqUJDu6WBIDDI1Ep/s630/Mangle1.png
After
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsC_BpQZfOl3qvFTjDUmHhS1WmCoefKpmScZ0dG5wgMoTFac5Bf6741XhwKi8IPYNnBfh4RHLl5WajLz5ZxNVLwSpGfaMswVis0hkwobkp3eQR36-J7oB8i-TJSvxPAe25SDvcu1ap3qQUCFaP0ybiPamegFjSC7jhGK5Z2SOUngz7Clx7ZI8b6uHE/s633/Mangle4.png InflatePretty much all EDRs can’t scan both on disk or in memory files beyond a certain size. This simply stems from the fact that large files take longer to review, scan, or monitor. EDRs do not want to impact performance by slowing down the user’s productivity. Mangle inflates files by creating a padding of Null bytes (Zeros) at the end of the file. This ensures that nothing inside the file is impacted. To inflate an executable, use the -Scommand-line option along with the number of bytes you want to add to the file. Large payloads are really not an issue anymore with how fast Internet speeds are, that being said, it’s not recommended to make a 2 gig file.

Based on test cases across numerous userland and kernel EDRs, it is recommended to increase the size by either 95-100 megabytes. Because vendors do not check large files, the activity goes unnoticed, resulting in the successful execution of shellcode. Example:https://blogger.googleusercontent.com/img/[...]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Kali Linux Tutorials Mangle : Tool That Manipulates Aspects Of Compiled Executables (.Exe Or DLL) To Avoid Detection From EDRs Mangle is a tool that manipulates aspects of compiled executables (.exe or DLL). Mangle can remove known Indicators of Compromise…
b/R29vZ2xl/AVvXsEhf8jnEV7Fuk1b45vJ1sFJJ0PIzfya1LitN-cR8M_ohhv6pJKw4BqZAbq5b-YKq0m7QxFJyuSqsF9_Tdud8UihYJwz1q0TP8cl3cEjrUBMAlatDIGBgGAJpwNlIu4uE7P_1O_U8x4oKQBt0jMVyZe6dztOtlz8aNiofFigsUspFlIOO7S7rGa91tgDq/s3440/Mangle2.gif CertificateMangle also contains the ability to take the full chain and all attributes from a legitimate code-signing certificate from a file and copy it onto another file. This includes the signing date, counter signatures, and other measurable attributes.

While this feature may sound similar to another tool I developed, Limelighter, the major difference between the two is that Limelighter makes a fake certificate based off a domain and signs it with the current date and time, versus using valid attributes where the timestamp is taken from when the original file. This option can use DLL or .exe files to copy using the -Ccommand-line option, along with the path to the file you want to copy the certificate from.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8CI8EJ1JWnpbrO1X-CZwwChR0D6E8g3wOwaNE9YwagfChxZULLItmBcVOOPI961-bEHgIWlzhlh_Sl_ZBgHTNwzLaSXf-yDEaKoVCRoDVNDaKMYGYPm0UKNZu0XPRgyMcdrvSWyrsDfw13LNggqKsxwUgEl21LUdAvUSPm4xG0vq7vgJmhoIhaBEX/s724/Mangle3.png Click Here To Download

___________________________
@hacking_Attack
@Hacking_Video
Deliberately vulnerable (https://www.kitploit.com/search/label/Vulnerable) CI/CD environment. Hack CI/CD pipelines, capture the flags. Created by Cider Security (https://www.cidersecurity.io/?utm_source=github&utm_medium=github_page&utm_campaign=ci%2Fcd%20goat%20_060422). Description The CI/CD Goat project allows engineers and security practitioners to learn and practice CI/CD security through a set of 10 challenges, enacted against a real, full blown CI/CD environment. The scenarios are of varying difficulty levels, with each scenario focusing on one primary attack vector. The challenges cover the Top 10 CI/CD Security Risks (https://www.cidersecurity.io/top-10-cicd-security-risks/?utm_source=github&utm_medium=github_page&utm_campaign=ci%2Fcd%20goat_060422), including Insufficient Flow Control Mechanisms, PPE (Poisoned Pipeline (https://www.kitploit.com/search/label/Pipeline) Execution), Dependency Chain Abuse, PBAC (Pipeline-Based Access Controls), and more.
The different challenges are inspired by Alice in Wonderland, each one is themed as a different character.
The project’s environment is based on Docker images and can be run locally. These images are: Gitea (minimal git server) Jenkins Jenkins agent LocalStack (cloud service emulator (https://www.kitploit.com/search/label/Emulator) that runs in a single container) Lighttpd CTFd (Capture The Flag framework). The images are configured to interconnect in a way that creates fully functional pipelines.

___________________________
@hacking_Attack
@Hacking_Video
cd cicd-goat && docker-compose up -d Windows (Powershell) mkdir cicd-goat; cd cicd-goat
curl -o docker-compose.yaml https://raw.githubusercontent.com/cider-security-research/cicd-goat/main/docker-compose.yaml
get-content docker-compose.yaml | %{$_ -replace "bridge","nat"}
docker-compose up -d Usage Instructions Spoiler alert! Avoid browsing the repository files as they contain spoilers. To configure your git client for accessing private repositories (https://www.kitploit.com/search/label/Repositories) we suggest cloning using the http url. In each challenge, find the flag - in the format of flag# (e.g flag2), or another format if mentioned specifically. Each challenge stands on its own. Do not use access gained in one challenge to solve another challenge. If needed, use the hints on CTFd. There is no need to exploit CVEs. No need to hijack admin accounts of Gitea or Jenkins (named "admin" or "red-queen"). Take the challenge After starting the containers, it might take up to 5 minutes until the containers (https://www.kitploit.com/search/label/Containers) configuration process is complete. Login to CTFd at http://localhost:8000 (http://localhost:8000/) to view the challenges: Username: alice Password: alice Hack: Jenkins http://localhost:8080 (http://localhost:8080/) Username: alice Password: alice Gitea http://localhost:3000 (http://localhost:3000/) Username: thealice Password: thealice Insert the flags on CTFd and find out if you got it right. Troubleshooting If Gitea shows a blank page, refresh the page. When forking a repository, don't change the name of the forked repository. Solutions Warning: Spoilers!  See Solutions (https://github.com/cider-security-research/cicd-goat/blob/main/solutions). Contributing Development Clone the repository. Rename .git folders to make them usable:
python3 rename.py git Install testing dependencies: pip3 install pipenv==2022.8.30
pipenv install --deploy Run the development environment to experiment with new changes: rm -rf tmp tmp-ctfd/
cp -R ctfd/data/ tmp-ctfd/
docker-compose -f docker-compose-dev.yaml up -d Make the desired changes: All services except CTFd are completely configured as code so desired changes should be made to the files in the appropriate folders. To make changes in CTFd, use the admin credentials (https://github.com/cider-security-research/cicd-goat/blob/main/break-glass.md). Shutdown the environment, move changes made in CTFd and rebuild it: docker-compose -f docker-compose-dev.yaml down
./apply.sh # save CTFd changes
docker-compose -f docker-compose-dev.yaml up -d --build Run tests: pytest tests/ Rename .git folders to allow push: python3 rename.py notgit Commit and push! Checklist Follow the checklist below to add a challenge: CTFd: Write challenge description. Choose category according to difficulty level. Make sure the challenge is visible and has value according to difficulty. Write hints in order of usage. Add a flag. Make sure to select if it's case-insensitive. Gitea: Configure a new repository in gitea.yaml. Create the repository under gitea/repositories (https://github.com/cider-security-research/cicd-goat/blob/main/gitea/repositories). Use an open-source repository that use the MIT license as a template for the challenge repository. Jenkins: Configure Jenkins and add new jobdsl files in the casc.yaml file. Make sure jobs don't run periodically. Jobs should be triggered by events / polling. Validate that the new challenge doesn't interfere with other challenges. Make sure the flag is not accessible when solving other challenges. Write tests. Write the solution. Update README.md if needed. In order to run the CI, make sure you have a CircleCI account and that you’ve clicked “Set Up Project” on your fork of the project.

___________________________
@hacking_Attack
@Hacking_Video